大网数据广告活动
服务器运维问答

systemd-journald Doesn't start at all

· 52CE 我爱测

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/journ…

问题原文

原帖链接 · 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:

  1. cleaning /var/log/journal and/run/log/journal`.
  2. copying /var/log/journal from another machine to both paths, running journalctl --verify to check them, and once again with --file flag.
  3. changing Storage setting in /etc/systemd/journald.conf to Storage=volatile just to disable /var/log/journald.
  4. 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!

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。