[chrony-users] Problem when removing all sources

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Hi,
there could be a problem when removing all sources.

When all sources are removed, I expect a
"Can't synchronise: no selectable sources" message every time.

But occasionally I don't get one. It could be harmless or an indication
of a bug. Or perhaps I've misunderstood how it is supposed to work...

Tested with 4.4 and chrony git commit b6eec0068a, both seems to behave the same.

Logs from a failing example with comments below using b6eec0068a and six
random internet NTP servers.

/Thomas

---------
Configured with:

../configure --sysconfdir=/tmp --disable-ipv6 --disable-readline --without-editline --without-nettle --without-nss --without-tomcrypt --disable-nts --without-gnutls --disable-phc --disable-rtc --disable-asyncdns --disable-forcednsretry --enable-debug

--------------

# pwd
/tmp

# cat chrony.conf
driftfile /var/lib/chrony/drift
makestep  0.1 3
acquisitionport 123
log statistics tracking measurements
logdir /var/log/chrony
sourcedir /tmp/sources/ hwtimestamp * minpoll 4

# cat sources/chrony.sources
server 217.75.106.216 burst iburst xleave
server 103.242.68.69 burst iburst xleave
server 194.58.202.148 burst iburst xleave
server 91.209.0.17 burst iburst xleave
server 194.58.206.20 burst iburst xleave
server 162.159.200.123 burst iburst xleave

# ./chronyd -d
2023-11-19T17:42:53Z chronyd version DEVELOPMENT starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND -ASYNCDNS -NTS -SECHASH -IPV6 +DEBUG)
2023-11-19T17:42:53Z Running with root privileges
2023-11-19T17:42:53Z Frequency 0.001 +/- 103.566 ppm read from /var/lib/chrony/drift
2023-11-19T17:42:53Z Added source 103.242.68.69
2023-11-19T17:42:53Z Added source 162.159.200.123
2023-11-19T17:42:53Z Added source 194.58.202.148
2023-11-19T17:42:53Z Added source 194.58.206.20
2023-11-19T17:42:53Z Added source 217.75.106.216
2023-11-19T17:42:53Z Added source 91.209.0.17
2023-11-19T17:42:58Z Selected source 162.159.200.123
2023-11-19T17:43:00Z Selected source 194.58.202.148

<Remove sources/chrony.sources>

<chronyc reload sources>

2023-11-19T17:43:20Z Removed source 103.242.68.69
2023-11-19T17:43:20Z Removed source 162.159.200.123
2023-11-19T17:43:20Z Removed source 194.58.202.148
2023-11-19T17:43:20Z Selected source 194.58.206.20
2023-11-19T17:43:20Z Removed source 194.58.206.20
2023-11-19T17:43:20Z Removed source 217.75.106.216
2023-11-19T17:43:20Z Removed source 91.209.0.17

<Missing "Can't synchronise: no selectable sources" >

--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject. For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/