Recently, I deployed a django project using this tutorial.
When I use sudo journalctl -u gunicorn
to check gunicorn logs I always get “No entries”. This happens even when the application has errors.
usr@ubuntu:~/api$
usr@ubuntu:~/api$ sudo journalctl -u gunicorn
[sudo] password for user:
-- No entries --
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.
This is still an issue on all of my droplets, starting recently. There is a fix, which is to restart systemd-journald.
I tried the same the other day and got no idea why it wouldn’t work, but what I did manage to find was the logs are in /var/logs/ and then you have access to read all of them and I recall seeing one in there for gunicorn.
Sorry wish I could be a little more accurate but don’t have my terminal open at moment, but i hope this helps.