Date: Mon, 30 Jul 2007 17:16:03 GMT From: "Chauncey N. Menefee" <cmenefee@prism-grp.com> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/115054: NTP errors out on startup but restart of NTP fixes problem Message-ID: <200707301716.l6UHG3eD020378@www.freebsd.org> Resent-Message-ID: <200707301720.l6UHK2Ja069287@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115054 >Category: i386 >Synopsis: NTP errors out on startup but restart of NTP fixes problem >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 30 17:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Chauncey N. Menefee >Release: 6.2 stable >Organization: Prism Technologies >Environment: FreeBSD cacti.prismtechnm.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Jul 13 10:50:37 MDT 2007 root@cacti.prismtechnm.com:/usr/obj/usr/src/sys/CACTI i386 >Description: Ntpd returns an error on boot-up... but if I restart ntpd, everything works fine. Here is a screen shot: ------------------------------------------------------------------------------ cacti# ntpq ntpq> peers No association ID's returned ntpq> q cacti# /etc/rc.d/ntpd restart Stopping ntpd. Starting ntpd. cacti# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== kiri.nonexiste. 216.39.144.207 3 u 6 64 1 55.290 18070.8 0.001 cacti# ------------------------------------------------------------------------------- >From what we've been able to gather the NTP daemon is starting up before the network card and errors out. Restarting the NTP service afterwards clears up the problem. Here is the messages log: -------------------------------------------------------------------------------- Jul 30 10:50:31 cacti ntpd[486]: ntpd 4.2.0-a Tue Jun 26 12:15:57 MDT 2007 (1) Jul 30 10:50:31 cacti kernel: rl0: link state changed to UP -------------------------------------------------------------------------------- As you can see, NTP is starting up before the NIC (rl0) After re-syncing the source again the NTP service exhibits the same behavior. Also got the same results on a fresh install on completely different hardware. I would appreciate any input on this matter >How-To-Repeat: Fresh install 6.2 release enable ntpd in rc.conf create ntp.conf file in /etc/ touch ntpd.drift in /var/db/ restart machine ntpq -p (then you should see "no association ID" error) /etc/rc.d/ntpd restart ntpq -p (then it should be fine now) >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707301716.l6UHG3eD020378>