linux Supervisor FATAl退出过快(进程日志可能包含详细信息(关于inet_http_server和unix_http_server)

ig9co6j1  于 2022-11-02  发布在  Linux
关注(0)|答案(1)|浏览(268)

我写了一个Django项目,我使用了gunicorn的管理员
sudo supervisorctl reread

[group:weather_station]
programs=site

[program:site]
directory=$PROJECT
command=/home/nhcc/.local/bin/gunicorn -c /$PROJECT/weather_station/gunicorn.conf.py -p gunicorn.pod weather_station.wsgi
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor.log
environment=my-environment-variable
~

sudo supervisorctl reread
sudo supervisorctl reload
sudo supervisorctl status
它显示错误
weather_station:站点FATAL退出过快(进程日志可能包含详细信息)
所以我查看了日志文件:
/var/log/supervisor/supervisord.log
2017-09-08 17:15:25,000 CRIT主管以root身份运行(配置文件中无用户)
2017-09-08 17:15:25,000警告解析过程中包含额外文件“/etc/supervisor/conf.d/weather.conf”
2017-09-08 17:15:25,007 INFO RPC接口“管理员”已初始化
2017-09-08 17:15:25,008 CRIT服务器'inet_http_server'正在运行,未进行任何HTTP身份验证检查
2017-09-08 17:15:25,008 INFO RPC接口“管理员”已初始化
2017-09-08 17:15:25,008 CRIT服务器'unix_http_server'运行时未进行任何HTTP身份验证检查
2017-09-08 17:15:25,008信息管理器启动,pid为32371
2017-09-08 17:15:26,013信息产生:pid为32447的“站点”
2017-09-08 17:15:26,018信息已退出:站点(退出状态127;非预期)
2017-09-08 17:15:27,022信息产生:pid为32448的“站点”
2017-09-08 17:15:27,026信息已退出:站点(退出状态127;非预期)
2017-09-08 17:15:29,032信息产生:pid为32449的“站点”
2017-09-08 17:15:29,038信息已退出:站点(退出状态127;非预期)
2017-09-08 17:15:32,043信息产生:pid为32451的“站点”
2017-09-08 17:15:32,059信息已退出:站点(退出状态127;非预期)
2017-09-08 17:15:33,060 INFO放弃了:站点进入FATAL状态,启动重试次数过多,速度过快
根据Included extra file
根据Server 'unix_http_server' running without any HTTP authentication checking
我添加了两个部分[unix_http_server]和[inet_http_server]

[unix_http_server]
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0766                 ; socket file mode (default 0700)
;chown=nobody:nogroup       ; socket file uid:gid owner
;username=user              ; (default is no username (open server))
;password=123               ; (default is no password (open server))

[inet_http_server]         ; inet (TCP) server disabled by default
port=*:9001        ; (ip_address:port specifier, *:port for all iface, 
;username=user              ; (default is no username (open server))
;password=123               ; (default is no password (open server))

这是当前的超级用户。conf

[unix_http_server]
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0766                 ; socket file mode (default 0700)

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket

[inet_http_server]         ; inet (TCP) server disabled by default
port=*:9001        ;

[include]
files = /etc/supervisor/*.conf
files = /etc/supervisor/conf.d/*.conf

然后我就跑了

sudo supervisord -c /etc/supervisor/supervisord.conf
sudo supervisorctl -c /etc/supervisor/supervisord.conf

然后我跑
sudo supervisorctl reread
sudo supervisorctl reload
我又查了一遍日志
误差完全相同
有人知道为什么吗?

xzv2uavs

xzv2uavs1#

尝试:


# service supervisord stop

    # supervisord -c /etc/supervisor/supervisord.conf

然后使用以下命令检查状态:


# supervisorctl status

相关问题