[systemd-devel] Monotonic time went backwards, rotating log
Pekka Paalanen
ppaalanen at gmail.com
Fri Oct 6 07:36:29 UTC 2023
On Thu, 05 Oct 2023 13:32:37 -0400
Phillip Susi <phill at thesusis.net> wrote:
> Phillip Susi <phill at thesusis.net> writes:
>
> > Lennart Poettering <lennart at poettering.net> writes:
> >
> >> It actually checks that first:
> >>
> >> https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-journal/journal-file.c#L2201
> >
> > That's what I'm saying: it should have noticed that FIRST and not gotten
> > to the monotonic time check, but it didn't.
>
> I decided to try looking into this again. It seems it's also my system
> log that is rotated on each boot with this message about the monotonic
> clock, despite the fact that it should be rotated first just because
> it's a new boot.
Hi,
have you checked your boot ID, maybe it's often the same as the previous
boot?
IIRC I had that problem on a device that had no RTC and when no
software (kernel, etc.?) had been updated at all. The said device had
problems keeping its logs in order, too, with some old systemd version.
Thanks,
pq
> There are some debug prints that might shed light on what is happening,
> but I can't seem to get them to enable. I tried setting
> Environment=SYSTEMD_DEBUG_LEVEL=debug on systemd-journald.service, but I
> still don't get them.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20231006/1c74044b/attachment.sig>
More information about the systemd-devel
mailing list