openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
820 stars 252 forks source link

systemd-timesyncd fails after some runtime #1754

Closed mstormi closed 1 year ago

mstormi commented 1 year ago
[11:32:49] root@smarthouse:/home/admin# systemctl list-units --state failed
  UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
● systemd-timesyncd.service loaded failed failed Network Time Synchronization

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
2 loaded units listed.
[12:54:29] root@smarthouse:/home/admin# systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
     Active: failed (Result: start-limit-hit) since Mon 2023-01-30 04:08:00 CET; 8h ago
       Docs: man:systemd-timesyncd.service(8)
    Process: 18033 ExecStart=/lib/systemd/systemd-timesyncd (code=exited, status=0/SUCCESS)
   Main PID: 18033 (code=exited, status=0/SUCCESS)
     Status: "Idle."
        CPU: 235ms

Jan 30 04:08:00 smarthouse systemd[1]: Starting Network Time Synchronization...
Jan 30 04:08:00 smarthouse systemd[1]: Started Network Time Synchronization.
Jan 30 04:08:00 smarthouse systemd-timesyncd[18033]: Initial synchronization to time server 188.40.142.18:123 (0.debian.pool.ntp.org).
Jan 30 04:08:00 smarthouse systemd[1]: Stopping Network Time Synchronization...
Jan 30 04:08:00 smarthouse systemd[1]: systemd-timesyncd.service: Succeeded.
Jan 30 04:08:00 smarthouse systemd[1]: Stopped Network Time Synchronization.
Jan 30 04:08:00 smarthouse systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
Jan 30 04:08:00 smarthouse systemd[1]: systemd-timesyncd.service: Failed with result 'start-limit-hit'.
Jan 30 04:08:00 smarthouse systemd[1]: Failed to start Network Time Synchronization.
[12:55:05] root@smarthouse:/home/admin

See also https://community.openhab.org/t/ntp-service-allways-changes-to-inactive/136772/51

mstormi commented 1 year ago

fixed-by: 606c74a53a4b2e65fd852c697387cb124a0cc102