FreeBSD portupgrade missing key: categories: Cannot read the portsdb! SOLUTION!!!
No commentswhen the error is like this:
# portupgrade phpMyAdmin
[missing key: categories] [Updating the portsdb
in /usr/ports ... - 20687 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000...... ..... done]
missing key: categories: Cannot read the portsdb!
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:567:in `open_db’: database file error (PortsDB::DBError)
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:736:in `port’
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:924:in `all_depends_list’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `tsort_build’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build’
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in `sort_build!’
from /usr/local/sbin/portupgrade:694:in `main’
from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize’
from /usr/local/sbin/portupgrade:210:in `new’
from [...]
LibClamAV Error: Can’t load /var/db/clamav/main.cvd: MD5 verification error - SOLUTION!!!
No commentsThe Problem:
ClamAV, refuse to start with error:
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Error: Can’t load /var/db/clamav/main.cvd: MD5 verification error
ERROR: MD5 verification error
Solution:
1. first do update on clamav package
smtp# portupgrade clamav
—> Upgrading ‘clamav-0.94.2′ [...]
FreeBSD jail, console php: shmget() failed - SOLUTION
No commentsThe Error: shmget() failed: Function not implemented
This is in the fbsd jail with php console execution.
Fix:
1. Get out of the jail
2. run sysctl -w security.jail.sysvipc_allowed=1