From owner-freebsd-ports@FreeBSD.ORG Wed Jan 31 21:46:09 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9364B16A401 for ; Wed, 31 Jan 2007 21:46:09 +0000 (UTC) (envelope-from dthomas53@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 557ED13C4B4 for ; Wed, 31 Jan 2007 21:46:09 +0000 (UTC) (envelope-from dthomas53@gmail.com) Received: by py-out-1112.google.com with SMTP id f47so168753pye for ; Wed, 31 Jan 2007 13:46:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=gwSpgDP5T4YTc1EYLBoFMe6lnxdg/b73t7FKynyzz0EKxtYG2v3rfZsahEBajn2eGRjhOlszYM7wPQUgMlRYcUCMCk2FLLiKlg3o4ZKcrbNf9n5ZpuKpbbJYgSEwlwLTA2AStMJPuAqhGO9F6juYO57CWq107bGdBaq7WRYF92U= Received: by 10.35.57.5 with SMTP id j5mr2486842pyk.1170278351169; Wed, 31 Jan 2007 13:19:11 -0800 (PST) Received: by 10.35.113.13 with HTTP; Wed, 31 Jan 2007 13:19:11 -0800 (PST) Message-ID: Date: Wed, 31 Jan 2007 16:19:11 -0500 From: "David Stanford" To: "Bartosz Fabianowski" In-Reply-To: <45C0BA33.6000407@chillt.de> MIME-Version: 1.0 References: <45C0BA33.6000407@chillt.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ports@freebsd.org Subject: Re: portupgrade-2.2.2_1,2 corrupts portsdb X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 21:46:09 -0000 On 1/31/07, Bartosz Fabianowski wrote: > > Hi all > > As part of the daily portupgrade run on my 6-STABLE box, I upgraded > sysutils/portupgrade to version 2.2.2_1,2 yesterday. Today, when I tried > running this version, I got the following error message: > > %portupgrade -ai > ---> Session started at: Wed, 31 Jan 2007 15:44:44 +0000 > [missing key: categories] [Updating the portsdb in > /usr/ports ... - 15487 port entries found > > .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.... > ..... done] > missing key: categories: Cannot read the portsdb! > ---> Session ended at: Wed, 31 Jan 2007 15:44:50 +0000 (consumed > 00:00:05) > /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database > file error (PortsDB::DBError) > from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port' > from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in > `all_depends_list' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in > `tsort_build' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in > `tsort_build' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in > `sort_build' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in > `sort_build!' > from /usr/local/sbin/portupgrade:721:in `main' > from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize' > from /usr/local/sbin/portupgrade:220:in `new' > from /usr/local/sbin/portupgrade:220:in `main' > from /usr/local/sbin/portupgrade:2084 > > Apparently, the portsdb database is corrupted somehow, gets rebuilt but > is still not acceptable. According to the error message, a key named > "categories" seems to be missing from some table. Has anyone else > experience this? Is there a workaround or a fix? > I too am having the same issue, though I had thought it was because I accidentily interrupted (Ctrl-C) portsdb from updating. However, even when running 'portsdb -FUu', or even removing all of /usr/ports and retrieving the tree again I still see the same error: [root@chadwick ~]# portupgrade -airR ---> Session started at: Wed, 31 Jan 2007 16:01:28 -0500 [missing key: categories] [Updating the portsdb in /usr/ports ... - 16411 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.... ..... done] missing key: categories: Cannot read the portsdb! ---> Session ended at: Wed, 31 Jan 2007 16:01:39 -0500 (consumed 00:00:11) /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database file error (PortsDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port' from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in `all_depends_list' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!' from /usr/local/sbin/portupgrade:721:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize' from /usr/local/sbin/portupgrade:220:in `new' from /usr/local/sbin/portupgrade:220:in `main' from /usr/local/sbin/portupgrade:2084 -David -- [root@fbsd ~]# fortune Happiness is just an illusion, filled with sadness and confusion.