From owner-freebsd-questions@FreeBSD.ORG Thu Feb 10 17:07:03 2011 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 786811065670 for ; Thu, 10 Feb 2011 17:07:03 +0000 (UTC) (envelope-from dan@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc2-cmbg14-2-0-cust883.5-4.cable.virginmedia.com [86.26.3.116]) by mx1.freebsd.org (Postfix) with ESMTP id 35C7B8FC08 for ; Thu, 10 Feb 2011 17:07:02 +0000 (UTC) Received: from dan by catflap.slightlystrange.org with local (Exim 4.73 (FreeBSD)) (envelope-from ) id 1PnZyv-000GT9-RE for freebsd-questions@freebsd.org; Thu, 10 Feb 2011 17:07:01 +0000 Date: Thu, 10 Feb 2011 17:07:01 +0000 From: Daniel Bye To: FreeBSD Message-ID: <20110210170701.GA90703@catflap.slightlystrange.org> Mail-Followup-To: FreeBSD References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 8.2-PRERELEASE amd64 Sender: Daniel Bye Subject: Re: Portupgrade and "Updating the portsdb" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2011 17:07:03 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 10, 2011 at 04:33:17PM +0300, c0re wrote: > Hello all! >=20 > I've got set of servers that uses NFS mounted /usr/ports. When I use > "portupgrade samba" on 1st server it says > [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid > argument] [Updating the portsdb in /usr/ports ... - > 22601 port entries found error] Remove and try again. > [Updating the portsdb in /usr/ports ... - 22601 port > entries found .........1000.........2000.........3000.........4000.......= ..5000.........6000.........7000.........8000.........9000.........10000...= ......11000.........12000.........13000.........14000.........15000........= .16000.........17000.........18000.........19000.........20000.........2100= 0.........22000...... > ..... done] >=20 > Okay. It took 10-15 mins to rebuild. >=20 > Then I say "portupgrade samba" on 2nd server it says again > [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid > argument] [Updating the portsdb in /usr/ports ... - > 22601 port entries found error] Remove and try again. > and rebuild portsdb. >=20 > Why is it so? >=20 > Ports are updated via "portsnap fetch update". >=20 > /etc/portsnap.conf has > INDEX INDEX-5 DESCRIBE.5 > INDEX INDEX-6 DESCRIBE.6 > INDEX INDEX-7 DESCRIBE.7 > INDEX INDEX-8 DESCRIBE.8 >=20 > So while portupgrade rebuilds portsdb it's not possible use > portupgrade on 2nd server because later build process will fail on 1st > or second server. >=20 > What can I do with it? Why portupgrade always thinks that > [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid > argument]? Are you using the same versions of ruby, portupgrade, ruby-bdb and bdb on both machines? Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk1UGzUACgkQixf5fBYiFmpUsQCgj8skVpzG1uf2gLc2dAB/1Vjr RCgAoIzd3PvMr6UpgtsECHEVhvOIMrsq =LPvU -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--