查看两处报错:
1、supervisor启动程序,报错:
❯ supervisorctl status
uwsgi FATAL Exited too quickly (process log may have details)
2、查看supervisor日志,日志路径在supervisor.conf里,报错信息如下:
2022-05-09 19:47:06,957 INFO supervisord started with pid 3083
2022-05-09 19:47:07,959 INFO spawned: 'uwsgi' with pid 4046
2022-05-09 19:47:08,971 INFO exited: uwsgi (exit status 1; not expected)
2022-05-09 19:47:09,973 INFO spawned: 'uwsgi' with pid 4048
2022-05-09 19:47:10,986 INFO exited: uwsgi (exit status 1; not expected)
2022-05-09 19:47:12,990 INFO spawned: 'uwsgi' with pid 4094
2022-05-09 19:47:14,001 INFO exited: uwsgi (exit status 1; not expected)
2022-05-09 19:47:17,005 INFO spawned: 'uwsgi' with pid 4099
2022-05-09 19:47:18,018 INFO exited: uwsgi (exit status 1; not expected)
2022-05-09 19:47:19,019 INFO gave up: uwsgi entered FATAL state, too many start retries too quickly
解决办法:
从uwsgi的配置文件里删除这条配置daemonize = /home/xxx/logs/uwsgi.log,上面的报错就不会出现了
注意:这个配置是在uwsgi自身服务的ini配置文件里,千万别和supervisor.d文件夹自定义的uwsgi.ini混淆了。
要使用日志记录,用 logto = /home/xxx/logs/uwsgi.log