I am configuring ntp on a little server Squeeze box:
After each boot, I need to restart manually ntp ( /etc/init,d/ntp
restart)
to make is work properly. Otherwise is stuck, namely `ntpq -p' gives:
remote refid st t when poll reach delay offset jitter
================================================== ============================
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
How can I avoid the manual restart ?
Any clues in syslog or /var/log/boot?
in syslog, at boot time:
Feb 26 21:29:10 rezozer ntpd[2515]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Feb 26 21:29:10 rezozer ntpd[2515]: Listen normally on 1 lo 127.0.0.1 UDP 123
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.de" invalid host address, ignored
Feb 26 21:29:10 rezozer ntpd[2515]: restrict: error in address 'time.xxxxx.de' on line 54. Ignoring...
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.de" invalid host address, ignored
Feb 26 21:29:10 rezozer ntpd[2515]: restrict: error in address 'time.xxxxx.de' on line 55. Ignoring...
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.es" invalid host address, ignored
Feb 26 21:29:10 rezozer ntpd[2515]: restrict: error in address 'time.xxxxx.es' on line 56. Ignoring...
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.fr" invalid host address, ignored
Feb 26 21:29:10 rezozer ntpd[2515]: restrict: error in address 'time.xxxxx.fr' on line 57. Ignoring...
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.fr" invalid host address, ignored
Feb 26 21:29:10 rezozer ntpd[2515]: restrict: error in address 'time.xxxxx.fr' on line 57. Ignoring...
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.nl" invalid host address, ignored
Feb 26 21:29:10 rezozer ntpd[2515]: restrict: error in address 'time.xxxxx.nl' on line 59. Ignoring...
Feb 26 21:29:10 rezozer ntpd[2515]: Deferring DNS for time.xxxxx.de 1
Feb 26 21:29:10 rezozer ntpd[2515]: Deferring DNS for time.xxxxx.de 1
Feb 26 21:29:10 rezozer ntpd[2515]: Deferring DNS for time.xxxxx.fr 1
Feb 26 21:29:10 rezozer ntpd[2515]: Deferring DNS for time.xxxxx.es 1
Feb 26 21:29:10 rezozer ntpd[2515]: Deferring DNS for time.xxxxx.fr 1
Feb 26 21:29:10 rezozer ntpd[2515]: Deferring DNS for time.xxxxx.nl 1
Feb 26 21:29:10 rezozer ntpd[2526]: signal_no_reset: signal 17 had flags 4000000
Feb 26 21:29:12 rezozer ntpd_intres[2526]: host name not found: time.xxxxx.de
Feb 26 21:29:12 rezozer ntpd_intres[2526]: host name not found: time.xxxxx.de
Feb 26 21:29:12 rezozer ntpd_intres[2526]: host name not found: time.xxxxx.fr
Feb 26 21:29:12 rezozer ntpd_intres[2526]: host name not found: time.xxxxx.es
Feb 26 21:29:12 rezozer ntpd_intres[2526]: host name not found: time.xxxxx.fr
Feb 26 21:29:12 rezozer ntpd_intres[2526]: host name not found: time.xxxxx.nl
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.de -> 130.xxx.xxx.10
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.de -> 131.xxx.xxx.223
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.fr -> 192.xxx.xxx.20
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.es -> 158.xxx.xxx.15
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.fr -> 193.xxx.xxx.211
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.nl -> 187.xxxx.xxx.11
Feb 26 21:30:15 rezozer ntpd[2515]: Listen normally on 2 gieth0 xxx.xxx.xxx.xxx UDP 123
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
I am configuring ntp on a little server Squeeze box:
After each boot, I need to restart manually ntp ( /etc/init,d/ntp
restart)
to make is work properly. Otherwise is stuck, namely `ntpq -p'
gives:
remote refid st t when poll reach delay offset jitter
================================================== ============================
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
How can I avoid the manual restart ?
Any clues in syslog or /var/log/boot?
in syslog, at boot time:
Feb 26 21:29:10 rezozer ntpd[2515]: Listen and drop on 0
v4wildcard 0.0.0.0 UDP 123
Feb 26 21:29:10 rezozer ntpd[2515]: Listen normally on 1 lo
127.0.0.1 UDP 123
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.de"
invalid host address, ignored
[snip]
If this is a laptop, maybe the wireless connection isn't coming up
quickly enough?
NA
If wired-but-dhcp, maybe the dhcp server isn't responding quickly enough?
I am agree.
In fact, dhcp seems to be called after ntp.
Is there a (Debian) way to launch ntp after dhcp ?
or to ``reload' ntp after a while ?
In fact a closer look shows that ntp sems to manage it:
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.de -> 130.xxx.xxx.10
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.de -> 131.xxx.xxx.223
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.fr -> 192.xxx.xxx.20
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.es -> 158.xxx.xxx.15
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.fr -> 193.xxx.xxx.211
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.nl -> 187.xxxx.xxx.11
Feb 26 21:30:15 rezozer ntpd[2515]: Listen normally on 2 gieth0 xxx.xxx.xxx.xxx UDP 123
so ntp pretends to ``Listen normally', but it does not as it stucks to .XFAC.
Jerome
Jerome
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
I am configuring ntp on a little server Squeeze box:
After each boot, I need to restart manually ntp ( /etc/init,d/ntp
restart)
to make is work properly. Otherwise is stuck, namely `ntpq -p'
gives:
remote refid st t when poll reach delay offset jitter
================================================== ============================
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
time.xxxxxxx.xx .XFAC. 16 u - 1024 0 0.000 0.000 0.000
How can I avoid the manual restart ?
Any clues in syslog or /var/log/boot?
in syslog, at boot time:
Feb 26 21:29:10 rezozer ntpd[2515]: Listen and drop on 0
v4wildcard 0.0.0.0 UDP 123
Feb 26 21:29:10 rezozer ntpd[2515]: Listen normally on 1 lo
127.0.0.1 UDP 123
Feb 26 21:29:10 rezozer ntpd[2515]: getaddrinfo: "time.xxxxx.de"
invalid host address, ignored
[snip]
If this is a laptop, maybe the wireless connection isn't coming up
quickly enough?
NA
If wired-but-dhcp, maybe the dhcp server isn't responding quickly
enough?
I am agree.
In fact, dhcp seems to be called after ntp.
Is there a (Debian) way to launch ntp after dhcp ?
or to ``reload' ntp after a while ?
In fact a closer look shows that ntp sems to manage it:
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.de ->
130.xxx.xxx.10
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.de ->
131.xxx.xxx.223
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.fr ->
192.xxx.xxx.20
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.es ->
158.xxx.xxx.15
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.fr ->
193.xxx.xxx.211
Feb 26 21:30:15 rezozer ntpd_intres[2526]: DNS time.xxxxx.nl ->
187.xxxx.xxx.11
Feb 26 21:30:15 rezozer ntpd[2515]: Listen normally on 2 gieth0
xxx.xxx.xxx.xxx UDP 123
so ntp pretends to ``Listen normally', but it does not as it stucks to
.XFAC.
Finally I fixed it by reconfiguring my /etc/ntp.conf file from start:
I guess that my old configuration file needs to be upgraded.
Jerome
Jerome
Jerome
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org