Bug 2223383
| Summary: | systemd-sleep clock error on resume | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Patrick O'Callaghan <poc> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 38 | CC: | dtardon, fedoraproject, filbranden, lnykryn, msekleta, ryncsn, systemd-maint, yuwatana, zbyszek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-24 08:46:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Patrick O'Callaghan
2023-07-17 14:18:17 UTC
Hmm, please describe the issue, not your interpretation of underlying causes.
The entries in the journal are stored in UTC, without a timezone. Any time
zone offsets are applied during display. Similarly, the hardware clock also
doesn't know anything about time zones.
If entries are non-monotonic, this is usually because the system clock jumps,
for example because it was initialized inaccurately, and then later is adjusted
using NTP.
Thus: please make sure that your hwclock is set, has a working battery, and
that the system is configured to interpret the hwclock as UTC
('timedatectl' shows 'RTC in local TZ: no'.)
(In reply to Zbigniew Jędrzejewski-Szmek from comment #1) > Hmm, please describe the issue, not your interpretation of underlying causes. > I believe I did describe the issue, though I agree that my interpretation was wrong. > The entries in the journal are stored in UTC, without a timezone. Any time > zone offsets are applied during display. Similarly, the hardware clock also > doesn't know anything about time zones. > I understand that. > If entries are non-monotonic, this is usually because the system clock jumps, > for example because it was initialized inaccurately, and then later is > adjusted > using NTP. > > Thus: please make sure that your hwclock is set, has a working battery, and > that the system is configured to interpret the hwclock as UTC > ('timedatectl' shows 'RTC in local TZ: no'.) I checked the RTC and indeed the 'RTC in local TZ' field was set to 'yes'. I reset it: $ timedatectl [...] System clock synchronized: yes NTP service: active RTC in local TZ: no However this didn't fix the problem: Jul 18 09:01:11 Bree chronyd[1049]: Selected source 162.159.200.1 (2.fedora.pool.ntp.org) Jul 18 08:01:12 Bree systemd-journald[643]: Time jumped backwards, rotating. Jul 18 08:01:11 Bree systemd-resolved[920]: Clock change detected. Flushing caches. Jul 18 09:01:11 Bree chronyd[1049]: System clock wrong by -3599.682211 seconds Jul 18 08:01:11 Bree rsyslogd[953]: imjournal: journal files changed, reloading... [v8.2306.0-1.fc38 try https://www.rsyslog.com/e/0 ] Jul 18 08:01:11 Bree chronyd[1049]: System clock was stepped by -3599.682211 seconds Jul 18 08:01:11 Bree chronyd[1049]: System clock TAI offset set to 37 seconds Please attach the output of 'timedatectl' and 'journalctl -b'. Apologies for the delay as I was dealing with other issues. After trying this again a couple of times, it appears that the fix does in fact work, i.e. the clock is being correctly set on power-up. I'm 99% sure I did test this correctly the first time and it didn't work, but I have to assume I was mistaken. Thanks for the help. Phew, problem solved ;) Feel free to reopen if the issue pops up again. |