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 ?
Thanks in advance,
Jerome
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/4D6978DF...@rezozer.net
Any clues in syslog or /var/log/boot?
--
I prefer banana-flavored energy bars made from tofu.
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
If this is a laptop, maybe the wireless connection isn't coming up
quickly enough?
If wired-but-dhcp, maybe the dhcp server isn't responding quickly
enough?
--
I prefer banana-flavored energy bars made from tofu.
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
On 26/02/11 23:49, Ron Johnson wrote:
> On 02/26/2011 04:04 PM, Jerome BENOIT wrote:
>> Hello List,
>>
>> 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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
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 ?
Jerome
>
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
I think I'd file a bug against ntp mentioning this.
> Is there a (Debian) way to launch ntp after dhcp ?
> or to ``reload'' ntp after a while ?
>
Probably not the official method, but you can put the ntp restart in
/etc/rc.local.
--
I prefer banana-flavored energy bars made from tofu.
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
What exactly did you have to change?
--
I prefer banana-flavored energy bars made from tofu.
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
On 27/02/11 03:27, Ron Johnson wrote:
> On 02/26/2011 07:59 PM, Jerome BENOIT wrote:
> [snip]
>>
>> Finally I fixed it by reconfiguring my /etc/ntp.conf file from start:
>> I guess that my old configuration file needs to be upgraded.
>>
>
> What exactly did you have to change?
I performed the following kind of modification:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
server time.xxxx.net iburst
server time.xxxx.org iburst
restrict -4 default ignore
restrict time.xxxx.net nomodify notrap nopeer noquery
restrict time.xxxx.org nomodify notrap nopeer noquery
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
to
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
server time.xxxx.net iburst
server time.xxxx.org iburst
restrict -4 default kod notrap nomodify nopeer noquery
## empty
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
hth,
Jerome
>
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org