Created attachment 522215 [details]
chrony conf file.
Description of problem:
Chrony works fine when started by hand, but dies without even printing the initial output to syslog when started by systemd at boot time.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. shutdown -r now
Sep 8 03:54:57 arbol chronyd: Fatal error : Possible infinite loop in scheduling
Sep 8 15:56:40 arbol chronyd: chronyd version 1.26 starting
Sep 8 15:56:40 arbol chronyd: Linux kernel major=2 minor=6 patch=40
Sep 8 15:56:40 arbol chronyd: hz=100 shift_hz=7 freq_scale=1.00000000 nominal_tick=10000 slew_delta_tick=833 max_tick_bias=1000
Sep 8 15:56:40 arbol chronyd: Frequency 20.893 +- 0.063 ppm read from /var/lib/chrony/drift
The host this is observed on runs its own named. Perhaps there is a timing issue with hostnames not resolving when chrony expects them to.
This host also has ipv6 connections. I don't think that should be an issue here.
This appears to be related to named. When I add the ipv4 and ipv6 addresses of the chrony servers to /etc/hosts then things work fine.
There appear to be two bugs here. 1) chrony is started before named is ready. This didn't happen in Fedora-14 so I assume systemd is implicated. 2) chrony needs to be more mellow about name lookup failures. Waiting a few seconds and retrying seems to be a much better idea than exiting.
Yes, this is related to name resolving. When it fails on start, it retries couple seconds later, but if that takes too long (perhaps 200 ms or more per server), it will crash.
It's a bug in the code which should prevent chrony from flooding the network.
It should be fixed in the latest f16 update, I will submit it for f15 too.
chrony-1.26-3.20110831gitb088b7.fc15 has been submitted as an update for Fedora 15.
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing chrony-1.26-3.20110831gitb088b7.fc15'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
confirmed fixed in chrony-1.26-3.20110831gitb088b7.fc15
chrony-1.26-3.20110831gitb088b7.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.