portupgrade and pkgdb suddenly stopped working on my file server here. This is what happens:
I checked the portsdb.rb file against an older snapshot, but the file is unchanged. FILE]portsdb.rb[/FILE] is a script file, I only see where it fails (line numbers) but I don't understand what if fails on and why. As I do not know much about ruby, this is were I am stucḱ.
What did not help:
Please note that portmaster works.
I would highly appreciate any ideas, hints, tips, questions etc
Code:
root@storezilla2:/ # portupgrade -ai
/usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:118:in `block (2 levels) in fill': MOVED file format error (PortsDB::MOVEDError)
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:112:in `each'
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:112:in `block in fill'
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:111:in `open'
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:111:in `fill'
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:106:in `initialize'
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:181:in `new'
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/portsdb.rb:181:in `setup'
from /usr/local/lib/ruby/site_ruby/2.4/pkgtools/pkgtools.rb:242:in `init_pkgtools_global'
from /usr/local/sbin/portupgrade:531:in `block in main'
from /usr/local/lib/ruby/2.4/optparse.rb:1062:in `initialize'
from /usr/local/sbin/portupgrade:238:in `new'
from /usr/local/sbin/portupgrade:238:in `main'
from /usr/local/sbin/portupgrade:2380:in `<main>'
root@storezilla2:/ # pkgdb -F
MOVED file format error
I checked the portsdb.rb file against an older snapshot, but the file is unchanged. FILE]portsdb.rb[/FILE] is a script file, I only see where it fails (line numbers) but I don't understand what if fails on and why. As I do not know much about ruby, this is were I am stucḱ.
What did not help:
- reinstalling portupgrade, ruby or dependencies
- Fetching a fresh ports tree
- No information in log files or dmesg
Please note that portmaster works.
I would highly appreciate any ideas, hints, tips, questions etc