LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-07-2012, 12:38 PM   #1
homer_3
Member
 
Registered: May 2008
Posts: 99

Rep: Reputation: 15
ntpd keeps dieing


After starting ntpd with "service start ntpd" I can check to see that it's running with "ps -ef | grep ntpd" and see that it's running. After some random amount of time, I will see that it's no longer running. Is there some reason ntpd would just die? I'm using FC 10.
 
Old 03-07-2012, 12:54 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You can check the ntp logs for errors. If the time difference between your computer and the ntp server(s) is greater then 1000 seconds it assumes something is wrong and will exit.

Look at the output of the command ntpq -p. This will show you the statistics including the offset in milliseconds. If it is a large number then something is wrong.

Is this a real or virtual machine?

You do realize that FC10 is no longer supported?
 
Old 03-07-2012, 01:32 PM   #3
homer_3
Member
 
Registered: May 2008
Posts: 99

Original Poster
Rep: Reputation: 15
The logs did show something about being 1200 seconds off. I wouldn't expect ntpd to exit though. I also don't understand how ntpd could connect to the ntp server, adjust the time of the local clock to be in sync, stay that way for hours, and then suddenly be off by 1200 seconds.... on a LAN!

I'm using all real machines. I realize FC10 is no longer supported, but it's not like it's from 1990. It came out in 2008, which wasn't that long ago. I'd be surprised if ntpd changed much since 2000, let alone 2008.
 
Old 03-07-2012, 01:57 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Point is you can't get security fixes for an OS that's no longer supported.

Do a one-time sync with ntpdate(8), and then try firing up ntpd(8) again.

If it's still not working, check /var/log/messages for clues.
 
Old 03-07-2012, 02:15 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
ntp (or ntpdate depending on version) should sync with the server at start up but if the clock has a high drift rate the offset will become greater then 1000 seconds and so will quit. ntp will automatically adjust the poll interval.
The default min is 64 seconds and max is 1024 seconds but can be manually adjusted from 4 seconds to 36.4 hours). Basically the more stable the clock the longer the poll interval.

Can you post the output of the ntpq -p command?

Was ntp working previously?
 
Old 03-07-2012, 02:22 PM   #6
homer_3
Member
 
Registered: May 2008
Posts: 99

Original Poster
Rep: Reputation: 15
ntpq -p gives:

st t when poll reach delay offset jitter
===============================================
6 u 10 128 377 0.403 -0.237 0.146

Keep in mind, I started ntpd again when I created this thread because it wasn't running.

Quote:
Was ntp working previously?
That depends on what you mean by working. It's always been able to connect to the ntp server and sync the times. But it also has always died after a little while.
 
Old 03-07-2012, 03:21 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Is there an * as the first character before the server? Everything looks reasonable at the moment.

Post the ntp.conf
 
Old 03-07-2012, 03:37 PM   #8
homer_3
Member
 
Registered: May 2008
Posts: 99

Original Poster
Rep: Reputation: 15
The ntp.conf looks like

driftfile /var/lib/ntp/drift
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noque
restrict 127.0.0.1
restrict -6 ::1
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
server <ipaddress> dynamic

In the ntpq -p results, yes, there is an * before the IP address of the server.

Last edited by homer_3; 03-07-2012 at 03:38 PM.
 
Old 03-07-2012, 04:58 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
So the computer is synced at the moment. What is the offset currently?
 
Old 03-09-2012, 07:57 AM   #10
homer_3
Member
 
Registered: May 2008
Posts: 99

Original Poster
Rep: Reputation: 15
The offset has gone from -.237 (what I posted earlier) to .466.
 
Old 03-09-2012, 08:07 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
So ntp is still running and synched i.e. * in front of the IP address?
 
Old 03-09-2012, 12:02 PM   #12
homer_3
Member
 
Registered: May 2008
Posts: 99

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by michaelk View Post
So ntp is still running and synched i.e. * in front of the IP address?
For right now, yes.
 
Old 03-09-2012, 12:50 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
How is the ntp server configured? i.e post its ntp.conf. With a stratum level of 6 the client might not think the server's time is good enough and since the client is not configured to fall back to its local time as a source it quits.
 
Old 03-09-2012, 03:05 PM   #14
homer_3
Member
 
Registered: May 2008
Posts: 99

Original Poster
Rep: Reputation: 15
The server's ntp.conf looks like:

Code:
driftfile /var/lib/ntp/drift
restrict 127.0.0.1
restrict -6 ::1
server 127.127.1.0
fudge 127.127.1.1 stratum 14 refid NIST
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
 
Old 03-09-2012, 04:12 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Quote:
Originally Posted by homer_3 View Post
The server's ntp.conf looks like:

Code:
driftfile /var/lib/ntp/drift
restrict 127.0.0.1
restrict -6 ::1
server 127.127.1.0
fudge 127.127.1.1 stratum 14 refid NIST
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
Do you have an external time source connected to the server?
The server and fudge IP address should be the same (127.127.1.0) AFIK.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My Internet To My Webserver keeps Dieing kustomjs Linux - Server 1 01-14-2008 03:28 AM
my eyes are dieing here, help -.- lashnjo Linux - General 3 06-26-2005 07:08 PM
HELP! External Modem keeps dieing wardialer Linux - Newbie 8 11-09-2004 08:08 PM
HDD Dieing? mikeyt_333 Linux - General 6 05-19-2003 11:55 PM
pppd keeps dieing unexpectedly sonikntails Linux - Software 3 05-05-2002 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration