How to Fix Failed to Start systemd-timesyncd.service in Ubuntu

Accurate system time synchronization is critical for Linux servers, virtual machines, and desktop workstations. Network authentication protocols (Kerberos, OAuth), SSL/TLS digital certificate validations, database transaction logs, and cron scheduled jobs all require precise, synchronized UTC clocks. In Ubuntu, systemd-timesyncd is the default lightweight Network Time Protocol (NTP) client daemon. However, during boot or following system updates, administrators frequently encounter the failure: Failed to start systemd-timesyncd.service - Network Time Synchronization.

Why Does systemd-timesyncd Fail to Start in Ubuntu?

The systemd-timesyncd daemon fails when it cannot bind local network sockets, read configuration files, or contact upstream NTP servers. Common causes include:

  • Port 123 (NTP) Contention with Chrony or NTPd: Another time synchronization daemon (such as chrony or legacy ntp) is already running and occupying UDP port 123.
  • Corrupted Local Time Clock Database: Stale or damaged clock touch files located inside /var/lib/systemd/timesync/clock.
  • Unreachable Fallback NTP Servers: Default NTP servers (ntp.ubuntu.com) blocked by local DNS outages or restrictive corporate firewall rules.
  • Virtualization / Container Clock Locking: LXC, Docker, or OpenVZ containers where host kernels forbid guest containers from adjusting hardware clocks (CAP_SYS_TIME missing).
  • Corrupted timesyncd.conf Syntax: Malformed formatting or invalid directives inside /etc/systemd/timesyncd.conf.

Method 1: Check for Conflicting Time Services (Chrony or NTPd)

Only one NTP daemon can bind UDP port 123 and synchronize the kernel clock at any given time.

  1. Check if chrony or ntp is installed and active on your system:
    systemctl status chrony ntpd ntp
  2. If chrony is installed and running, Ubuntu purposefully disables systemd-timesyncd because Chrony is the more advanced enterprise time daemon.
  3. If you prefer Chrony, simply mask timesyncd to silence the error:
    sudo systemctl mask systemd-timesyncd.service
  4. If you prefer the default systemd-timesyncd, remove conflicting daemons:
    sudo apt purge chrony ntp
    sudo systemctl unmask systemd-timesyncd.service
    sudo systemctl restart systemd-timesyncd.service

Method 2: Remove Corrupted Clock Touch Files

Damaged timestamp records in the timesync directory prevent the daemon from initialising.

  1. Stop the service:
    sudo systemctl stop systemd-timesyncd.service
  2. Remove the historical clock reference file:
    sudo rm -f /var/lib/systemd/timesync/clock
  3. Touch a fresh reference file:
    sudo touch /var/lib/systemd/timesync/clock
    sudo chown systemd-timesync:systemd-timesync /var/lib/systemd/timesync/clock
  4. Start the service:
    sudo systemctl start systemd-timesyncd.service

Method 3: Configure Reliable NTP Servers in timesyncd.conf

If default Ubuntu NTP servers are unreachable, specify trusted regional NTP pools.

  1. Open the configuration file in a text editor:
    sudo nano /etc/systemd/timesyncd.conf
  2. Locate the [Time] section.
  3. Uncomment the NTP= and FallbackNTP= lines and specify public NTP pools:
    [Time]
    NTP=time.google.com time.cloudflare.com
    FallbackNTP=0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org
  4. Save and exit (Ctrl + O, Enter, Ctrl + X).
  5. Restart the service:
    sudo systemctl restart systemd-timesyncd.service

Method 4: Enable Network Time Synchronization via timedatectl

Use the official control utility to re-engage network clock synchronization.

  1. Turn on network time synchronization:
    sudo timedatectl set-ntp true
  2. Query overall time and synchronization health:
    timedatectl status
  3. Verify that NTP service: active appears in the output report.

Method 5: Check Container Privileges in Docker / LXC

Ensure that containerized instances have permission to adjust system clocks.

  1. In unprivileged Docker or LXC containers, adjusting the kernel system clock is prohibited by design. The container clock inherits the host clock directly.
  2. If running inside a container, mask the service as it is unnecessary:
    sudo systemctl mask systemd-timesyncd.service
  3. If the container genuinely requires independent clock manipulation, add the SYS_TIME capability on the host:
    docker run --cap-add=SYS_TIME ...

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.