Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error on Supervison on supervisorctl ERROR (no such process) [closed]

I've seen this question asked before, but none of the solutions have worked for me.

I'm having problems using the supervisor on my rpi b+. Every time I try to run my start my process, I get an error saying:

pi@raspberrypi ~ $ sudo supervisorctl start server 

server: ERROR (no such process)

I have my config file set up at /etc/supervisord.conf

[program:server] directory=/home/pi/ledticker command=/usr/bin/python NetworkServer.py autostart=false autorestart=true stopsignal=QUIT  [supervisord] logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) logfile_backups=10 ; (num of main logfile rotation backups;default 10) loglevel=info ; (log level;default info; others: debug,warn,trace) pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) nodaemon=false ; (start in foreground if true;default false) minfds=1024 ; (min. avail startup file descriptors;default 1024) minprocs=200 ; (min. avail process descriptors;default 200)  [supervisorctl] serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket  [unix_http_server] file=/tmp/supervisor.sock ; (the path to the socket file) 

I have tried doing the reread, update, reload commands but they haven't worked. Any ideas?

like image 706
Kmat Avatar asked Jan 26 '15 05:01

Kmat


People also ask

How do I know if Supervisorctl is running?

Step 1 - Installation The supervisor service runs automatically after installation. You can check its status: sudo systemctl status supervisor.

How do I restart Supervisorctl?

To start a non-running service or stop a running one, use supervisorctl start my-daemon and supervisorctl stop my-daemon . To restart a service, you can also use supervisorctl restart my-daemon .

What is Supervisord for?

Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. It shares some of the same goals of programs like launchd, daemontools, and runit.


2 Answers

You should try to reload supervisord :

# supervisorctl reload [y/N] ? y 

In many cases, this error is resolved by that reload.

like image 78
Rémi Becheras Avatar answered Sep 25 '22 11:09

Rémi Becheras


On my Fedora22, I modified below lines in /etc/supervisord.conf:

[include] files = supervisord.d/*.ini 

to

[include] files = supervisord.d/*.conf 

and then reload

like image 40
user2985932 Avatar answered Sep 24 '22 11:09

user2985932