Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th August 2006, 19:43
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 146 Times in 128 Posts
Default Server time about 15 minutes wrong!

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.
Code:
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:
Code:
date
Mon Aug  7 19:30:46 CEST 2006
Is there a way to see if the ntpdate is working okay?
Reply With Quote
Sponsored Links
  #2  
Old 7th August 2006, 19:47
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 146 Times in 128 Posts
Default

Okay.. I think I found the problem..

Code:
ntpdate
 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 ?
Reply With Quote
  #3  
Old 8th August 2006, 18:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

What's in /etc/default/ntpdate?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 8th August 2006, 19:18
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 146 Times in 128 Posts
Default

Quote:
Originally Posted by falko
What's in /etc/default/ntpdate?
This:

Code:
NTPSERVERS="pool.ntp.org"
NTPOPTIONS="-u"
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?

Last edited by edge; 8th August 2006 at 19:20.
Reply With Quote
  #5  
Old 9th August 2006, 16:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by edge
Should I change the pool.ntp.org to time.nist.gov in ntpdate?
That's exactly what I wanted to suggest.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 9th August 2006, 23:12
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

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.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #7  
Old 10th August 2006, 18:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

You have to run
Code:
/etc/init.d/ntpdate restart
to synchronize the time. You could create a cron job for it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 10th August 2006, 23:02
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Smile

Ok thanks Falko.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #9  
Old 1st October 2006, 16:17
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,239
Thanks: 70
Thanked 21 Times in 17 Posts
Default

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:

Quote:
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 80.51.167.97 offset -0.074886 sec
h898552:/home/ovi#
so a simple ntpdate says no servers can be used although inside /etc/default/ntpdate its says the same server:

Quote:
# servers to check. (Separate multiple servers with spaces.)
NTPSERVERS="europe.pool.ntp.org"
#
# additional options for ntpdate
#NTPOPTIONS="-v"
NTPOPTIONS="-u"
how strange.... any idea whats wrong?
Reply With Quote
  #10  
Old 2nd October 2006, 12:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
 
Default

What's the output of
Code:
/etc/init.d/ntpdate restart
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
server blocked/stopped by host Ovidiu Technical 11 14th February 2006 10:50
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 18:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.