解决方案 SHUTDOWN_STATE xmlrpclib.py line: 794 && ERROR: supervisor shutting down

Supervisor操作命令

  1. 重新加载 Supervisor 配置

    复制代码
    sudo supervisorctl reread
    sudo supervisorctl update
    sudo supervisorctl restart all

    这将重新读取 Supervisor 的配置文件,更新进程组,然后重启所有进程。

  2. 查看 Supervisor 日志

    复制代码
    sudo cat /var/log/supervisor/supervisord.log

    这将显示 Supervisor 的日志文件,您可以查看其中的错误信息以获取更多细节。

Supervisorctl异常Case及解决方案

第一种错误Case

supervisord -c /etc/supervisord.conf

错误

Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.

For help, use /bin/supervisord -h


第二种错误Case

supervisorctl status

错误

error: <class 'xmlrpclib.Fault'>, <Fault 6: 'SHUTDOWN_STATE'>: file: /usr/lib64/python2.7/xmlrpclib.py line: 794


第三种错误Case

supervisorctl restart all

错误

error: <class 'xmlrpclib.Fault'>, <Fault 6: 'SHUTDOWN_STATE'>: file: /usr/lib64/python2.7/xmlrpclib.py line: 794


第四种错误Case

supervisorctl reread && supervisorctl update all

错误

ERROR: supervisor shutting down

ERROR: already shutting down

Supervisorctl解决方案

ps -aux|grep supervisor

kill -9 the_pid

supervisord

supervisorctl status

https://github.com/Supervisor/supervisor/issues/48

相关推荐
!沧海@一粟!16 分钟前
Linux高并发内核优化
linux·运维·oracle
perfect1231264517 分钟前
轻量运维工具fastdp v6版本
linux·运维
linksinke24 分钟前
在 CentOS 7.x 外网环境离线构建便携式 Python 3.11.4 的方案参考
linux·python·centos
xuefuhe26 分钟前
Linux:/bin/false 与 nologin 的本质区别与安全防范
linux
2401_8685347826 分钟前
RTOS与Linux的区别对比解析
linux·运维·服务器
Bert.Cai27 分钟前
Linux chmod命令详解
linux·运维·服务器
eggrall29 分钟前
Linux信号——信号捕捉
linux·运维·服务器
.千余31 分钟前
【Linux】 TCP进阶详解:字节流、粘包问题、异常情况与UDP完整对比2
linux·运维·c语言·开发语言·经验分享·笔记·php
PascalMing31 分钟前
从零实现一款 Windows 下的 SSH 批量运维工具:LinuxSshTools 技术详解
运维·windows·ssh
Bert.Cai36 分钟前
Linux chown命令详解
linux·运维·服务器