From owner-freebsd-questions@FreeBSD.ORG Thu Feb 10 17:29:32 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 3868B1065673 for ; Thu, 10 Feb 2011 17:29:32 +0000 (UTC) (envelope-from sathler90@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id C00B68FC08 for ; Thu, 10 Feb 2011 17:29:31 +0000 (UTC) Received: by eyf6 with SMTP id 6so916158eyf.13 for ; Thu, 10 Feb 2011 09:29:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XlLFH6yuRTBhGDzDTn9msyLtlfCd8a+JY4WdF//x4tA=; b=Y/0fEJSXHYeJAh1LUxPgpaKl535TKRFIDBvHWGDrTbMYRNuvSo4rGQGBL88V+uexV9 cw9BLqB2FTGdb36aFX9YMLFiHGheKq/Aa788SnxA/Y6d5WFUOqHKZWnYKgKcLRIAVA8p uPNXGGRf74yAvOLQD0H8+uiK8vlGTBaFmAr3E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=bYyKnS9Y6ksT09dXKCk617K45BM4SOmjrZFgC5US3iYcX33E5JqAi+41a7R2t1sDaJ +pbGrxoRoH7NtsbXrYBqF9LjgvsBFqTUleMxU/X+f3QoWp1FjQ/9KRL9X82N06iVzC2H QFoQf8BhiaQflvMFdrLfLZAPSbYglTQiIguWE= MIME-Version: 1.0 Received: by 10.204.98.65 with SMTP id p1mr21249534bkn.198.1297357226598; Thu, 10 Feb 2011 09:00:26 -0800 (PST) Received: by 10.204.55.205 with HTTP; Thu, 10 Feb 2011 09:00:26 -0800 (PST) In-Reply-To: References: Date: Thu, 10 Feb 2011 15:00:26 -0200 Message-ID: From: Eduardo To: c0re Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Subject: Re: Portupgrade and "Updating the portsdb" 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, 10 Feb 2011 17:29:32 -0000 Try to move these files out of the way (all INDEX files and pkgdb.db) /usr/ports/INDEX-* /var/db/pkg/pkgdb.db and run (it will take a while) portsdb -Uu as another option you can remove the files above and reinstall ruby and ruby-bdb on those servers. Are you running on version 7 or 8 ? are you mounting the NFS rw ? On Thu, Feb 10, 2011 at 11:33 AM, c0re wrote: > Hello all! > > 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 =A0error] 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] > > Okay. It took 10-15 mins to rebuild. > > 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 =A0error] Remove and try again. > and rebuild portsdb. > > Why is it so? > > Ports are updated via "portsnap fetch update". > > /etc/portsnap.conf has > INDEX INDEX-5 DESCRIBE.5 > INDEX INDEX-6 DESCRIBE.6 > INDEX INDEX-7 DESCRIBE.7 > INDEX INDEX-8 DESCRIBE.8 > > 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. > > What can I do with it? Why portupgrade always thinks that > [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid > argument]? > > Thanks!!! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >