journalctl command shows no logs

November 7, 2019 715 views
Python Django Development

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 --
1 Answer

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.

  • In addition to this issue, commands like systemctl status nginx doesn’t show any logs (at the bottom). It looks like a systemd bug.

    Yes, I can see logs in /var/logs/ but journalctl is a little bit more handy.

    Ironically, on all my other droplets both commands are working fine.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!