Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntp: no server suitable for synchronization found
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
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Aug 29, 2002 4:52 pm    Post subject: ntp: no server suitable for synchronization found Reply with quote

Just installed ntp to try and take care of some minor time drifting.

When I try to run /etc/init.d/ntpd, I get this error, which is actually caused by ntpdate:
Code:

[root@orthanc ~]# /etc/init.d/ntpd start
 * Running ntpdate...
29 Aug 11:46:09 ntpdate[7153]: no server suitable for synchronization found
 * Failed to run ntpdate                                                  [ !! ]

 * Starting ntpd...
                                                                          [ ok ]
[root@orthanc ~]#


I get the error when I just run ntpdate also. My /etc/ntp.conf file is thus:
Code:
server ben.cs.wisc.edu
driftfile /etc/ntp.drift


I am behind a firewall with an http proxy, but according to /etc/services, ntp runs on port 123, which I wouldn't think would be blocked. Of course my crack(ed) MIS staff probably has it blocked, given my luck with them.
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Aug 29, 2002 4:57 pm    Post subject: Reply with quote

Nevermind they were blocking it, but had set up a local ntp server that seemed right on.

So ignore me. But obviously that error was caused by firewall blocking. Well not necessarily blocking, just only allowing one connection at that port, which, in my case, was being used by the local ntp server.
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Thu Aug 29, 2002 7:00 pm    Post subject: Reply with quote

You don't really have to set up a server yourself.

You could just use the client (ntpdate) and run it like this: ntpdate ntp.server.com

In my case:
Code:

ntpdate ntp.belnet.be
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Thu Aug 29, 2002 7:08 pm    Post subject: Reply with quote

There are advantages to using ntpd over ntpdate as covered here, including better accuracy.
Zu` wrote:
You don't really have to set up a server yourself.

You could just use the client (ntpdate) and run it like this: ntpdate ntp.server.com

In my case:
Code:

ntpdate ntp.belnet.be
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Mon Sep 02, 2002 1:59 am    Post subject: Reply with quote

I, too, had this problem. I'm going to assume you did what I did...which was...


Logically, you set your timeserver in /etc/conf.d/ntpd and un-commented the line.

Then, you added ntpd to the default runlevel. Then, you got the error. Well... here's how to fix it.

Don't uncomment that line in /etc/conf.d/ntpd. Remove the existing one, and add your own, but leave it commented. Make sure the files:

/etc/ntp.conf
/etc/ntp.drift

Do Not Exist.

Then, add ntpd to the default runlevel. When it executes the first time, it will automatically create /etc/ntp.conf and /etc/ntp.drift using the server specified in /etc/conf.d/ntpd

From then on, the service starts correctly, without error.
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Mon Sep 02, 2002 3:43 am    Post subject: Reply with quote

No I just set the timeserver to my company's corporate ntp server.
Back to top
View user's profile Send private message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Sun Sep 29, 2002 7:39 pm    Post subject: Reply with quote

Hello all,

after setting up a second gentoo box I have problems starting the ntp-deamon. Since I'm behind a firewall, I thougt maybe that could be the problem. But on my first machine in the same subnet and behind the same firewall I don't get this annoying error ("29 Sep 21:33:17 ntpdate[2591]: no server suitable for synchronization found").

So I have no idea how it could be, that only on machine has problems starting the deamon :(
Anyone else maybe?

Greetings, Matthias
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Mon Sep 30, 2002 6:47 pm    Post subject: Reply with quote

I believe the recommended modus operandi is to only have 1 machine on a given network going out to get the time from an NTP server, then that machine would act as the NTP server for the rest of the network.

Why not try this setup instead of trying to open multiple connections?

As far as your problem goes, perhaps you have the same firewall setup I do where only one connection on the NTP port was allowed at a time.
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