JournalD
Debugging steps when journal logs are missing¶
Follow these debugging steps, when systemd
service is running, but logs are missing in journalctl
:
sudo -i
if not already.- Try running
journalctl -b
to see messages from the current boot. - If you still get
-- No entries --
, runjournalctl --verify
. - If you get
No journal files were found
, something is corrupted with the journal service itself. Runsystemctl 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
https://unix.stackexchange.com/a/538881
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.