From owner-freebsd-questions Tue Oct 8 4:56:42 2002 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 73BD537B401 for ; Tue, 8 Oct 2002 04:56:39 -0700 (PDT) Received: from knyghtmare.com (pc1-darl1-6-cust123.mid.cable.ntl.com [213.105.18.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8469543E6E for ; Tue, 8 Oct 2002 04:56:38 -0700 (PDT) (envelope-from knyghtmare@knyghtmare.com) Received: from knyghtmare (knyghtmare@knyghtmare [213.105.18.123]) by knyghtmare.com (8.12.3/8.12.3) with ESMTP id g98Buaw3035341; Tue, 8 Oct 2002 12:56:36 +0100 (BST) (envelope-from knyghtmare@knyghtmare.com) Subject: Re: portupgrade problem From: Tom Carrick To: Adam Weinberger Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20021008063525.GK81796@vectors.cx> References: <1034050523.370.13.camel@knyghtmare.com> <20021008063525.GK81796@vectors.cx> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-rsJsncI0v8WLwkaDtrs7" X-Mailer: Ximian Evolution 1.0.8 Date: 08 Oct 2002 12:56:36 +0100 Message-Id: <1034078196.370.16.camel@knyghtmare.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-rsJsncI0v8WLwkaDtrs7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable That worked great, thanks. Can you give me some explanation on why (and how) this happens, and in what way it messes up? On Tue, 2002-10-08 at 07:35, Adam Weinberger wrote: > try portsdb -fu. the switches are easy enough to remember ::P. > portupgrade dies from time to time, and that command can often get you > back in business. >=20 > -Adam >=20 >=20 > >> (10.07.2002 @ 2115 PST): Tom Carrick said, in 2.0K: << > > I was using portupgrade happily upgrading my ports, when it barfed in > > the middle of something. I don't remember exactly what, I think it coul= d > > have been links or libslang. I don't remember the exact error, only tha= t > > it had something to do with memory. So I assumed there just wasn't > > enough available. I checked with top, and I still had a good 50MB of RA= M > > available, and most of my swap space (500MB orso) free. > >=20 > > Fair enough. So I try to continue. It fails on the package upgrade. > > Trying to find out what fails, I tried pkgdb -u. Failed. Same error. I > > tried deleting portupgrade and installing it again, to no effect. > >=20 > > It invariably, depending on the phase of the moon, I suppose, gives one > > of two errors, either: > >=20 > > root@knyghtmare:/root# pkgdb -u > > [Updating the pkgdb in /var/db/pkg ... - 325 > > packages found (-3 +2) > > (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:435: [BUG] Segmentation > > fault > > ruby 1.6.7 (2002-09-12) [i386-freebsd4] > > Abort (core dumped) > >=20 > > or... > >=20 > > root@knyghtmare:/root# pkgdb -u > > [Updating the pkgdb in /var/db/pkg ... - 325 > > packages found (-3 +2) (...)Cannot allocate memory: Cannot update the > > pkgdb!] > >=20 > > I've tried rebooting. Doesn't seem to help, and it was working fine > > until it barfed on me. > >=20 > > I've tried deleting links and libslang, too, in case it messed the > > database somehow. That's still my best theory, though deleting them > > didn't help. > >=20 > > Anyone have any ideas? >=20 >=20 > >> end of "portupgrade problem" from Tom Carrick << >=20 >=20 > -- > "Oh good, my dog found the chainsaw." > -Lilo, "Lilo & Stitch" > Adam Weinberger > adam@vectors.cx >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 --=-rsJsncI0v8WLwkaDtrs7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQA9osfzRhxQpFRYpjsRAgRMAKDN9u4b6iay1D1sz3zEtXOw/hBZ3ACfcLP1 uoH2pfs4pmnCJIlCmock7yw= =GS1v -----END PGP SIGNATURE----- --=-rsJsncI0v8WLwkaDtrs7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message