Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Where does chrony 3.5-r2 get its sources from?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 605
Location: Germany

PostPosted: Sat Nov 16, 2019 8:45 am    Post subject: [solved] Where does chrony 3.5-r2 get its sources from? Reply with quote

Good morning,

since I went from chrony 3.3 to 3.5-r2, it is driving me nuts. Everyday, I have thousands of "chronyd[2964]: Selected source 213.209.109.45" and "chronyd[2964]: Can't synchronise: no majority" in my log.
So I replaced the gentoo.pool.ntp.org servers with the ones from de.pool.ntp.org - no effect.
Then I defined one single server (server 134.76.249.201) - no effect.
I even removed all pools and servers from the config file - chrony still logged a huge number of different sources.

This is my config file on 2 of my systems (I removed all comments):
Code:
driftfile /var/lib/chrony/drift
makestep 1.0 3
rtcsync
server 134.76.249.201


These are the log entries after I restart chronyd:
chrony-3.3
Quote:
chronyd[6442]: chronyd version 3.3 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP +SCFILTER -SIGND +ASYNCDNS -SECHASH +IPV6 -DEBUG)
chronyd[6442]: Frequency 73.099 +/- 3.944 ppm read from /var/lib/chrony/drift
chronyd[6442]: Selected source 134.76.249.201


chrony-3.5-r2
Quote:
chronyd[30490]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP +SCFILTER -SIGND +ASYNCDNS -SECHASH +IPV6 -DEBUG)
chronyd[30490]: Frequency 19096.453 +/- 2507.657 ppm read from /var/lib/chrony/drift
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 194.102.255.19
chronyd[2964]: Source 217.144.138.234 replaced with 159.69.150.81
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 85.10.240.253
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 85.10.240.253
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 85.10.240.253
chronyd[2964]: Selected source 162.159.200.1

...and so on.

Does chrony-3.5-r2 come with any "hard coded" sources? For me it seems, as if it overrides its own config file...

Kind regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)


Last edited by Jimini on Tue Nov 19, 2019 5:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1050
Location: Somewhere in Denmark

PostPosted: Sat Nov 16, 2019 6:42 pm    Post subject: Reply with quote

Not much help I know - but for me 3.5-r2 respects my server directives just fine.
Code:
Nov 16 19:36:11 borg chronyd[12984]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS -SECHASH +IPV6 -DEBUG)
Nov 16 19:36:11 borg chronyd[12984]: Enabled HW timestamping on Eth1
Nov 16 19:36:11 borg chronyd[12984]: Enabled HW timestamping on Eth2
Nov 16 19:36:11 borg chronyd[12984]: Enabled HW timestamping on Eth3
Nov 16 19:36:11 borg chronyd[12984]: Frequency -14.251 +/- 0.610 ppm read from /var/lib/chrony/drift
Nov 16 19:36:11 borg chronyd[12984]: Using right/UTC timezone to obtain leap second data
Nov 16 19:36:11 borg chronyd[12984]: Loaded dump file for 2001:470:28:4a6::4
Nov 16 19:36:11 borg chronyd[12984]: Selected source 2001:470:28:4a6::4
Nov 16 19:36:11 borg chronyd[12984]: System clock TAI offset set to 37 seconds

2001:470:28:4a6::4 being my ntpd-host
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1050
Location: Somewhere in Denmark

PostPosted: Sat Nov 16, 2019 6:48 pm    Post subject: Re: Where does chrony 3.5-r2 get its sources from? Reply with quote

Jimini wrote:
chrony-3.5-r2
Quote:
chronyd[30490]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP +SCFILTER -SIGND +ASYNCDNS -SECHASH +IPV6 -DEBUG)
chronyd[30490]: Frequency 19096.453 +/- 2507.657 ppm read from /var/lib/chrony/drift
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 194.102.255.19
chronyd[2964]: Source 217.144.138.234 replaced with 159.69.150.81
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 85.10.240.253
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 85.10.240.253
chronyd[2964]: Selected source 162.159.200.1
chronyd[2964]: Selected source 85.10.240.253
chronyd[2964]: Selected source 162.159.200.1


Kind regards,
Jimini


I notice your Chrony changes PID (or do you have multiple instances running) - the one changing sources has a lower PID, an old instance not shutdown properly?
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 605
Location: Germany

PostPosted: Tue Nov 19, 2019 5:24 pm    Post subject: Reply with quote

Meh...for some reason, chrony did indeed run with 2 instances. Ended one, killed the other one - problem solved. Thank you!

Kind regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum