error: no dbpath has been set
I’ve recently been having trouble with a OpenVZ VPS upgraded from CentOS4 to CentOS5, here’s what I’m seeing when trying to rum a yum install of mod_python:
[root@coffee ~]# yum install mod_pythonLoaded plugins: fastestmirrorerror: no dbpath has been seterror: cannot open Packages database in /%{_dbpath}Traceback (most recent call last):File “/usr/bin/yum”, line 29, in ?yummain.user_main(sys.argv[1:], exit_code=True)File “/usr/share/yum-cli/yummain.py”, line 309, in user_mainerrcode = main(args)File “/usr/share/yum-cli/yummain.py”, line 157, in mainbase.getOptionsConfig(args)File “/usr/share/yum-cli/cli.py”, line 187, in getOptionsConfigself.confFile “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 664, in <lambda>conf = property(fget=lambda self: self._getConfig(),File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 239, in _getConfigself._conf = config.readMainConfig(startupconf)File “/usr/lib/python2.4/site-packages/yum/config.py”, line 804, in readMainConfigyumvars[‘releasever’] = _getsysver(startupconf.installroot, startupconf.distroverpkg)File “/usr/lib/python2.4/site-packages/yum/config.py”, line 877, in _getsysveridx = ts.dbMatch(‘provides’, distroverpkg)TypeError: rpmdb open failed
Here’s how to fix it:
[root@coffee ~]# rm /dev/urandomrm: remove regular file `/dev/urandom’? y[root@coffee ~]# mknod -m 644 /dev/urandom c 1 9
Nothing else seems to work, but this does indeed seem to solve the problem.
Perhaps I’ll finally get Trac installed…
Warning: Declaration of Social_Walker_Comment::start_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::start_lvl(&$output, $depth = 0, $args = Array) in /Users/wade/Sites/hm2k.org/wp-content/plugins/social/lib/social/walker/comment.php on line 18
Warning: Declaration of Social_Walker_Comment::end_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::end_lvl(&$output, $depth = 0, $args = Array) in /Users/wade/Sites/hm2k.org/wp-content/plugins/social/lib/social/walker/comment.php on line 42
This seemed to solve the problem when you receive the “TypeError: rpmdb open failed” error on a yum install.
If you’re trying to setup Trac on CentOS5 you might find this useful:
http://hm2k.googlecode.com/svn/trunk/code/shell/setup_trac.sh