From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 14:24:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3593C16A451 for ; Thu, 21 Jul 2005 14:24:23 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B95E643DA2 for ; Thu, 21 Jul 2005 14:24:05 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 4375 invoked from network); 21 Jul 2005 14:24:03 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Jul 2005 14:24:02 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id A1FB438; Thu, 21 Jul 2005 10:24:01 -0400 (EDT) Sender: lowell@be-well.ilk.org To: "Chris" References: <200507201157470490.0B2B7723@coolarrow.com> From: Lowell Gilbert Date: 21 Jul 2005 10:24:01 -0400 In-Reply-To: <200507201157470490.0B2B7723@coolarrow.com> Message-ID: <4464v4jkzi.fsf@be-well.ilk.org> Lines: 53 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Server mysteriously locking up 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, 21 Jul 2005 14:24:24 -0000 "Chris" writes: > Yesterday and today (within minutes after midnight) my 5.2.1 server locked up... meaning that I cannot SSH into it, or ping it, etc, but it is still running. This has never happened before in the past 1.5 years, and I cannot think of any changes made (other than web page edits) that have taken place in the past few days. The only other exception might have been a 1 or 2 portupgrades, but I don't think there were any that day. Further, there is very little in the logs that seems to help me in any way. > > For yesterday's lockup, /var/log/messages had these few entries right about the time it happened: > > Jul 19 00:01:17 server handle_workitem_freeblocks: block count > Jul 19 00:01:24 server handle_workitem_freeblocks: block count > Jul 19 00:07:38 server handle_workitem_freeblocks: block count > > > Jul 19 21:45:31 (syslog entry) is the last entry before this last lockup > > I did, however, get a cron job email at midnight: > > Jul 20 00:00:01 - newsyslog: can't notify daemon, pid 666: No such process > newsyslog: log /var/log/maillog.0 not compressed because daemon(s) not notified > > > I did find a ruby18.core file in my root directory, and now notice that things like portupgrade, portsdb, and pkg_version spew a bunch of errors (they depend on ruby?) So I visit /usr/ports/lang/ruby18 to re-install the port, and I get: > > server# make > "/usr/ports/Mk/bsd.port.mk", line 1: Malformed conditional (${_TMLINKS:M/usr/local*}x != x) > "/usr/ports/Mk/bsd.port.mk", line 4: Malformed conditional (${_TMLINKS:N/usr/local*}x != x) > "/usr/ports/Mk/bsd.port.mk", line 5: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 5: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 6: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 6: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 7: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 7: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 9: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 9: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 4860: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 4860: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 4865: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 4865: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 4866: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 4866: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 4875: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 4875: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 4877: warning: duplicate script for target ".if" ignored > "/usr/ports/Mk/bsd.port.mk", line 4877: warning: duplicate script for target "x" ignored > "/usr/ports/Mk/bsd.port.mk", line 4879: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 4879: Need an operator > "/usr/ports/Mk/bsd.port.mk", line 5234: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 5234: Need an operator > make: fatal errors encountered -- cannot continue > > Well, I'm stuck ... Unfortunately, I would guess that you have suffered some disk corruption. Would it be possible for you to just update the system? After all, 5.2.1 wasn't suggested for production use anyway...