hello, a check of gunicorn log sudo journalctl -u gunicorn.socket I receive this error message"gunicorn.socket: Failed with result ‘service-start-limit-hit’." so what should I do?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey!
This suggests that the Gunicorn service attempted to start multiple times and failed each time, reaching the systemd’s start limit for the service.
Start by checking the detailed status of the Gunicorn service to get more insight into what might be causing the failures:
When running
sudo journalctl -u gunicorn.socket
do you see any other messages right before theFailed with result ‘service-start-limit-hit’
error?There are a few things that I could suggest checking in addition:
sudo less /var/log/nginx/error.log
sudo journalctl -u gunicorn.socket
If none of those give you any additional information on what the actual problem is, what you can try is to manually start Gunicorn outside of systemd, by running the command inside your Python project’s directory
This should return the actual error that is causing the restart failures.
Let me know how it goes!
Best,
Bobby
Heya @a85f3d362866415d9342a8cebcc419,
The error message “Failed with result ‘service-start-limit-hit’” from
journalctl
when checking your Gunicorn logs indicates that the Gunicorn service has attempted to start too many times in a short period and has hit the systemd start limit.What I’ll recommend you is to check your error log apart from what already has been said.