From owner-freebsd-i386@FreeBSD.ORG Mon Jul 30 17:20:02 2007 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 703E416A418 for ; Mon, 30 Jul 2007 17:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 51FF213C458 for ; Mon, 30 Jul 2007 17:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6UHK2Qx069288 for ; Mon, 30 Jul 2007 17:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6UHK2Ja069287; Mon, 30 Jul 2007 17:20:02 GMT (envelope-from gnats) Resent-Date: Mon, 30 Jul 2007 17:20:02 GMT Resent-Message-Id: <200707301720.l6UHK2Ja069287@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Chauncey N. Menefee" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3439816A417 for ; Mon, 30 Jul 2007 17:16:04 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0B49513C465 for ; Mon, 30 Jul 2007 17:16:04 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6UHG3hJ020379 for ; Mon, 30 Jul 2007 17:16:03 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l6UHG3eD020378; Mon, 30 Jul 2007 17:16:03 GMT (envelope-from nobody) Message-Id: <200707301716.l6UHG3eD020378@www.freebsd.org> Date: Mon, 30 Jul 2007 17:16:03 GMT From: "Chauncey N. Menefee" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: i386/115054: NTP errors out on startup but restart of NTP fixes problem X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 17:20:02 -0000 >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: