View Full Version : Server time about 15 minutes wrong!

7th August 2006, 20:43
Hmmm I have no clue what is causing this!

I'm using Debian Sarge 3.1 and I've used Falko's "The Perfect Setup - Debian Sarge (3.1)"

In it (page 5) there is a "Synchronize the System Clock" part.

apt-get install ntp ntpdate

I've done that.. But for some reason the server time is "now" about 15 slower than the real time!

real time now: 19:44

Time on server:

Mon Aug 7 19:30:46 CEST 2006

Is there a way to see if the ntpdate is working okay?

7th August 2006, 20:47
Okay.. I think I found the problem..

7 Aug 19:32:05 ntpdate[13128]: no servers can be used, exiting

The problem is no servers can be used

So... How do I fix this again ?

8th August 2006, 19:30
What's in /etc/default/ntpdate?

8th August 2006, 20:18
What's in /etc/default/ntpdate?



I've done a ntpdate time.nist.gov, and this did set the time correct again (for now)
Should I change the pool.ntp.org to time.nist.gov in ntpdate?

9th August 2006, 17:37
Should I change the pool.ntp.org to time.nist.gov in ntpdate?
That's exactly what I wanted to suggest. :)

10th August 2006, 00:12
If I change the pool.ntp.org to time.nist.gov in ntpdate will it automaticly synchronise with the time.nist.gov timeserver or do i have to reload/restart something? If yes, what is the command.
Please let me know.

10th August 2006, 19:28
You have to run
/etc/init.d/ntpdate restart to synchronize the time. You could create a cron job for it.

11th August 2006, 00:02
Ok thanks Falko.

1st October 2006, 17:17
I have a strange problem: somehow my time was completely reset,... its 1. january 2000 !? but that is not the problem I am looking at... have a look at this:

h898552:/home/ovi# ntpdate
1 Oct 16:14:19 ntpdate[30003]: no servers can be used, exiting
h898552:/home/ovi# ntpdate europe.pool.ntp.org
1 Oct 16:14:29 ntpdate[30011]: adjust time server offset -0.074886 sec

so a simple ntpdate says no servers can be used although inside /etc/default/ntpdate its says the same server:

# servers to check. (Separate multiple servers with spaces.)
# additional options for ntpdate

how strange.... any idea whats wrong?

2nd October 2006, 13:55
What's the output of /etc/init.d/ntpdate restart?

3rd October 2006, 22:28
I do not udnerstand this anymore:

h898552:/var/www/web2/log# /etc/init.d/ntpdate restart
Running ntpdate to synchronize clock.

4th October 2006, 19:20
/etc/init.d/ntpdate restart
is the correct command to update the time. If there's no error, then it's working. :)

8th November 2006, 20:45
I am running Fedora Core 6, there is no ntpdate file or deamon. I tried restarting with

/etc/init.d/ntpd restart

and I don't get a single error but the clock is still 15 minutes slow. There is no /etc/default/ntpdate file. So, Where do I add


Waiting for time fix.
Thank you guys for all your wonderful support.

9th November 2006, 17:52
Have a look at http://www.howtoforge.com/installing_a_lamp_system_with_fedora_core_6_p6 :

yum install ntp

chkconfig --levels 235 ntpd on
ntpdate 0.pool.ntp.org
/etc/init.d/ntpd start