[systemd-bugs] [Bug 61411] All logs since last boot gone after crash/hard reboot

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 19 05:49:04 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=61411

--- Comment #9 from Peter Wu <lekensteyn at gmail.com> ---
The original issue in this bug (logs gone on crash) is solved. Entries are
properly written to the journals.

I have a different issue where the order of messages is interleaved (journalctl
is apparently sorting by date?), but that fails horribly because there is no
RTC in my device. Therefore, all boots starts on January 1st.

rsyslogd would write log entries to disk and if power is suddenly gone, you can
see the new boot log entries appended to the previous one.

rsyslogd example (after reboot, truncated to preserve space):
Jan  1 01:00:16 arpi systemd[1]: Starting OpenNTP Daemon...
Jan  1 01:00:17 arpi systemd[1]: Failed to read PID from file /run/nginx...
Jan  1 01:00:17 arpi systemd[1]: Started A high performance ...
May 19 14:32:10 arpi systemd[1]: Time has been changed
May 19 14:32:10 arpi systemd[1]: Started OpenNTP Daemon.

journalctl (diff on journal before "crash" and after reboot):
+Jan 01 01:00:16 arpi systemd[1]: Starting OpenNTP Daemon...
+-- Reboot --
 (old log entries here)
+-- Reboot --
+Jan 01 01:00:17 arpi systemd[1]: Failed to read PID from file /run/nginx...
+-- Reboot --

 (more old log entries and newer entries interleaved)

+May 19 14:31:10 arpi sshd[358]: pam_unix(sshd:session): ...
+May 19 14:31:10 arpi systemd-logind[115]: New session c2 ...
+-- Reboot --
+May 19 14:32:10 arpi systemd[1]: Time has been changed
+May 19 14:32:10 arpi systemd[1]: Started OpenNTP Daemon.

Again, this is a completely different issue, I am not sure what it is related
to.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130519/14ae0f4b/attachment.html>


More information about the systemd-bugs mailing list