问题原文
原帖链接 · lyoko the · CC BY-SA 3.0
After deleting my /var/log/journal by accident, I am unable to recover from the consequences. systemd-journald keeps failing over and over again every time I try to start it. when I run:
$ journalctl --verify
PASS: /run/log/journal/system.journal
which doesn't bring me one step closer to solve it because /run/log/journal/system.journal is created when I run /usr/lib/systemd/systemd-journald directly, which on it self outputs
$ /usr/lib/systemd/systemd-journald
Failed to open runtime journal: Invalid argument
Things I have already tried:
- cleaning
/var/log/journal and/run/log/journal`. - copying
/var/log/journalfrom another machine to both paths, runningjournalctl --verifyto check them, and once again with--fileflag. - changing Storage setting in
/etc/systemd/journald.conftoStorage=volatilejust to disable/var/log/journald. - Rebooting.
已采纳解答
原帖链接 · lyoko the · CC BY-SA 3.0
After renaming the hostname, deleting & recreating /etc/machine-id by running systemd-machine-id-setup and rebooting to apply these, systemd-journald came back to life!
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
