Debugging steps when journal logs are missing¶
Follow these debugging steps, when
systemd service is running, but logs are missing in
sudo -iif not already.
- Try running
journalctl -bto see messages from the current boot.
- If you still get
-- No entries --, run
- If you get
No journal files were found, something is corrupted with the journal service itself. Run
systemctl status systemd-journald*
- If the services are all "green" (active/running), something is borked with the log files in
/var/log/journal/<hash>. Try running the following to recreate them:
systemctl restart systemd-journald.service
In my case, I had a fresh droplet created on DO but
journal entries were missing for all services. Doing a
sudo systemctl restart systemd-journald.service fixed this weird as hell issue.