1. Problem description
When using supervisorctl to start the website, it prompts an error: ERROR (spawn error), as shown in the following figure:
2. Problem Analysis
1. View the supervisor configuration file
For example: /etc/supervisor/conf.d/supervisor-mysite.conf
-
[program:mysite]
-
command =/usr/local/bin/gunicorn — bind unix:/tmp/www.sweeneys.cn.socket mysite.wsgi:application
-
directory=/home/Sweeneys/www/mysite
-
user=Sweeneys
-
autostart= true
-
autorestart= true
-
stopasgroup= true
-
killasgroup= true
-
redirect_stderr= true
-
stdout_logfile_maxbytes=200MB
-
stdout_logfile_backups=10
-
stdout_logfile =/var/log/supervisor/mysite-supervisor.log
Then you can see that the name of the program is: mysite
2. Use supervisorctl tail
…
The post supervisor error: ERROR (spawn error) first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/8682
This site is for inclusion only, and the copyright belongs to the original author.