[pkg-ntp-maintainers] Bug#766838: ntpdate runs before network is up

Torquil Macdonald Sørensen torquil at gmail.com
Sun Oct 26 08:53:52 UTC 2014


Package: ntpdate
Version: 1:4.2.6.p5+dfsg-3.1
Severity: normal

Lately, ntpdate has not been correcting the clock. But when I run
"ntpdate-debian" manually after the network is up, the clock is
correctly adjusted.

This is an excerpt from /var/log/demon.log:

  4260 Oct 26 08:36:48 lenovo keyboard-setup[240]: Setting preliminary keymap...done.
   4261 Oct 26 08:36:48 lenovo hdparm[277]: Setting parameters of disc: (none).
   4262 Oct 26 08:36:48 lenovo networking[291]: Configuring network interfaces...done.
   4263 Oct 26 08:36:48 lenovo kbd[376]: Setting console screen modes.
   4264 Oct 26 08:36:48 lenovo ntpdate[371]: Can't find host ntp.uio.no: Name or service not known (-2)
   4265 Oct 26 08:36:48 lenovo ntpdate[371]: Can't find host 0.debian.pool.ntp.org: Name or service not known (-2)
   4266 Oct 26 08:36:48 lenovo ntpdate[371]: Can't find host 1.debian.pool.ntp.org: Name or service not known (-2)
   4267 Oct 26 08:36:48 lenovo NetworkManager[1981]: <info> NetworkManager (version 0.9.10.0) is starting...
   4268 Oct 26 08:36:48 lenovo NetworkManager[1981]: <info> Read config: /etc/NetworkManager/NetworkManager.conf
   4269 Oct 26 08:36:48 lenovo NetworkManager[1981]: <info> WEXT support is enabled
   4270 Oct 26 08:36:48 lenovo dbus[1994]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkitd.service'
   4271 Oct 26 08:36:48 lenovo polkitd[2052]: started daemon version 0.105 using authority implementation `local' version `0.105'

To me it seems that ntpdate is running before the network is up.

This is the output of "ifconfig":

eth0      Link encap:Ethernet  HWaddr 3c:97:0e:bf:72:2e
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:20 Memory:f2600000-f2620000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:80 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6304 (6.1 KiB)  TX bytes:6304 (6.1 KiB)

wlan0     Link encap:Ethernet  HWaddr a4:4e:31:47:15:cc
          inet addr:192.168.0.106  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::a64e:31ff:fe47:15cc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62758 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41258 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:65858238 (62.8 MiB)  TX bytes:6077544 (5.7 MiB)

I'm using wlan0, and have nothing connected to eth0.

Best regards
Torquil Sørensen

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.17-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ntpdate depends on:
ii  dpkg         1.17.21
ii  libc6        2.19-12
ii  libssl1.0.0  1.0.1j-1
ii  netbase      5.3

Versions of packages ntpdate recommends:
pn  lockfile-progs  <none>

ntpdate suggests no packages.

-- Configuration Files:
/etc/default/ntpdate changed:
NTPDATE_USE_NTP_CONF=no
NTPSERVERS="ntp.uio.no 0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"
NTPOPTIONS="-u"


-- no debconf information



More information about the pkg-ntp-maintainers mailing list