chrony exits unexpectedly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chrony (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I've been running chrony with the default config except for disabling stepping the clock. I run it on a laptop that suspends/resumes frequently. I've noticed that it will sometimes just exit and not get restarted. There doesn't seem to be much of an explanation in the logs:
$ journalctl -r | grep chrony
Jun 29 16:02:08 coulson audit[765]: AVC apparmor="STATUS" operation=
Jun 29 16:01:41 coulson systemd[1]: Stopped chrony, an NTP client/server.
Jun 29 16:01:41 coulson systemd[1]: Stopping chrony, an NTP client/server...
Jun 29 16:01:41 coulson chronyd[14657]: chronyd exiting
Jun 29 15:56:41 coulson chronyd[14657]: Source 195.22.17.7 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 88.157.128.22 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 80.172.224.24 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 91.189.89.198 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 194.8.30.16 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 2001:67c:
Jun 29 15:56:41 coulson chronyd[14657]: Source 2001:67c:
Jun 29 15:56:41 coulson chronyd[14657]: Source 91.189.89.199 online
Jun 29 15:56:41 coulson chronyd[14657]: Forward time jump detected!
Jun 29 15:50:42 coulson chronyd[14657]: Source 195.22.17.7 offline
Jun 29 15:50:42 coulson chronyd[14657]: Source 88.157.128.22 offline
Jun 29 15:50:42 coulson chronyd[14657]: Source 80.172.224.24 offline
Jun 29 15:50:42 coulson chronyd[14657]: Source 91.189.89.198 offline
Jun 29 15:50:42 coulson chronyd[14657]: Source 194.8.30.16 offline
Starting it again works fine:
$ sudo service chrony start
$ journalctl -r | grep chrony
Jul 02 09:06:49 coulson systemd[1]: Started chrony, an NTP client/server.
Jul 02 09:06:49 coulson chronyd[7131]: Frequency 21.345 +/- 0.131 ppm read from /var/lib/
Jul 02 09:06:49 coulson chronyd[7131]: chronyd version 3.2 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SECHASH +SIGND +ASYNCDNS +IPV6 -DEBUG)
Jul 02 09:06:49 coulson systemd[1]: Starting chrony, an NTP client/server...
Jul 02 09:06:48 coulson sudo[7093]: pedrocr : TTY=pts/0 ; PWD=/home/pedrocr ; USER=root ; COMMAND=
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: chrony 3.2-4ubuntu4.1
ProcVersionSign
Uname: Linux 4.15.0-23-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Jul 2 09:03:56 2018
InstallationDate: Installed on 2018-05-31 (31 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: chrony
UpgradeStatus: No upgrade log present (probably fresh install)
Apparently the issue is just that chrony is not starting up on boot:
$ journalctl -r -u chrony | head -n 20 1560:8003: :c8 chrony/ chrony. drift 1560:8003: :c8 online 1560:8003: :c7 online
-- Logs begin at Thu 2018-05-31 12:51:22 WEST, end at Mon 2018-07-02 09:23:49 WEST. --
Jul 02 09:08:04 coulson chronyd[7131]: Selected source 194.8.30.16
Jul 02 09:06:58 coulson chronyd[7131]: Source 91.189.91.157 replaced with 2001:67c:
Jul 02 09:06:57 coulson chronyd[7131]: Selected source 91.189.94.4
Jul 02 09:06:49 coulson systemd[1]: Started chrony, an NTP client/server.
Jul 02 09:06:49 coulson chronyd[7131]: Frequency 21.345 +/- 0.131 ppm read from /var/lib/
Jul 02 09:06:49 coulson chronyd[7131]: chronyd version 3.2 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SECHASH +SIGND +ASYNCDNS +IPV6 -DEBUG)
Jul 02 09:06:49 coulson systemd[1]: Starting chrony, an NTP client/server...
-- Reboot --
Jun 29 16:01:41 coulson systemd[1]: Stopped chrony, an NTP client/server.
Jun 29 16:01:41 coulson systemd[1]: Stopping chrony, an NTP client/server...
Jun 29 16:01:41 coulson chronyd[14657]: chronyd exiting
Jun 29 15:56:41 coulson chronyd[14657]: Source 195.22.17.7 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 88.157.128.22 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 80.172.224.24 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 91.189.89.198 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 194.8.30.16 online
Jun 29 15:56:41 coulson chronyd[14657]: Source 2001:67c:
Jun 29 15:56:41 coulson chronyd[14657]: Source 2001:67c:
Jun 29 15:56:41 coulson chronyd[14657]: Source 91.189.89.199 online
even though it seems to be enabled:
$ systemctl is-enabled chrony
enabled