Re: Problem when removing all sources

Miroslav Lichvar <[email protected]>
Newsgroups gmane.comp.time.chrony.user
Message-ID <ZVt4m3xg9/yB1HvK@localhost>
On Mon, Nov 20, 2023 at 11:14:00AM +0100, Thomas Lange wrote:
> <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" >

It depends on the order of removed sources and the reselection that
can happen.

The message is logged only when a source is already selected and
newly executed source selection doesn't find a selectable source.
In your example the last selected source is 194.58.206.20. It is
removed, i.e. nothing is selected, and with the two remaining sources
there is no successful selection.

When chronyd is shutting down, the selected source is removed as last
to avoid unnecessary reselections. Maybe the same thing could be
done with sourcedir. I'll see how much complexity that would be.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.