[pkg-ntp-maintainers] Bug#612451: possible bug in ntp package

Stephan.Goll at t-online.de Stephan.Goll at t-online.de
Tue Feb 8 15:16:48 UTC 2011


Package: ntp
Version: 1:4.2.6.p2+dfsg-1+b1
Severity: normal

*** Please type your report below this line ***

Hello,
I found that ntp may not startup / run correct in Debian 6. Using ntpq 
the local clock is shown as not used.

ntpq> pe
     remote           refid      st t when poll reach   delay   offset 
jitter
==============================================================================
 alix01          192.168.1.50     3 u  278 1024  377    0.390    3.523  
6.058
*zaphod          192.53.103.108   2 u  114 1024  377    9.920    1.948  
3.027
 LOCAL(0)        .LOCL.           8 l  46h   64    0    0.000    0.000  
0.000
ntpq> q

I read the changelog and found that ntp may be started by ifup 
so I thought it may be caused because the loopback address may 
not be set up at this moment. So I restarted ntp and now it looks 
like this:

ntpq> pe
     remote           refid      st t when poll reach   delay   offset 
jitter
==============================================================================
 alix01          192.168.1.50     3 u    5   64    3    0.367    3.951  
0.053
 zaphod          192.53.103.108   2 u    2   64    3    1.698    5.980  
0.149
*LOCAL(0)        .LOCL.           8 l    4   64    3    0.000    0.000  
0.000
ntpq> q

But then ... after a while ... I looked again.

ntpq> pe
     remote           refid      st t when poll reach   delay   offset 
jitter
==============================================================================
 alix01          192.168.1.50     3 u    2  128  377    0.357   -0.617  
1.658
*zaphod          192.53.103.108   2 u  117  128  377    1.678    3.576  
2.166
 LOCAL(0)        .LOCL.           8 l 229m   64    0    0.000    0.000  
0.000
ntpq> q

The local clock seems to be gone as soon ntp switches zu a real 
time server ... or such like. I verified this on another Deb 6 system.
For me this looks like a real bug.
Best regards,
Stephan

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages ntp depends on:
ii  adduser                 3.112+nmu2       add and remove users and
groups
ii  dpkg                    1.15.8.10        Debian package management
system
ii  libc6                   2.11.2-10        Embedded GNU C Library:
Shared lib
ii  libcap2                 1:2.19-3         support for getting/setting
POSIX.
ii  libedit2                2.11-20080614-2  BSD editline and history
libraries
ii  libopts25               1:5.10-1.1       automated option processing
librar
ii  libssl0.9.8             0.9.8o-4         SSL shared libraries
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2
init scrip
ii  netbase                 4.45             Basic TCP/IP networking
system

Versions of packages ntp recommends:
ii  perl                          5.10.1-17  Larry Wall's Practical
Extraction 

Versions of packages ntp suggests:
pn  ntp-doc                       <none>     (no description available)

-- Configuration Files:
/etc/ntp.conf changed:
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 192.168.1.9
server 192.168.1.50
server 127.127.1.0
fudge 127.127.1.0 stratum 8
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1


-- no debconf information








More information about the pkg-ntp-maintainers mailing list