WebFaction
Community site: login faq
0
1

I'm trying to get Supervisor working on my Webfaction account. I installed Supervisor using the script here: https://github.com/adambrenecki/webfaction-installers/blob/master/utils/supervisor.sh and that seems to have worked.

However, on running Supervisor using the command given in that script (supervisord -c $HOME/etc/supervisord.conf), I get:

unix:///home/myusername/sock/supervisor.sock no such file

The /home/myusername/sock/ directory exists and has drwxrwxr-x permissions. What do I need to do to get Supervisor running?

asked 12 Jul '14, 05:16

Xiuyuan
325
accept rate: 0%

I just tried this under a test account and it seems to have worked as expected:

#  ( first, installed on a fresh account using https://github.com/adambrenecki/webfaction-installers/blob/master/utils/supervisor.sh )

[myusername@web369 ~]$ ps jf -u $USER | grep supervisord | grep -v grep
      1  872409  872409  872409 ?             -1 Ss     524   0:00 /usr/local/bin/python2.7 /home/myusername/bin/supervisord -c /home/myusername/etc/supervisord.conf
[myusername@web369 ~]$ netstat -anp | grep 872409
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
unix  2      [ ACC ]     STREAM     LISTENING     2124838022 872409/python2.7    /home/myusername/sock/supervisor.sock.872399
[myusername@web369 ~]$ ls -lA /home/myusername/sock
total 0
srwx------ 1 myusername myusername 0 Jul 12 08:05 supervisor.sock

So, we're not able to determine the issue without knowing more about what actually went wrong, since we haven't been able to reproduce it.

(12 Jul '14, 08:20) ryans ♦♦

Thanks Ryans. Running

/usr/local/bin/python2.7 /home/senlinx/bin/supervisord -c $HOME/etc/supervisord.conf

seems to run without errors. Then running

/usr/local/bin/python2.7 /home/senlinx/bin/supervisorctl -c $HOME/etc/supervisord.conf

Gives the same error:

unix:///home/senlinx/sock/supervisor.sock no such file

Also, trying

/usr/local/bin/python2.7 /home/senlinx/bin/supervisorctl -c $HOME/etc/supervisord.conf reread

Gives this error:

error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/local/lib/python2.7/socket.py line: 224

Any ideas?

(12 Jul '14, 08:39) Xiuyuan

Have you checked to make sure that every path you are using is a real file path? I would also make sure that you are using a "/tmp" directory that is inside your home directory so you have full control. So that would be "$HOME/tmp".

(12 Jul '14, 11:36) aaront ♦♦

Thanks for your help guys. In the end I've decided to use the approach here to keep the task running: https://community.webfaction.com/questions/6157/watchdog-script-to-keep-process-running-with-cron

(14 Jul '14, 01:41) Xiuyuan
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×8
×5

question asked: 12 Jul '14, 05:16

question was seen: 5,764 times

last updated: 14 Jul '14, 01:41

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM