[ntp:questions] ntpd looses sync, I must always restart: please help

Luca luca at pacor.de
Thu Oct 30 19:10:04 UTC 2003


Hello everybody,

first of all something about my system:
PIII/500, 128MB RAM, SuSE Linux 8.2 (Kernel 2.4.20), DSL Connection,
Provider=T-Online (automatic line-cut after maximum 24 hours), dial on
demand activated.

Now, my problem is that I must restart the daemon at least once a day
because I cannot see any server anymore. I also tried to set up many
servers and peers (I decided to be stratus 2, is that wrong?) because
I thought it depended on the servers, but that did not do either ...
This is the output after loosing the connection.


# ntpq -c peers
     remote           refid      st t when poll reach   delay   offset
 jitter
==============================================================================
*LOCAL(0)        LOCAL(0)         2 l   37   64  377    0.000    0.000
  0.008
 LOCAL(1)        LOCAL(1)         5 l   20   64  377    0.000    0.000
  0.008
 ntp1.ptb.de     80.84.66.0      16 u  21h 1024    0    0.000    0.000
4000.00
 ntp2.ptb.de     80.84.66.0      16 u  21h 1024    0    0.000    0.000
4000.00
 ntp0-rz.rrze.un 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 ntp1-rz.rrze.un 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 ntp2-rz.rrze.un 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 ntp3-rz.rrze.un 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 hora.cs.tu-berl 80.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 sombrero.cs.tu- 80.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 rustime01.rus.u ky-london2a-112 16 u  21h 1024    0    0.000    0.000
4000.00
 woon.curie.fr   0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 xoon.curie.fr   0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 lip.curie.fr    0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 ntp0.NL.net     71.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 ntp1.NL.net     0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 ntp1.NL.net     71.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 vega.cbk.poznan 80.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 time.nist.gov   adsl-65-67-84-8 16 u  21h 1024    0    0.000    0.000
4000.00
 time-a.nist.gov adsl-65-67-84-8 16 u  21h 1024    0    0.000    0.000
4000.00
 time-b.nist.gov adsl-65-67-84-8 16 u  21h 1024    0    0.000    0.000
4000.00
 time-C.timefreq adsl-65-67-84-8 16 u  21h 1024    0    0.000    0.000
4000.00
 time-B.timefreq 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 time-B.timefreq adsl-65-67-84-8 16 u  21h 1024    0    0.000    0.000
4000.00
 tick.usnogps.na 85.83.78.79     16 u  21h 1024    0    0.000    0.000
4000.00
 tick.usno.navy. 68.69.78.89     16 u    - 1024    0    0.000    0.000
4000.00
 tock.usno.navy. 68.69.78.89     16 u    - 1024    0    0.000    0.000
4000.00
 usno.pa-x.dec.c 85.83.78.79     16 u  21h 1024    0    0.000    0.000
4000.00
 clepsydra.dec.c 71.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 clock.isc.org   gps.laguna.vix. 16 u  21h 1024    0    0.000    0.000
4000.00
 clock.via.net   clock.isc.org   16 u  22h 1024    0    0.000    0.000
4000.00
 redirectf.dnsix 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 ntp-cup.externa 71.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 timekeeper.isi. 71.80.83.0      16 u  21h 1024    0    0.000    0.000
4000.00
 montpelier.ilan 0.0.0.0         16 u  21h 1024    0    0.000    0.000
4000.00
 nist1.aol-ca.tr adsl-65-67-84-8 16 u  21h 1024    0    0.000    0.000
4000.00
 ntp1.ien.it     73.69.78.0      16 u  21h 1024    0    0.000    0.000
4000.00
 ntp2.ien.it     73.69.78.0      16 u  21h 1024    0    0.000    0.000
4000.00
 time.windows.co 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 tick.Informatik ntp1.ptb.de     16 u  21h 1024    0    0.000    0.000
4000.00
 tock.Informatik ntp2.ptb.de     16 u  21h 1024    0    0.000    0.000
4000.00
 tack.Informatik 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 adm.globe.cz    stratum.eunet.c 16 u  22h 1024    0    0.000    0.000
4000.00
 merlin.karpo.cz ntp1-rz.rrze.un 16 u  22h 1024    0    0.000    0.000
4000.00
 eloise.lost-oas 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 eloise.lost-oas 0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 eloise.lost-oas xoon.curie.fr   16 u  21h 1024    0    0.000    0.000
4000.00
 ramses.net4u.it hora.cs.tu-berl 16 u  22h 1024    0    0.000    0.000
4000.00
 ntp1.theinterne time-b.nist.gov 16 u  21h 1024    0    0.000    0.000
4000.00
 lnx-7-fe1.ams-2 hora.cs.tu-berl 16 u  21h 1024    0    0.000    0.000
4000.00
 lnx-12-be1.ams- ntp0.NL.net     16 u  22h 1024    0    0.000    0.000
4000.00
 194.164.127.4   ntp1.sp.se      16 u  21h 1024    0    0.000    0.000
4000.00
 194.164.127.5   ntp-p1.obspm.fr 16 u  22h 1024    0    0.000    0.000
4000.00
 194.164.127.6   0.0.0.0         16 u    - 1024    0    0.000    0.000
4000.00
 ntp0.pipex.net  ntp1.NL.net     16 u  21h 1024    0    0.000    0.000
4000.00
 ntp1.pipex.net  ntp1.NL.net     16 u  21h 1024    0    0.000    0.000
4000.00
 ntp2.pipex.net  ntp1.NL.net     16 u  21h 1024    0    0.000    0.000
4000.00



after a restart I see this


ntpq -c peers
     remote           refid      st t when poll reach   delay   offset
 jitter
==============================================================================
 LOCAL(0)        LOCAL(0)         2 l    8   64  377    0.000    0.000
  0.008
 LOCAL(1)        LOCAL(1)         5 l    3   64  377    0.000    0.000
  0.008
-ntp1.ptb.de     .PTB.            1 u   71  128  377   71.531    3.060
  3.694
-ntp2.ptb.de     .PTB.            1 u   59  256  377   80.492    5.405
  0.730
 ntp0-rz.rrze.un 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
 ntp1-rz.rrze.un 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
 ntp2-rz.rrze.un 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
 ntp3-rz.rrze.un 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
+hora.cs.tu-berl .PPS.            1 u   57  256  377   74.994   -0.188
  4.576
*sombrero.cs.tu- .PPS.            1 u   63  256  377   78.326   -0.030
  0.557
-rustime01.rus.u .DCFp.           1 u   69  128  377   83.278    6.224
 39.682
 woon.curie.fr   0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
 xoon.curie.fr   0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
 lip.curie.fr    0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
-ntp0.NL.net     .GPS.            1 u   67  256  377  103.866    6.695
  8.159
 ntp1.NL.net     0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
-ntp1.NL.net     .GPS.            1 u    5  256  377   89.790   -1.366
  2.179
+vega.cbk.poznan .PPS.            1 u   66  256  377  133.260   -0.498
  3.728
#time.nist.gov   .ACTS.           1 u   62  256  177  209.238    4.487
  2.336
#time-a.nist.gov .ACTS.           1 u   54  256  377  209.922  -20.887
 28.923
#time-b.nist.gov .ACTS.           1 u   69  128  377  190.287   14.365
  4.828
 time-B.timefreq 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
#time-C.timefreq .ACTS.           1 u   65  256  377  201.388    0.612
  0.265
#time-B.timefreq .ACTS.           1 u   62  256  377  200.126    0.029
 41.830
xtick.usnogps.na .USNO.           1 u   69  128  377  368.931   88.808
  4.270
xtick.usno.navy. .USNO.           1 u   57  256  277  492.287   83.929
  3.410
 tock.usno.navy. 85.83.78.79     16 u  662   64    0    0.000    0.000
4000.00
xusno.pa-x.dec.c .USNO.           1 u    4  256  375  370.779  -66.504
 31.767
xclepsydra.dec.c .GPS.            1 u    5  256  375  360.229  -63.112
 22.953
#clock.isc.org   gps.laguna.vix.  2 u   50  256  375  226.146    3.382
  0.011
#clock.via.net   usno.pa-x.dec.c  2 u  126  128  373  307.845  -44.547
  6.565
 redirectf.dnsix 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
#ntp-cup.externa .GPS.            1 u   56  256  377  236.285   10.370
  5.312
#timekeeper.isi. .GPS.            1 u  319  128  374  235.282    2.995
  3.835
#montpelier.ilan 0.0.0.0          1 u  312  128  374  230.944    2.795
  4.412
#nist1.aol-ca.tr .ACTS.           1 u  322  128  374  225.017   -0.053
  0.583
-ntp1.ien.it     .IEN.            1 u    6  256  377  117.067    1.548
  6.231
-ntp2.ien.it     .IEN.            1 u   65  256  377   98.787   -4.453
  3.473
 time.windows.co 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
#tick.Informatik GENERIC(0)       2 u   65  256  377   76.598    1.156
  3.553
#tock.Informatik ntp1-rz.rrze.un  2 u   60  256  377   76.865    1.144
  0.672
 tack.Informatik 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
#adm.globe.cz    tik.cesnet.cz    2 u   50  256  377   83.985    3.339
 20.840
#merlin.karpo.cz sombrero.cs.tu-  2 u   58  256  377   87.733    2.168
  0.021
 eloise.lost-oas 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
 eloise.lost-oas 0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
#eloise.lost-oas xoon.curie.fr    2 u   54  256  377   76.850    3.516
  3.789
#ramses.net4u.it biofiz.mf.uni-l  3 u   50  256  377  110.798   -0.172
 10.951
#ntp1.theinterne ntp1.ien.it      2 u   46  256  377   66.189   -0.072
  4.425
#lnx-7-fe1.ams-2 hora.cs.tu-berl  2 u   54  256  377   82.722    7.160
  0.430
#lnx-12-be1.ams- ntp2.ptb.de      2 u   46  256  377   76.123    5.421
  3.169
x194.164.127.4   swisstime.ee.et  2 u   49  256  377  218.341   60.412
 63.105
#194.164.127.5   ntp-p1.obspm.fr  2 u   49  256  377  314.271   26.963
 47.036
 194.164.127.6   0.0.0.0         16 u    -   64    0    0.000    0.000
4000.00
#ntp0.pipex.net  ntp1.NL.net      2 u   54  256  377   93.646   -2.048
  1.212
#ntp1.pipex.net  ntp1.NL.net      2 u   53  256  377   93.847   -1.688
  1.285
#ntp2.pipex.net  ntp1.NL.net      2 u   49  256  377   89.390    2.000
  1.127


so I suppose everything is OK.
This is what I see in /var/log/ntp

##### This is when I see it and do rcxntpd restart
26 Oct 10:50:54 ntpd[31775]: signal_no_reset: signal 17 had flags
4000000
#####
26 Oct 10:50:54 ntpd[31774]: running as uid(74)/gid(65534)
euid(74)/egid(65534).
26 Oct 10:50:54 ntpd[31774]: frequency initialized -48.607 from
/var/lib/ntp/ntp.drift
26 Oct 10:50:58 ntpd[31775]: couldn't resolve `tempo.cstv.to.cnr.it',
giving up on it
26 Oct 10:51:00 ntpd[31775]: couldn't resolve `tempo.cstv.to.cnr.it',
giving up on it
26 Oct 10:54:13 ntpd[31774]: kernel time discipline status change 41
26 Oct 21:58:12 ntpd[31774]: sendto(141.82.30.251): Invalid argument
26 Oct 21:58:21 ntpd[31774]: sendto(192.53.103.103): Invalid argument
26 Oct 21:58:31 ntpd[31774]: sendto(62.4.94.211): Invalid argument
##### This is when I see it and do rcxntpd restart
26 Oct 21:59:41 ntpd[31774]: ntpd exiting on signal 15
#####
26 Oct 21:59:42 ntpd[2258]: signal_no_reset: signal 17 had flags
4000000
26 Oct 21:59:42 ntpd[2257]: running as uid(74)/gid(65534)
euid(74)/egid(65534).
26 Oct 21:59:42 ntpd[2257]: frequency initialized -47.551 from
/var/lib/ntp/ntp.drift
26 Oct 21:59:47 ntpd[2258]: couldn't resolve `tempo.cstv.to.cnr.it',
giving up on it
26 Oct 21:59:52 ntpd[2258]: couldn't resolve `tempo.cstv.to.cnr.it',
giving up on it
26 Oct 22:02:54 ntpd[2257]: kernel time discipline status change 41
27 Oct 21:58:27 ntpd[2257]: sendto(130.149.17.8): Invalid argument
27 Oct 21:58:31 ntpd[2257]: sendto(129.69.1.153): Invalid argument
27 Oct 21:58:40 ntpd[2257]: sendto(193.49.205.19): Invalid argument
27 Oct 21:58:41 ntpd[2257]: sendto(192.53.103.103): Invalid argument
27 Oct 21:58:42 ntpd[2257]: sendto(192.12.19.20): Invalid argument
27 Oct 21:59:25 ntpd[2257]: sendto(131.188.3.220): Invalid argument
27 Oct 21:59:37 ntpd[2257]: sendto(193.49.205.18): Invalid argument
27 Oct 22:01:28 ntpd[2257]: sendto(193.79.237.14): Invalid argument
27 Oct 22:01:32 ntpd[2257]: sendto(150.254.183.15): Invalid argument
and many more ...


in /var/log/messages there is


Oct 30 19:17:34 gateway ntpdate[27751]: adjust time server
192.53.103.103 offset -0.005457 sec
Oct 30 19:17:34 gateway ntpd[27754]: ntpd 4.1.1 at 1.786 Mon Aug 25
13:42:15 UTC 2003 (1)
Oct 30 19:17:34 gateway ntpd[27754]: signal_no_reset: signal 13 had
flags 4000000
Oct 30 19:17:34 gateway ntpd[27754]: precision = 8 usec
Oct 30 19:17:34 gateway ntpd[27754]: kernel time discipline status
0040
Oct 30 19:17:34 gateway ntpd[27754]: frequency initialized -48.488
from /var/lib/ntp/ntp.drift


This is my /etc/ntp.conf


################################################################################
## /etc/ntp.conf
##
## Sample NTP configuration file.
## See package 'xntp-doc' for documentation, Mini-HOWTO and FAQ.
## Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany.
##
## Author: Michael Andres,  <ma at suse.de>
##
################################################################################

##
## Radio and modem clocks by convention have addresses in the 
## form 127.127.t.u, where t is the clock type and u is a unit 
## number in the range 0-3. 
##
## Most of these clocks require support in the form of a 
## serial port or special bus peripheral. The particular  
## device is normally specified by adding a soft link 
## /dev/device-u to the particular hardware device involved, 
## where u correspond to the unit number above. 
## 
## Generic DCF77 clock on serial port (Conrad DCF77)
## Address:     127.127.8.u
## Serial Port: /dev/refclock-u
##  
## (create soft link /dev/refclock-0 to the particular ttyS?)
##
# server 127.127.8.0 mode 5 prefer

##
## Undisciplined Local Clock. This is a fake driver intended for
backup
## and when no outside source of synchronized time is available.
##
server 127.127.1.0              # local clock (LCL)
# fudge  127.127.1.0 stratum 10 # LCL is unsynchronized
fudge  127.127.1.0 stratum 2    # LCL is unsynchronized

##
## Outside source of synchronized time
##
## server xx.xx.xx.xx           # IP address of server
server  ntp1.ptb.de
server  ntp2.ptb.de
server  ntp0.fau.de
server  ntp1.fau.de
server  ntp2.fau.de
server  ntp3.fau.de
server  ntps1-0.cs.tu-berlin.de
server  ntps1-1.cs.tu-berlin.de
server  rustime01.rus.uni-stuttgart.de
server  ntp1.curie.fr
server  ntp2.curie.fr
server  ntp3.curie.fr
server  ntp0.nl.net
server  ntp1.nl.net
server  ntp2.nl.net
server  tempo.cstv.to.cnr.it
server  vega.cbk.poznan.pl
server  time.nist.gov
server  time-a.nist.gov
server  time-b.nist.gov
server  time-a.timefreq.bldrdoc.gov
server  time-b.timefreq.bldrdoc.gov
server  time-c.timefreq.bldrdoc.gov
server  navobs1.usnogps.navy.mil
server  tick.usno.navy.mil
server  tock.usno.navy.mil
server  usno.pa-x.dec.com
server  clepsydra.dec.com
server  clock.isc.org
server  clock.via.net
server  ntp1.connectiv.com
server  ntp-cup.external.hp.com
server  timekeeper.isi.edu
server  montpelier.ilan.caltech.edu
server  nist1.aol-ca.truetime.com
server  ntp1.ien.it
server  ntp2.ien.it
server  tempo.cstv.to.cnr.it
#
# The internal PC clock is peered to let it be set by the NTP daemon
peer  127.127.1.1
# and to refer to it when this host is cut off the net. 
#
#
peer    time.windows.com
peer    tick.fh-augsburg.de 
peer    tock.fh-augsburg.de 
peer    tack.fh-augsburg.de 
peer    ntp.globe.cz 
peer    ntp.karpo.cz 
peer    ntp.tuxfamily.net 
peer    ntp1.tuxfamily.net 
peer    ntp2.tuxfamily.net 
peer    ntps.net4u.it 
peer    ntp1.theinternetone.net 
peer    ntp2.theinternetone.net 
peer    ntp3.theinternetone.net 
peer    ntp0.sandvika.net 
peer    ntp1.sandvika.net 
peer    ntp2.sandvika.net 
peer    ntp0.uk.uu.net 
peer    ntp1.uk.uu.net 
peer    ntp2.uk.uu.net 


##
## Miscellaneous stuff
##

driftfile /var/lib/ntp/ntp.drift # path for drift file

logfile   /var/log/ntp          # alternate log file
# logconfig =syncstatus + sysevents
# logconfig =all

# statsdir /tmp/                # directory for statistics files
# filegen peerstats  file peerstats  type day enable
# filegen loopstats  file loopstats  type day enable
# filegen clockstats file clockstats type day enable

#
# Authentication stuff
#
# keys /etc/ntp.keys            # path for keys file
# trustedkey 1 2 3 4 5 6 14 15  # define trusted keys
# requestkey 15                 # key (7) for accessing server
variables
# controlkey 15                 # key (6) for accessing server
variables




How can I solve my problem?
Any help very much appreciated.


Thanks so much
Luca



More information about the questions mailing list