問題:工作中使用supervisord管理進程,在配置一個新應用后重啟該進程時報錯:FATAL Exited too quickly (process log may have details)
方法:先根據supervisor配置中的日志路徑,查看日志,發現日志中有報錯的詳細信息:
lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) probably another instance of uWSGI is running on the same address (0.0.0.0:8003). bind(): Address already in use [core/socket.c line 769]
也就是說,supervisor重啟的是uwsgi進程,uwsgi的配置參數:socket,也就是uwsgi的客戶端將要連接的socket的地址:0.0.0.0:8003 已經被別的進程給占用了,所以需要修改下socket參數。
更新socket參數后,重啟進程沒有報錯。
