From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 16:44:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A21FF1065686 for ; Thu, 9 Oct 2008 16:44:30 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id F33568FC13 for ; Thu, 9 Oct 2008 16:44:29 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA01.westchester.pa.mail.comcast.net with comcast id QbPl1a0080EZKEL51gkTPJ; Thu, 09 Oct 2008 16:44:27 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA01.westchester.pa.mail.comcast.net with comcast id QgkR1a0042P6wsM3MgkRXX; Thu, 09 Oct 2008 16:44:25 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=q9S-C6RlTw2ZsuTXOPkA:9 a=ByqADOmPDcYodOSHpkKK4MHmhtcA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id D1F9EC9419; Thu, 9 Oct 2008 09:44:24 -0700 (PDT) Date: Thu, 9 Oct 2008 09:44:24 -0700 From: Jeremy Chadwick To: Walter Venable Message-ID: <20081009164424.GA9081@icarus.home.lan> References: <8dfae1c10810090938k471f82f0j46caed0514e5b5ac@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8dfae1c10810090938k471f82f0j46caed0514e5b5ac@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Portsnap causes system to reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 16:44:30 -0000 On Thu, Oct 09, 2008 at 07:38:09PM +0300, Walter Venable wrote: > Whenever I run portsnap fetch update (edit: it also happens for a > simple portsnap fetch), my system reboots unexpectedly. Here's the > output: > # portsnap fetch update > Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found. > Fetching snapshot tag from portsnap2.FreeBSD.org... done. > Fetching snapshot metadata... done. > Updating from Wed Sep 24 00:04:04 EEST 2008 to Thu Oct 9 10:28:42 EEST 2008. > Fetching 3 metadata patches.. done. > Applying metadata patches... done. > Fetching 3 metadata files... done. > Fetching 602 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340....350....360....370....380....390....400....410....420....430....440....450....460....470....480....490....500....510....520....530....540....550....560....570....580....590....600. > done. > Applying patches... Read from remote host X: Connection reset by peer > Connection to X closed. > > And then I can log-in again a few minutes later, and the uptime has > gone down to a few seconds, so I know it rebooted. Any ideas why this > is happening? Nope, not without kernel panic information. Does this machine have serial console? Are kernel panic dumps being put into /var/crash? Is the machine even configured for it (see dumpdev, dumpdir, and savecore in rc.conf). > Some background info: > $ uname -mrs > FreeBSD 7.0-RELEASE-p5 i386 It would be useful if you could provide uname -a please, if you're concerned about the hostname, just XXX it out. Seeing the kernel build date is useful. > CFLAGS=-O2 -pipe > COPTFLAGS=-O2 -pipe > CPUTYPE=athlon-xp Please don't do this. Use ?= for this, not =. If you think I'm trolling, please read /usr/share/examples/etc/make.conf. > Since this started happening, I have still successfully updated ports > by csup'ing the ports tree. I can also still rebuild the world and > kernel without issue. This is a remote box, and I don't use X with > it. It almost sounds like a filesystem problem. You might consider booting into single-user and running fsck -y. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |