当前位置: 首页 > 工具软件 > quickly > 使用案例 >

supervisord启动子程序报错Exited too quickly (process log may have details)解决

丌官开宇
2023-12-01

首次安装并配置子程序后启动supervisord后查看状态信息发现子程序一直未启动起来。

[root@storage config.d]# supervisorctl status
qc-think            FATAL     Exited too quickly (process log may have details)

说我退出的太快了?首次启动也不能啊,尝试使用supervisord去启动子程序后发现还是报错。

[root@storage config.d]# supervisorctl restart qc-think
qc-think: ERROR (not running)
qc-think: ERROR (spawn error)

到这里才感觉到应该是程序的错误。还好配置了子程序的日志输出。

stdout_logfile=/tmp/xxxxxx.log  ; stdout的输出文件,默认为AUTO

查看日志才发现是刚安装的python3 很多包未安装。

Traceback (most recent call last):
  File "/data/qc-thinkng/QualityControl.py", line 1, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

pip批量安装一波后。因为配置了 自动重启。所以直接查看status就可以直接看到启动成功了。

至此问题解决,日志真的是个好东西啊。

[root@storage config.d]# supervisorctl status
qc-think                         STARTING  
[root@storage config.d]# supervisorctl status
qc-think                         RUNNING   pid 6653, uptime 0:00:11

 类似资料: