Dominik Zalewski
2007-Feb-01 09:41 UTC
portupgrade missing key: categories: Cannot read the portsdb!
Hi All, I've just updated my portstree and I'm trying to run portupgrade , which gives me following error: [root@silicon /usr/ports]# portupgrade -ai ---> Session started at: Thu, 01 Feb 2007 11:22:00 +0200 [missing key: categories] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 16413 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: Thu, 01 Feb 2007 11:22:06 +0200 (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 Cannot read the portsdb? [root@silicon /usr/ports]# ls -l /var/db/pkg/pkgdb.db -rw-r--r-- 1 root wheel 5272576 Feb 1 10:56 /var/db/pkg/pkgdb.db I also tried to delete pkgdb.db and recreate it using pkgdb -u , it didnt help. I'm running FreeBSD 6.1-RELEASE with portupgrade-2.2.2_1,2 Any ideas? Thank you in advance, Dominik
Dominik Zalewski
2007-Feb-01 09:56 UTC
portupgrade missing key: categories: Cannot read the portsdb! - SOLVED
On Thursday 01 February 2007 11:46:21 am Niclas Zeising wrote:>>This has been reported several times already, and I think it's solved >>in a more recent portupgrade. >>Have a look at this thread: >>http://lists.freebsd.org/pipermail/freebsd-ports/2007-January/038395.html >>And this commit to portupgrade: >>http://lists.freebsd.org/pipermail/cvs-ports/2007-February/117217.html >> >>HTH! >>//NiclasI upgrade to portupgrade-2.2.2_2,2 and it worked :) Thanks Niclas
Yann Golanski
2007-Feb-01 10:03 UTC
portupgrade missing key: categories: Cannot read the portsdb!
Quoth Dominik Zalewski on Thu, Feb 01, 2007 at 11:42:13 +0200> I've just updated my portstree and I'm trying to run portupgrade , > which gives me following error:I've had the same problem last night. Sadly, the machine is at home and I at work so I cannot do much more than say "me too". However, I am willing to try any patches this evening. -- yann@kierun.org -=*=- www.kierun.org PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070201/47a9b3b6/attachment.pgp
Niclas Zeising
2007-Feb-01 10:14 UTC
portupgrade missing key: categories: Cannot read the portsdb!
On 2/1/07, Dominik Zalewski <dzalewski@open-craft.com> wrote:> Hi All, > > I've just updated my portstree and I'm trying to run portupgrade , which gives > me following error: > > [root@silicon /usr/ports]# portupgrade -ai > ---> Session started at: Thu, 01 Feb 2007 11:22:00 +0200 > [missing key: categories] [Updating the portsdb <format:bdb_btree> > in /usr/ports ... - 16413 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: Thu, 01 Feb 2007 11:22:06 +0200 (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 > > > Cannot read the portsdb? > > [root@silicon /usr/ports]# ls -l /var/db/pkg/pkgdb.db > -rw-r--r-- 1 root wheel 5272576 Feb 1 10:56 /var/db/pkg/pkgdb.db > > I also tried to delete pkgdb.db and recreate it using pkgdb -u , it didnt > help. > > I'm running FreeBSD 6.1-RELEASE with portupgrade-2.2.2_1,2 > > Any ideas? > > Thank you in advance, > > DominikThis has been reported several times already, and I think it's solved in a more recent portupgrade. Have a look at this thread: http://lists.freebsd.org/pipermail/freebsd-ports/2007-January/038395.html And this commit to portupgrade: http://lists.freebsd.org/pipermail/cvs-ports/2007-February/117217.html HTH! //Niclas --
Simon Dick
2007-Feb-01 10:24 UTC
portupgrade missing key: categories: Cannot read the portsdb!
On Thu, 2007-02-01 at 11:42 +0200, Dominik Zalewski wrote:> Hi All, > > I've just updated my portstree and I'm trying to run portupgrade , which gives > me following error:I had the same this morning, try upgrading to the latest portupgrade which got it working for me