[pkg-ntp-maintainers] Bug#535049: ntpd does not work (removes every server) when no network at boot time
Vincent Lefevre
vincent at vinc17.org
Mon Jun 29 08:58:00 UTC 2009
Package: ntp
Version: 1:4.2.4p6+dfsg-2
Severity: normal
When ntpd starts while Internet connection is not up yet (this happens
when using wifi after the user has logged in), all the servers are
removed, so that ntpd no longer works. For instance, the syslog file
shows:
Jun 29 09:07:23 xvii ntpd[3868]: ntpd 4.2.4p6 at 1.1549-o Fri Jun 12 15:39:51 UTC 2009 (1)
Jun 29 09:07:23 xvii ntpd[3869]: precision = 1.000 usec
Jun 29 09:07:23 xvii ntpd[3869]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
Jun 29 09:07:23 xvii ntpd[3869]: Listening on interface #1 wildcard, ::#123 Disabled
Jun 29 09:07:23 xvii ntpd[3869]: Listening on interface #2 lo, ::1#123 Enabled
Jun 29 09:07:23 xvii ntpd[3869]: Listening on interface #3 lo, 127.0.0.1#123 Enabled
Jun 29 09:07:23 xvii ntpd[3869]: kernel time sync status 0040
Jun 29 09:07:23 xvii kernel: [ 31.080545] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jun 29 09:07:23 xvii ntpd[3869]: frequency initialized 0.510 PPM from /var/lib/ntp/ntp.drift
Jun 29 09:07:23 xvii named[3498]: network unreachable resolving '0.debian.pool.ntp.org/AAAA/IN': 193.0.14.129#53
Jun 29 09:07:23 xvii named[3498]: network unreachable resolving '0.debian.pool.ntp.org/A/IN': 193.0.14.129#53
[...]
Jun 29 09:07:25 xvii ntpd_initres[3886]: host name not found: 0.debian.pool.ntp.org
Jun 29 09:07:25 xvii ntpd_initres[3886]: couldn't resolve `0.debian.pool.ntp.org', giving up on it
and ditto with the other 3 servers. The consequence:
xvii:~> ntpq -p
No association ID's returned
After restarting ntpd with "/etc/init.d/ntp restart":
xvii:~> ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ddb3.europeacon 193.49.205.18 2 u - 64 1 40.697 -4440.1 0.582
ovh.microkwen.c 195.13.23.5 3 u 2 64 1 41.073 -4436.8 0.706
dnscache-paris. 192.93.2.20 2 u 1 64 1 50.454 -4441.3 0.836
ns.gansta93.com .STEP. 16 u 771 64 0 0.000 0.000 0.001
ntp should probably have a script in /etc/network/if-up.d to restart
ntpd or something like that.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ntp depends on:
ii adduser 3.110 add and remove users and groups
ii libc6 2.9-13 GNU C Library: Shared libraries
ii libcap2 1:2.16-5 support for getting/setting POSIX.
ii libedit2 2.11-20080614-1 BSD editline and history libraries
ii libncurses5 5.7+20090523-1 shared libraries for terminal hand
ii libssl0.9.8 0.9.8k-3 SSL shared libraries
ii lsb-base 3.2-22 Linux Standard Base 3.2 init scrip
ii netbase 4.35 Basic TCP/IP networking system
Versions of packages ntp recommends:
ii perl 5.10.0-23 Larry Wall's Practical Extraction
Versions of packages ntp suggests:
ii ntp-doc 1:4.2.4p6+dfsg-2 Network Time Protocol documentatio
-- no debconf information
More information about the pkg-ntp-maintainers
mailing list