This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Ntpd not running well

Hi, 

I am getting a " kernel time sync error 0001" error in my system.log.

Does anyone know what went/is wrong. 

I am using Astaro 7.005.

In advance thanks.................


This thread was automatically locked due to age.
Parents
  • A quick google turns up this bug:

    https://support.ntp.org/bugs/show_bug.cgi?id=780

    Looking at the bug it seems that the fix is to either go to an older version of ntp or to fix the kernel.

    Interestingly, I'm seeing those errors on my v7 test machine, but time appears to by syncing up just fine.

    Is the time really drifting out of sync frequently on this system? Is ntpd reporting anything else frequently (see the system log)?
  • Hi Drees, 

    Before yesterdag it was drifting out for 3 days?????? After the reboot yesterday it seems to be okay, no errors in system.log.......checked date and is up to date.

    Other question...... how can I check when the time sync will be done. Is this done by crontab?
  • v7 runs the ntp daemon which attempts to always keep the clock synchronized with the specified ntp server. There is no set synchronization time.

    See here for more information on the ntp daemon:
    http://www.cis.udel.edu/~mills/ntp/html/ntpd.html
  • Okay thanks, 

    but er is now something really wrong with my system, i thought it was up and running but after checking i saw dat the time will not go futher then 10:07. It looks like the seconds are counting down en then up see log:

    Firetux:/root # date
    Tue Jul 10 10:07:33 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:31 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:33 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:33 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:34 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:35 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:31 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:32 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:32 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:31 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:38 CEST 2007
    Firetux:/root # date
    Tue Jul 10 10:07:35 CEST 2007

    Is there something wrong with my battery on the system?
  • That's not good. Replacing the battery won't do anything to help solve this issue.

    If you remove the host you synchronize with under Management -> System Settings -> Time and Date does it still do the same thing?

    If you also disable the NTP daemon under Network -> NTP does it still do the same thing?

    What does /var/log/system.log have in it in terms of ntpd entries?
  • I did removed the host which I synchronized and killed the ntp deamon yesterday but stupid me that after the reboot ntpd daemon was running again.

    If I check my webadmin I see that NTP deamon under Network is disabled and under Management -> System Settings -> Time and Date I removed the host.

    If I check the /var/log/system.log file I see the following:

    Firetux:/root # cat /var/log/system.log  |grep ntp
    2007:07:10-13:36:08 (none) ntpd[5108]: ntpd exiting on signal 15
    2007:07:10-13:49:12 (none) ntpd[3899]: ntpd 4.2.4@1.1437-o Wed Apr 18 07:34:56 UTC 2007 (1)
    2007:07:10-13:49:12 (none) ntpd[3918]: precision = 3.000 usec
    2007:07:10-13:49:12 (none) ntpd[3918]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #1 lo, 127.0.0.1#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #2 eth0, 10.0.0.150#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #3 eth1, 192.168.1.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #4 eth2, 192.168.2.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #5 eth3, 192.168.4.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #6 eth4, 192.168.3.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: kernel time sync status 0040
    2007:07:10-13:49:12 (none) ntpd[3918]: frequency initialized -1.518 PPM from /var/ntp.drift
    2007:07:10-13:49:14 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:16 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:18 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:20 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:22 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:24 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:26 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:55 (none) ntpd[3918]: ntpd exiting on signal 15
    2007:07:10-13:50:00 (none) ntpd[5008]: ntpd 4.2.4@1.1437-o Wed Apr 18 07:34:56 UTC 2007 (1)
    2007:07:10-13:50:00 (none) ntpd[5009]: precision = 4.000 usec
    2007:07:10-13:50:00 (none) ntpd[5009]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #1 lo, 127.0.0.1#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #2 eth0, 10.0.0.150#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #3 eth1, 192.168.1.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #4 eth2, 192.168.2.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #5 eth3, 192.168.4.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #6 eth4, 192.168.3.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #7 tun0, 10.242.2.1#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: kernel time sync status 0040
    2007:07:10-13:50:00 (none) ntpd[5009]: frequency initialized -1.518 PPM from /var/ntp.drift
    2007:07:10-13:50:12 (none) ntpd[5009]: synchronized to 194.109.22.18, stratum 2
    2007:07:10-15:16:49 (none) ntpd[5009]: time reset +5197.314251 s
    2007:07:10-15:16:49 (none) ntpd[5009]: kernel time sync status change 0001
    2007:07:10-15:23:59 (none) ntpd[5009]: synchronized to 194.109.22.18, stratum 2
    2007:07:10-16:15:20 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-17:02:23 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-18:10:46 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-18:44:56 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-19:19:06 (none) ntpd[5009]: kernel time sync error 0001
    Firetux:/root # uptime
     10:52pm  up   7:37,  1 user,  load average: 0.76, 0.36, 0.18

    I see some blocking ???? and Listening on interface???...........
    Very strange...and in the meantime the time drifting out for 1 day........

    In advance thanks, 

    Hopefully you can see something in the log file............
Reply
  • I did removed the host which I synchronized and killed the ntp deamon yesterday but stupid me that after the reboot ntpd daemon was running again.

    If I check my webadmin I see that NTP deamon under Network is disabled and under Management -> System Settings -> Time and Date I removed the host.

    If I check the /var/log/system.log file I see the following:

    Firetux:/root # cat /var/log/system.log  |grep ntp
    2007:07:10-13:36:08 (none) ntpd[5108]: ntpd exiting on signal 15
    2007:07:10-13:49:12 (none) ntpd[3899]: ntpd 4.2.4@1.1437-o Wed Apr 18 07:34:56 UTC 2007 (1)
    2007:07:10-13:49:12 (none) ntpd[3918]: precision = 3.000 usec
    2007:07:10-13:49:12 (none) ntpd[3918]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #1 lo, 127.0.0.1#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #2 eth0, 10.0.0.150#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #3 eth1, 192.168.1.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #4 eth2, 192.168.2.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #5 eth3, 192.168.4.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: Listening on interface #6 eth4, 192.168.3.252#123 Enabled
    2007:07:10-13:49:12 (none) ntpd[3918]: kernel time sync status 0040
    2007:07:10-13:49:12 (none) ntpd[3918]: frequency initialized -1.518 PPM from /var/ntp.drift
    2007:07:10-13:49:14 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:16 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:18 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:20 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:22 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:24 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:26 (none) ntpd[3918]: sendto(194.109.22.18) (fd=18): Operation not permitted
    2007:07:10-13:49:55 (none) ntpd[3918]: ntpd exiting on signal 15
    2007:07:10-13:50:00 (none) ntpd[5008]: ntpd 4.2.4@1.1437-o Wed Apr 18 07:34:56 UTC 2007 (1)
    2007:07:10-13:50:00 (none) ntpd[5009]: precision = 4.000 usec
    2007:07:10-13:50:00 (none) ntpd[5009]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #1 lo, 127.0.0.1#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #2 eth0, 10.0.0.150#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #3 eth1, 192.168.1.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #4 eth2, 192.168.2.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #5 eth3, 192.168.4.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #6 eth4, 192.168.3.252#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: Listening on interface #7 tun0, 10.242.2.1#123 Enabled
    2007:07:10-13:50:00 (none) ntpd[5009]: kernel time sync status 0040
    2007:07:10-13:50:00 (none) ntpd[5009]: frequency initialized -1.518 PPM from /var/ntp.drift
    2007:07:10-13:50:12 (none) ntpd[5009]: synchronized to 194.109.22.18, stratum 2
    2007:07:10-15:16:49 (none) ntpd[5009]: time reset +5197.314251 s
    2007:07:10-15:16:49 (none) ntpd[5009]: kernel time sync status change 0001
    2007:07:10-15:23:59 (none) ntpd[5009]: synchronized to 194.109.22.18, stratum 2
    2007:07:10-16:15:20 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-17:02:23 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-18:10:46 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-18:44:56 (none) ntpd[5009]: kernel time sync error 0001
    2007:07:10-19:19:06 (none) ntpd[5009]: kernel time sync error 0001
    Firetux:/root # uptime
     10:52pm  up   7:37,  1 user,  load average: 0.76, 0.36, 0.18

    I see some blocking ???? and Listening on interface???...........
    Very strange...and in the meantime the time drifting out for 1 day........

    In advance thanks, 

    Hopefully you can see something in the log file............
Children
No Data