[systemd-bugs] [Bug 64760] New: journalctl mixes new logs with logs from the previous boot on crash (no RTC)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 19 06:00:38 PDT 2013


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

          Priority: medium
            Bug ID: 64760
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: journalctl mixes new logs with logs from the previous
                    boot on crash (no RTC)
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: lekensteyn at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Originally mentioned at https://bugs.freedesktop.org/show_bug.cgi?id=61411#c9:
--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8---
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.
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---

This corruption occurs when the system is uncleanly shut down (pull power). It
makes logs hard to read with journalctl.

These logs are taken from a Raspberry Pi, an ARM board with no RTC.

-- 
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/71502386/attachment.html>


More information about the systemd-bugs mailing list