[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ntp: .XFAC. refid



Hello List !



On 27/02/11 00:59, Jerome BENOIT wrote:


On 27/02/11 00:33, Jerome BENOIT wrote:
Thanks for the replies.

On 27/02/11 00:18, Ron Johnson wrote:
On 02/26/2011 05:10 PM, Jerome BENOIT wrote:


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
[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








Reply to: