From owner-freebsd-stable@FreeBSD.ORG Tue Apr 6 02:14:17 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2386A106564A for ; Tue, 6 Apr 2010 02:14:17 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id 0A9EC8FC17 for ; Tue, 6 Apr 2010 02:14:15 +0000 (UTC) Received: from omta07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by qmta03.emeryville.ca.mail.comcast.net with comcast id 1scq1e0031GXsucA32EGmM; Tue, 06 Apr 2010 02:14:16 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta07.emeryville.ca.mail.comcast.net with comcast id 22EF1e0083S48mS8T2EFZF; Tue, 06 Apr 2010 02:14:16 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 563B69B419; Mon, 5 Apr 2010 19:14:14 -0700 (PDT) Date: Mon, 5 Apr 2010 19:14:14 -0700 From: Jeremy Chadwick To: "Mikhail T." Message-ID: <20100406021414.GA96148@icarus.home.lan> References: <4BBA8D9F.7000006@aldan.algebra.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BBA8D9F.7000006@aldan.algebra.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: stable@FreeBSD.org Subject: Re: binding on 127.0.0.1 not working after upgrade to 7.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 02:14:17 -0000 On Mon, Apr 05, 2010 at 09:25:51PM -0400, Mikhail T. wrote: > Hello! > > I just rebuilt my system from 7.2-stable to 7.3. The first thing to fail > upon restart was the PostgreSQL-server. But there are other failures -- > for example, webmin is unreachable at its usual https://localhost:10000/ > > ktrace-ing postgres reveals: > > 19875 postgres CALL bind(0x3,0x8015190f0,0x10) > 19875 postgres STRU struct sockaddr { AF_INET, 127.0.0.1:5432 } > 19875 postgres RET bind -1 errno 49 Can't assign requested address > 19875 postgres CALL socket(PF_LOCAL,SOCK_DGRAM,0) > 19875 postgres RET socket 4 > > > I rebuilt postgress server anew, just in case, but it is still > failing... Changing the listen_addresses from 'localhost' to > 'my.lan.ip.add' allows the server to start-up, but now I need to change > the configuration of the local applications... > > Similarly, 'ssh localhost' no longer works, although `ssh my.lan.ip.add' > works... > > The only unusual thing about my system is that I build with > `NO_INET6=yes'. But it all worked with the kernel from a month ago... > The ::1-definition in /etc/hosts is now commented-out, but that didn't > help any... > > Please, advise. Thanks! Check ifconfig -a and make sure lo0 appears / has a correct IP address, and the interface is up. Also, if the machine has firewall rules, make sure they're written so that lo0 is excluded from the list (in pf.conf, 'set skip on lo0' does the trick). -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |