i have been trying to get portupgrade working, however everything i try to run it im getting an error with the portsdb. now i have tryed to rebuild it as requested initaly by portupgrade but im still getting an error portupgrade -aRr [missing key: categories] [Updating the portsdb <format:bdb_btree> in /var/tmp ... - 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! /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 any idea whats causeing the issue or how to fix it?
Phillip Ledger wrote:> i have been trying to get portupgrade working, however everything i try > to run it im getting an error with the portsdb. now i have tryed to > rebuild it as requested initaly by portupgrade but im still getting an > error > > portupgrade -aRr > [missing key: categories] [Updating the portsdb <format:bdb_btree> in > /var/tmp ... - 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! > /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 > > > any idea whats causeing the issue or how to fix it?Try removing /usr/ports/INDEX-6.db and running "portsdb -u", which should rebuild it from your existing /usr/ports/INDEX-6 file. (if you're using FreeBSD 5 it would be INDEX-5 above). -Proto
> On 2007-Mar-03 10:12:53 +1100, Phillip Ledger > <phillip@philderbeast.com> wrote: > >Even after a complete reinstall of the toll and rebuildig the > >database its still giving the same error. anyumore ideas? > > Exactly what have you re-installed? > What versions of ruby* and portupgrade do you have? > Have you compared your /usr/local/etc/pkgtools.conf with the sample > version?I have the exact same problem. I rebuilt INDEX-6, rebuilt INDEX-6.db and rebuilt portupgrade, to the latest version. I have ruby 1.8.4. I have published my pkgtools.conf to http://www.vistua.com/public/pkgtools.conf the only changes I made from default, was to ignore language categories I do not speak. And to instruct that packages only be used for Openoffice.
On Sun, 11 Mar 2007 10:06:23 -0500 Jonathan Carter <jonathan.carter@sitel.com> wrote:> Not sure if the issue was resolved but, I did find this link that > worked for me. > http://www.512kbps.com/2007/03/02/ports-portupgrade-af-failing%E2%80%A6/ > <http://www.512kbps.com/2007/03/02/ports-portupgrade-af-failing%E2%80%A6/>I also resolved the problem: Here's what I did, csup -h a-local-mirror.freebsd.org /etc/ports.supfile rm -rf /usr/ports/INDEX-6.DB rm -rf /usr/ports/INDEX-6 portsdb -F pkgdb -F portsdb -u I am aware that some steps are redundant, but it did fix the problem, I had to clear out a lot of stale dependencies with pkgdb, and had to deinstall Linux ABI (partially manually) and reinstall, as well as it's dependant packages, however, this resolved everything. The steps outlined above proved ineffective for me. --thanks, hope this helps other people.