From owner-freebsd-current@FreeBSD.ORG Thu Jun 24 12:43:42 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 217701065673 for ; Thu, 24 Jun 2010 12:43:42 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id CB3648FC1A for ; Thu, 24 Jun 2010 12:43:40 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1ORlmN-0006Ls-VO for freebsd-current@freebsd.org; Thu, 24 Jun 2010 13:43:40 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1ORlmN-0007UZ-OF for freebsd-current@freebsd.org; Thu, 24 Jun 2010 13:43:39 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id o5OChcNh040028 for ; Thu, 24 Jun 2010 13:43:38 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id o5OChcM7040025 for freebsd-current@freebsd.org; Thu, 24 Jun 2010 13:43:38 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Thu, 24 Jun 2010 13:43:38 +0100 From: Anton Shterenlikht To: freebsd-current@freebsd.org Message-ID: <20100624124338.GA39566@mech-cluster241.men.bris.ac.uk> References: <20100616165909.GA55995@mech-cluster241.men.bris.ac.uk> <4C190513.20309@infracaninophile.co.uk> <20100616171531.GA56202@mech-cluster241.men.bris.ac.uk> <4C1912CB.9000609@infracaninophile.co.uk> <20100617092102.GA90168@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100617092102.GA90168@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: r209244 ia64 and r209229 amd64 -> ntpq: write to localhost failed: Network is unreachable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 12:43:42 -0000 On Thu, Jun 17, 2010 at 10:21:02AM +0100, Anton Shterenlikht wrote: > On Wed, Jun 16, 2010 at 07:07:07PM +0100, Matthew Seaman wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On 16/06/2010 18:15:32, Anton Shterenlikht wrote: > > > On Wed, Jun 16, 2010 at 06:08:35PM +0100, Matthew Seaman wrote: > > >> -----BEGIN PGP SIGNED MESSAGE----- > > >> Hash: SHA1 > > >> > > >> On 16/06/2010 17:59:10, Anton Shterenlikht wrote: > > >>> After a recent upgrade to r209156 I get this error: > > >>> > > >>> $ ntpq -p > > >>> ntpq: write to localhost failed: Network is unreachable > > >>> > > >>> Please advise > > >> > > >> What does 'ifconfig -a' and 'netstat -rn' say? > > > > > > $ ifconfig -a > > > em0: flags=8843 metric 0 mtu 1500 > > > options=209b > > > ether 00:13:21:5b:05:1c > > > inet 137.222.187.28 netmask 0xffffff00 broadcast 137.222.187.255 > > > inet6 fe80::213:21ff:fe5b:51c%em0 prefixlen 64 scopeid 0x1 > > > nd6 options=29 > > > media: Ethernet autoselect (1000baseT ) > > > status: active > > > em1: flags=8802 metric 0 mtu 1500 > > > options=209b > > > ether 00:13:21:5b:05:1d > > > media: Ethernet autoselect (100baseTX ) > > > status: active > > > lo0: flags=8049 metric 0 mtu 16384 > > > options=3 > > > inet 127.0.0.1 netmask 0xff000000 > > > inet6 ::1 prefixlen 128 > > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > > nd6 options=21 > > > > > > $ netstat -rn > > > Routing tables > > > > > > Internet: > > > Destination Gateway Flags Refs Use Netif Expire > > > default 137.222.187.250 UGS 0 65512 em0 > > > 127.0.0.1 link#3 UH 0 293 lo0 > > > 137.222.187.0/24 link#1 U 0 10861 em0 > > > 137.222.187.28 link#1 UHS 0 0 lo0 > > > > > > Internet6: > > > Destination Gateway Flags Netif Expire > > > ::/96 ::1 UGRS lo0 > > > ::1 ::1 UH lo0 > > > ::ffff:0.0.0.0/96 ::1 UGRS lo0 > > > fe80::/10 ::1 UGRS lo0 > > > fe80::%em0/64 link#1 U em0 > > > fe80::213:21ff:fe5b:51c%em0 link#1 UHS lo0 > > > fe80::%lo0/64 link#3 U lo0 > > > fe80::1%lo0 link#3 UHS lo0 > > > ff01:1::/32 fe80::213:21ff:fe5b:51c%em0 U em0 > > > ff01:3::/32 ::1 U lo0 > > > ff02::/16 ::1 UGRS lo0 > > > ff02::%em0/32 fe80::213:21ff:fe5b:51c%em0 U em0 > > > ff02::%lo0/32 ::1 U lo0 > > > > > > > > > > > >> What happens if you try and ping localhost? > > > > > > $ ping -c5 localhost > > > PING localhost (127.0.0.1): 56 data bytes > > > 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.109 ms > > > 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.103 ms > > > 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.060 ms > > > 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.059 ms > > > 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.059 ms > > > > > > --- localhost ping statistics --- > > > 5 packets transmitted, 5 packets received, 0.0% packet loss > > > round-trip min/avg/max/stddev = 0.059/0.078/0.109/0.023 ms > > > > Nothing obviously wrong there. Perhaps ntpd is not running? > > (Not sure quite why that should cause an error message about > > reachability of localhost: I suppose it's not completely unreasonable > > though.) > > > > If ntpd is running, then try restarting it. If the problem still > > persists, then it looks like you've found a bug. > > # ps ax | grep ntp > 55043 ?? Rs 0:00.02 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drif > 55050 0 R+ 0:00.00 grep ntp > # ntpq -p > ntpq: write to localhost failed: Network is unreachable > # /etc/rc.d/ntpd restart > Stopping ntpd. > Waiting for PIDS: 55043. > Starting ntpd. > # ps ax | grep ntp > 55113 ?? Ss 0:00.02 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drif > 55127 0 R+ 0:00.00 grep ntp > # ntpq -p > ntpq: write to localhost failed: Network is unreachable > # just to ask if anybody else is seeing this on ia64 or amd64? I'm using /etc/ntp.conf as supplied, no modifications. Seems to work ok on i386 r209398 sparc64 r204991M ia64 r209203 but gives the above error on amd64 r209229 ia64 r209244 many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423