Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntp-client no server suitable for synchronization [Solved]
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
yarug
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2004
Posts: 117
Location: NL

PostPosted: Thu Dec 19, 2019 8:44 pm    Post subject: ntp-client no server suitable for synchronization [Solved] Reply with quote

Hello

I'm trying to finally get to the bottom of an issue that has been around for a while.

I'm running net-misc/ntp (client only) to (try to) sync my server's time. I'm using the default configuration.

When I run "ntpdate 0.gentoo.pool.ntp.org" everything works as it should and my server time is synced.

Problem is when I start the client "rc-service ntp-client start" I am getting the following error messages in /var/log/messages:

Code:
ntpdate[31077]: no server suitable for synchronization found
/etc/init.d/ntp-client[31058]: ERROR: ntp-client failed to start


Does anyone know what might be causing this behavior?

Thanks

[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by yarug on Fri Dec 20, 2019 9:11 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2126
Location: Frankfurt, Germany

PostPosted: Thu Dec 19, 2019 10:31 pm    Post subject: Reply with quote

Please post your file
Code:
/etc/conf.d/ntp-client
Back to top
View user's profile Send private message
freke
Guru
Guru


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

PostPosted: Fri Dec 20, 2019 8:02 am    Post subject: Reply with quote

Could be DNS isn't available at the time ntp-client wants it - I've had to use ip-addresses I remember.
(Since switched to Chrony though)
Back to top
View user's profile Send private message
yarug
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2004
Posts: 117
Location: NL

PostPosted: Fri Dec 20, 2019 8:58 am    Post subject: Reply with quote

freke wrote:
Could be DNS isn't available at the time ntp-client wants it - I've had to use ip-addresses I remember.
(Since switched to Chrony though)


Thanks freke, but it doesn't work even when I start ntp-client manually. Manually running ntpdate 0.gentoo.pool.ntp.org works and from what I understand is that ntp-client is a wrapper around ntpdate?
Back to top
View user's profile Send private message
yarug
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2004
Posts: 117
Location: NL

PostPosted: Fri Dec 20, 2019 9:04 am    Post subject: Reply with quote

mike155 wrote:
Please post your file
Code:
/etc/conf.d/ntp-client


This is my (untouched) /etc/conf.d/ntp-client config file.

Code:

# /etc/conf.d/ntp-client

# Command to run to set the clock initially
# Most people should just leave this line alone ...
# however, if you know what you're doing, and you
# want to use ntpd to set the clock, change this to 'ntpd'
NTPCLIENT_CMD="ntpdate"

# Options to pass to the above command
# This default setting should work fine but you should
# change the default 'pool.ntp.org' to something closer
# to your machine.  See http://www.pool.ntp.org/ or
# try running `netselect -s 3 pool.ntp.org`.
#NTPCLIENT_OPTS="-s -b -u \
#   0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org \
#   2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"

NTPCLIENT_OPTS="-s -b -u io"

# If you use hostnames above, then you should depend on dns
# being up & running before we try to run.  Otherwise, you
# can disable this.
rc_use="dns"


I have been using /etc/ntp.conf for configuring ntp, did not realize there was also /etc/conf.d/ntp-client.
Back to top
View user's profile Send private message
yarug
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2004
Posts: 117
Location: NL

PostPosted: Fri Dec 20, 2019 9:11 am    Post subject: Reply with quote

I see what the error is now. Thank you mike155 for pointing me in the right direction. I did change /etc/conf.d/ntp-client a very long time ago and pointed it to another server in my network. I completely forgot about /etc/conf.d/ntp-client and was only trying to get things working again through /etc/ntp.conf.[/quote]
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