supervisor error: ERROR (spawn error)

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

  1. [program:mysite]
  2. command =/usr/local/bin/gunicorn — bind unix:/tmp/www.sweeneys.cn.socket mysite.wsgi:application
  3. directory=/home/Sweeneys/www/mysite
  4. user=Sweeneys
  5. autostart= true
  6. autorestart= true
  7. stopasgroup= true
  8. killasgroup= true
  9. redirect_stderr= true
  10. stdout_logfile_maxbytes=200MB
  11. stdout_logfile_backups=10
  12. 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.

Leave a Comment