Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

runit: unable to lock supervise error on debian

I'm trying to set up runit and logging on my debian wheezy VM. So far I've managed to get gunicorn service to start by following this setup:

sudo mkdir /etc/sv/gunicorn
sudo vi /etc/sv/gunicorn/run
sudo ln -s /etc/sv/gunicorn/run /etc/service

My log run file has:

LOG_DIR=/home/$USER/logs/gunicorn/

exec svlogd -tt $LOG_DIR

When I run sudo runsvdir /etc/service/gunicorn

runsv supervise: fatal: unable to lock supervise/lock: temporary failure

No idea what I'm doing wrong, any pointers?

like image 518
jwesonga Avatar asked Jul 03 '14 22:07

jwesonga


1 Answers

In ls -la /etc/service/gunicorn/supervise i didn't see a .lock but there was a lock file. Removing that lock file caused a bit of mayhem.

Thus i got rid of the symlink; killed the pids in ps aux | grep gunicorn and re symlinked. May be the ultimate end, but does get the job done.

like image 108
pjammer Avatar answered Sep 28 '22 17:09

pjammer