FS#62161 - [systemd] systemd-timesyncd fails to start after upgrading to v240
Attached to Project:
Arch Linux
Opened by Bryan L. Gay (linuxninja) - Thursday, 28 March 2019, 02:30 GMT
Last edited by Christian Hesse (eworm) - Thursday, 25 April 2019, 12:15 GMT
Opened by Bryan L. Gay (linuxninja) - Thursday, 28 March 2019, 02:30 GMT
Last edited by Christian Hesse (eworm) - Thursday, 25 April 2019, 12:15 GMT
|
Details
Description:
upstream requires distribution package maintainers to add an installation script to remove the rm /var/lib/systemd/timesync symlink due to a breaking change upgrading systemd to v240 Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any see: https://github.com/systemd/systemd/issues/11329 Steps to reproduce: Install systemd v239, boot the system, then upgrade to systemd v240. systemd-timesyncd will fail to start execute `rm /var/lib/systemd/timesync` to remove the old symlink restart systemd-timesyncd new directory is successfully created by systemd-timesyncd and the service starts normally additional discussion can be found here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918190 This is not a distribution-specific problem, but upstream has decided that packagers must take it upon themselves to fix when upgrading. Since the cause and fix are well discussed and known, I will not attach logs. |
This task depends upon
Closed by Christian Hesse (eworm)
Thursday, 25 April 2019, 12:15 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 242.0-2
Thursday, 25 April 2019, 12:15 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 242.0-2
Rebooted today, also had to delete symlink to fix timesyncd
if [ -L /var/lib/systemd/timesync ] ; then
rm /var/lib/systemd/timesync
rm -rf /var/lib/private/systemd/timesync
fi
Source:
https://salsa.debian.org/systemd-team/systemd/commit/b274b4ad5a4ba543c8c013fb71dacf2467030ddc
```
-- Reboot --
Apr 24 09:28:20 WorkStation systemd[1]: Starting Network Time Synchronization...
Apr 24 09:28:20 WorkStation systemd[489]: systemd-timesyncd.service: Failed to set up special execution directory in /var/lib: Not a directory
Apr 24 09:28:20 WorkStation systemd[489]: systemd-timesyncd.service: Failed at step STATE_DIRECTORY spawning /usr/lib/systemd/systemd-timesyncd: Not a directory
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Main process exited, code=exited, status=238/STATE_DIRECTORY
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Apr 24 09:28:20 WorkStation systemd[1]: Failed to start Network Time Synchronization.
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 1.
Apr 24 09:28:20 WorkStation systemd[1]: Stopped Network Time Synchronization.
Apr 24 09:28:20 WorkStation systemd[1]: Starting Network Time Synchronization...
Apr 24 09:28:20 WorkStation systemd[500]: systemd-timesyncd.service: Failed to set up special execution directory in /var/lib: Not a directory
Apr 24 09:28:20 WorkStation systemd[500]: systemd-timesyncd.service: Failed at step STATE_DIRECTORY spawning /usr/lib/systemd/systemd-timesyncd: Not a directory
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Main process exited, code=exited, status=238/STATE_DIRECTORY
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Apr 24 09:28:20 WorkStation systemd[1]: Failed to start Network Time Synchronization.
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Apr 24 09:28:20 WorkStation systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 2.
Apr 24 09:28:20 WorkStation systemd[1]: Stopped Network Time Synchronization.
```
Solution from Jeb fixed this issue.
I think this may be posted on Archlinux News main page.