From owner-freebsd-questions@FreeBSD.ORG Thu Feb 10 13:33:18 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 1CF2D106566B for ; Thu, 10 Feb 2011 13:33:18 +0000 (UTC) (envelope-from nr1c0re@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id E93A68FC08 for ; Thu, 10 Feb 2011 13:33:17 +0000 (UTC) Received: by pwi10 with SMTP id 10so381287pwi.13 for ; Thu, 10 Feb 2011 05:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Ac5i8mL0j7lxMyuwxOxnmphRZGZtAwQRgborrxIT0YI=; b=oiKqvffUGtpjndwP3VqcYThLSDs5ivJaIIv97wI6rfpKs1+VXgHikZbuthm9G3uoeT 2Lat8rAdycEp2sxHhAUQ9GSDXPH+wiHJ1wt6Ol0cXpYWOTHoU6TGZyO/gGO1cFEI6yvK N7gGvMbOaV8p7PVHtV8DU86BCnESKYCVevSNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=JwBLQUWF0zWH/BpA3vyqmj87Sk/DE4uqNJHO6ss5BErZBswlw9g3xdiDO3AygskNum nxWXUv0Hvyq3a22nZsCGdGXmjuOF0JJDGy/ncoIZKOScMdkwHyBdB+vjRt31fwZQMHJ8 zBKLXrw2NvkZZXs4PflkLVuWytJkBPJNDyVYY= MIME-Version: 1.0 Received: by 10.142.14.15 with SMTP id 15mr20233144wfn.356.1297344797285; Thu, 10 Feb 2011 05:33:17 -0800 (PST) Received: by 10.142.222.5 with HTTP; Thu, 10 Feb 2011 05:33:17 -0800 (PST) Date: Thu, 10 Feb 2011 16:33:17 +0300 Message-ID: From: c0re To: FreeBSD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: 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 13:33:18 -0000 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 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.........1= 6000.........17000.........18000.........19000.........20000.........21000.= ........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 error] 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!!!