http://bugzilla.opensuse.org/show_bug.cgi?id=1137341 Bug ID: 1137341 Summary: systemd-timesyncd fails to start Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: badshah400@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Since a recent TW version (not sure precisely when, sorry) timesyncd fails to start at boot or when called by `systemctl start systemd-timesyncd` The following error is written to the journal: ---------------------------------------------- Jun 05 13:57:05 systemd[1]: Starting Network Time Synchronization... Jun 05 13:57:05 systemd[1]: Condition check resulted in Rebuild Journal Catalog being skipped. Jun 05 13:57:05 systemd[1]: Condition check resulted in Update is Completed being skipped. Jun 05 13:57:05 systemd[1]: Starting Security Auditing Service... Jun 05 13:57:05 systemd[869]: systemd-timesyncd.service: Failed to set up special execution directory in /var/lib: Not a directory Jun 05 13:57:05 systemd[869]: systemd-timesyncd.service: Failed at step STATE_DIRECTORY spawning /usr/lib/systemd/systemd-timesyncd: Not a directory Jun 05 13:57:05 systemd[1]: systemd-timesyncd.service: Main process exited, code=exited, status=238/STATE_DIRECTORY Jun 05 13:57:05 systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'. Jun 05 13:57:05 systemd[1]: Failed to start Network Time Synchronization. Jun 05 13:57:05 systemd[1]: systemd-timesyncd.service: Service has no hold-off time (RestartSec=0), scheduling restart. Jun 05 13:57:05 systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 1. Jun 05 13:57:05 systemd[1]: Stopped Network Time Synchronization. Jun 05 13:57:05 systemd[1]: Starting Network Time Synchronization... Jun 05 13:57:05 auditd[874]: Started dispatcher: /sbin/audispd pid: 876 Jun 05 13:57:05 systemd[873]: systemd-timesyncd.service: Failed to set up special execution directory in /var/lib: Not a directory Jun 05 13:57:05 systemd[873]: systemd-timesyncd.service: Failed at step STATE_DIRECTORY spawning /usr/lib/systemd/systemd-timesyncd: Not a directory Jun 05 13:57:05 systemd[1]: systemd-timesyncd.service: Main process exited, code=exited, status=238/STATE_DIRECTORY Jun 05 13:57:05 systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'. Jun 05 13:57:05 auditd[874]: Init complete, auditd 2.8.4 listening for events (startup state enable) Jun 05 13:57:05 systemd[1]: Failed to start Network Time Synchronization. ---------------------------------------------- The problem is apparently the presence of a symlink 'timesync' in /var/lib/systemd --------------------------- :~> ls -l /var/lib/systemd/ total 12 drwxr-xr-x 1 root root 16 Jun 5 13:50 catalog -rw-r--r-- 1 systemd-timesync systemd-timesync 0 Mar 21 2018 clock drwxr-xr-x 1 root root 160 Jun 5 13:51 coredump -rw------- 1 root root 4 Nov 18 2016 entropy_count drwxr-xr-x 1 root root 3690 Jun 2 17:26 migrated -rw------- 1 root root 512 Jun 5 13:57 random-seed drwxr-xr-x 1 root root 16 Jun 2 17:26 sysv-convert drwxr-xr-x 1 root root 472 Feb 8 12:16 timers lrwxr-xr-x 1 root root 27 Mar 21 2018 timesync -> ../private/systemd/timesync ---------------------------- If you remove this symlink and restart the systemd-timesyncd service, it starts working again. You only need to do this once (potentially after being late to your meeting because your clock didn't synchronise after booting since a previous boot into windows messed it up?!?). It creates a regular directory (instead of the symlink): :~> ls -l /var/lib/systemd/time* total 12 drwxr-xr-x 1 root root 16 Jun 5 13:50 catalog -rw-r--r-- 1 systemd-timesync systemd-timesync 0 Mar 21 2018 clock drwxr-xr-x 1 root root 160 Jun 5 13:51 coredump -rw------- 1 root root 4 Nov 18 2016 entropy_count drwxr-xr-x 1 root root 3690 Jun 2 17:26 migrated -rw------- 1 root root 512 Jun 5 13:57 random-seed drwxr-xr-x 1 root root 16 Jun 2 17:26 sysv-convert drwxr-xr-x 1 root root 472 Feb 8 12:16 timers drwxr-xr-x 1 systemd-timesync systemd-timesync 10 Jun 5 14:53 timesync lrwxr-xr-x 1 root root 27 Mar 21 2018 timesync.bak -> ../private/systemd/timesync -- You are receiving this mail because: You are on the CC list for the bug.