Home  >  Q&A  >  body text

python - Supervisor starts the program and reports an error, ERROR (spawn error), how to view the specific error information

1. Use gunicorn to access the website through the external network port normally
2. After configuring the supervisor, supervisord -c supervisor.conf is normal
3. Supervisorctl -c supervisor.conf starts flask and an error is reported

4.supervisorctl -c supervisor.conf start flask prompts success, but query status shows exit


三叔三叔2686 days ago3803

reply all(2)I'll reply

  • typecho

    typecho2017-07-04 13:46:31

    Method 1:

    supervisorctl tail flask stdout

    Method 2:

    Directly view the relevant files starting with supervisor under /tmp/ (default log path)

    reply
    0
  • 代言

    代言2017-07-04 13:46:31

    supervisord is just a daemon process to help you maintain the stability of your process

    启动命令:supervisord -c 配置文件.conf
    

    Configuration file.conf

    [program:programName]
    command=网站的启动命令
    autostart=true
    autorestart=true
    stderr_logfile=/var/log/err.log
    stdout_logfile=/var/log/out.log
    stopsignal=INT
    [supervisord]
    pidfile=/var/run/supervisord.pid
    logfile=/var/log/supervisord.log

    reply
    0
  • Cancelreply