Repository navigation
Closed
Description
systemd version the issue has been seen with
252.26-1~deb12u2
252.30-1~deb12u2
Used distribution
Debian 12.6
Linux kernel version used
6.7.12-edge-sunxi
CPU architectures issue was seen on
arm
Component
systemd-timesync
Expected behaviour you didn't see
System time sync automatically
Unexpected behaviour you saw
System time is not synced. Since the host does not have hardware RTC the time is wrong on reboot.
➜ ~ sudo timedatectl status
Local time: Sat 2024-08-31 20:14:16 EDT
Universal time: Sun 2024-09-01 00:14:16 UTC
RTC time: Sun 2024-09-01 00:13:59
Time zone: America/New_York (EDT, -0400)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
➜ ~ sudo timedatectl timesync-status
Server: n/a (n/a)
Poll interval: 0 (min: 32s; max 34min 8s)
Packet count: 0
➜ ~ sudo systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-08-31 19:49:05 EDT; 18min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 475 (systemd-timesyn)
Status: "Daemon is running"
Tasks: 1 (limit: 898)
Memory: 824.0K
CPU: 320ms
CGroup: /system.slice/systemd-timesyncd.service
└─475 /lib/systemd/systemd-timesyncd
Aug 31 19:49:04 nanopineo systemd[1]: Starting systemd-timesyncd.service - Network Time Synchronization...
Aug 31 19:49:05 nanopineo systemd[1]: Started systemd-timesyncd.service - Network Time Synchronization.
➜ ~ sudo journalctl -u systemd-timesyncd
Aug 31 20:11:56 nanopineo systemd[1]: Stopping systemd-timesyncd.service - Network Time Synchronization...
Aug 31 20:11:56 nanopineo systemd[1]: systemd-timesyncd.service: Deactivated successfully.
Aug 31 20:11:56 nanopineo systemd[1]: Stopped systemd-timesyncd.service - Network Time Synchronization.
Aug 31 20:11:56 nanopineo systemd[1]: Starting systemd-timesyncd.service - Network Time Synchronization...
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Bus bus-api-timesync: changing state UNSET → OPENING
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: sd-bus: starting bus bus-api-timesync by connecting to /run/dbus/system_bus_socket...
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Bus bus-api-timesync: changing state OPENING → AUTHENTICATING
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Registering bus object implementation for path=/org/freedesktop/LogControl1 iface=org.freedesktop.LogControl1
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Added new fallback server 0.debian.pool.ntp.org.
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Added new fallback server 1.debian.pool.ntp.org.
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Added new fallback server 2.debian.pool.ntp.org.
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Added new fallback server 3.debian.pool.ntp.org.
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: systemd-timesyncd running as pid 24820
Aug 31 20:11:56 nanopineo systemd[1]: Started systemd-timesyncd.service - Network Time Synchronization.
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Bus bus-api-timesync: changing state AUTHENTICATING → HELLO
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=RequestName cookie=2 reply_cookie=0 signature=su error-name=n/a error-message=n/a
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.24 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Bus bus-api-timesync: changing state HELLO → RUNNING
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Got message type=signal sender=org.freedesktop.DBus.Local destination=n/a path=/org/freedesktop/DBus/Local interface=org.freedesktop.DBus.Local member=Connected cookie=4294967295 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Got message type=signal sender=org.freedesktop.DBus destination=:1.24 path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=2 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Got message type=signal sender=org.freedesktop.DBus destination=:1.24 path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=3 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.24 path=n/a interface=n/a member=n/a cookie=4 reply_cookie=2 signature=u error-name=n/a error-message=n/a
Aug 31 20:11:56 nanopineo systemd-timesyncd[24820]: Successfully acquired requested service name.
/etc/systemd/timesyncd.conf:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the timesyncd.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# See timesyncd.conf(5) for details.
[Time]
#NTP=
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
#ConnectionRetrySec=30
#SaveIntervalSec=60Steps to reproduce the problem
No response
Additional program output to the terminal or log subsystem illustrating the issue
No response
Reacted by Thomas Bastiani
Activity
Winterhuman commentedon Sep 1, 2024
I've experienced this issue before when my hardware RTC started failing. The reason
systemd-timesyncdcouldn't do anything, in my case, was because the NTP servers are specified as DNS domains, however, DNS resolvers may fail to get a response if the time is too out of sync.Perhaps systemd could save the IP address(es) of whatever NTP server was last successfully connected to, and check for it if DNS is unavailable?
4piu commentedon Sep 1, 2024
@Winterhuman Thank you for the reply. In my case, I can ping the NTP servers without issue. I also tried manually correcting the system clock, but the
systemd-timesyncdstill won't sync.Winterhuman commentedon Sep 1, 2024
What DNS resolver are you using? Can you confirm that a command like
dig 0.debian.pool.ntp.orgdefinitely works? If it does, I'm not sure how to help unfortunately; we probably have different issues in that caseyuwata commentedon Sep 2, 2024
Sorry, here is an upstream issue tracker, and v252 is too old. Please reproduce the issue with a recent release (v255, v256) or the current git HEAD. If the issue can be reproducible with them, then please provide
resolvectldig 0.debian.pool.ntp.orgas suggested by @Winterhuman in the above,sudo systemctl edit systemd-timesyncd.service:Closing. Feel free to request to reopen this page with the above information. Or, please contact to your downstream.
4piu commentedon Sep 2, 2024
Thank you. The problem is fixed after I upgrading Debian to sid with
systemd 256 (256.5-2). I also reinstall thefake-hwclockThe debug log seems normal now. Previously it never sends out NTP request after
Successfully acquired requested service namethomas-slamcore commentedon Sep 29, 2025
I had exactly the same issue. I tracked it down. I was using
NetworkManagerto manage my interfaces butsystemd-networkdwas enabled anyway.systemd-networkdwas advertising it's internalONLINE_STATE=offlinetosystemd-timesyncdwhich in turn caused it to stall indefinitely. In my case the fix was to disablesystemd-networkd.igrmm commentedon Jan 3, 2026
Thank you, this fix worked for me, just disabled systemd-networkd