Around May 3rd, I accidentally deleted my /etc/machine-id
file and had to recreate a new one with systemd-machine-id-setup
. Since then, my user logs have not been showing correctly, despite numerous rebuilds and reboots.
For example, if I try:
journalctl --user -u syncthing.service
I get some results up until May 3rd, but nothing after. However, if I do:
sudo journalctl | grep syncthing
Then I see recent logs as expected. Strangely, this second command requires sudo
, even though the journalctl manpage says being in the wheel
group should be sufficient. Witihout sudo
, I again only see log entries up to May 3rd.
This goes for other services as well.
No logs shown:
sudo systemctl status nixos-upgrade.service
Shows recent logs:
sudo journalctl | grep nixos-upgrade
What would cause these logs to not be categorized by unit anymore? And why are they no longer visible without using sudo?