LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2013, 10:12 AM   #1
srijivdimri
Member
 
Registered: Jun 2013
Location: India.
Posts: 35

Rep: Reputation: Disabled
Error:--ntpd dead but pid file exists


Hi Experts,

I see this error in a couple of redhat server.
# service ntpd status
ntpd dead but pid file exists


ntp o/p's
[root@vikuat_Linux ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
+120-88-47-10.in 103.1.106.69 2 u 4 64 177 252.902 -83.351 140.147
*time1.scl3.mozi .GPS. 1 u 119 64 76 667.023 -14.453 104.695
LOCAL(0) .LOCL. 10 l 1 64 77 0.000 0.000 0.000
[root@vikuat_Linux ~]# ntpstat
synchronised to NTP server (63.245.214.135) at stratum 2
time correct to within 129 ms
polling server every 64 s
[root@vikuat_Linux ~]#

RedHat version:-
# more /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)

Linux Kernel Version:-
# uname -a
Linux vikuat_Linux 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

Logs in /var/log/messages
Sep 29 03:37:34 vikuat_Linux ntpd[9411]: offset 0.034814 sec freq -100.532 ppm error 0.202127 poll 10
Sep 29 03:43:03 vikuat_Linux ntpd[9411]: time reset +0.139536 s
607 Sep 29 03:43:03 vikuat_Linux ntpd[9411]: system event 'event_clock_reset' (0x05) status 'sync_alarm, sync_unspec, 10 events, event_peer/strat_chg' (0xc0a4)
608 Sep 29 03:43:03 vikuat_Linux ntpd[9411]: system event 'event_peer/strat_chg' (0x04) status 'sync_alarm, sync_unspec, 11 events, event_clock_reset' (0xc0b5)
Sep 29 03:43:17 vikuat_Linux ntpd[9411]: peer 120.88.47.10 event 'event_reach' (0x84) status 'unreach, conf, 3 events, event_reach' (0x8034)
Sep 29 03:43:22 vikuat_Linux ntpd[9411]: peer LOCAL(0) event 'event_reach' (0x84) status 'unreach, conf, 3 events, event_reach' (0x8034)
Sep 29 05:37:35 vikuat_Linux ntpd[9411]: offset -0.051772 sec freq -91.758 ppm error 0.141176 poll 8

AND, then I see lot of these messages under the same sections:-
Sep 29 11:37:35 vikuat_Linux gdm-binary[1905]: WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
10123 Sep 29 11:37:38 vikuat_Linux gdm-binary[1905]: WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
10124 Sep 29 11:37:41 vikuat_Linux gdm-binary[1905]: WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
10125 Sep 29 11:37:44 vikuat_Linux gdm-binary[1905]: WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
10126 Sep 29 11:37:47 vikuat_Linux gdm-binary[1905]: WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
10127 Sep 29 11:37:50 vikuat_Linux gdm-binary[1905]: WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
10128 Sep 29 11:37:53 vikuat_Linux gdm-binary[1905]: WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection

Could this be the reason for ntpd error message ? I am not sure about this, your expert advice would be highly appreciated.

Also is it preferable to use ntpdate rather than ntpd. I recently moved the ntpdate to ntpd.

Last edited by srijivdimri; 09-29-2013 at 10:28 AM.
 
Old 10-02-2013, 04:52 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by srijivdimri View Post
I see this error in a couple of redhat server.
Since when?
What happened at that point (network, servers, configuration, updates)?


Quote:
Originally Posted by srijivdimri View Post
Could this be the reason for ntpd error message ?
GDM is the Graphical Display Manager. NTPd does not rely on GDM.
D-Bus is a message bus system. NTPd does not rely on D-Bus AFAIK.


Quote:
Originally Posted by srijivdimri View Post
Also is it preferable to use ntpdate rather than ntpd.
You hold the RHCE so I suggest you present a brief description of both applications, and their benefits (and drawbacks if any) with respect to usage.


Quote:
Originally Posted by srijivdimri View Post
I recently moved the ntpdate to ntpd.
You did WHAT?
 
  


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
[SOLVED] ntpd dead but pid file exists Stannley Linux - Newbie 7 09-11-2013 12:32 PM
Xineted give error ,xinetd dead but pid file exists call_krushna Linux - Software 1 01-16-2012 04:36 AM
dead but pid file exists fahlen Linux - Software 1 12-18-2007 08:14 AM
ntpd dead but pid file exists wjn Linux - Networking 15 05-22-2005 12:32 PM
crond dead but pid file exists ryedunn Linux - General 0 01-27-2005 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 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