Archive for the tag 'failed'

SBDavid

Error: rpmdb open failed

Error: rpmdb open failed

Error: rpmdb open failed

The “rpmdb open failed” error message is mostly received when the rpm databases __db.00* located under /var/lib/rpm directory are corrupted. This results in a “error: cannot open Packages database” message while installation/updatation of a package via yum.

[/var/lib/rpm]# ls -l *db*
-rw-r–r– 1 root root 0 Jul 20 21:45 __db.000
-rw-r–r– 1 root root 24576 Aug 4 09:25 __db.001
-rw-r–r– 1 root root 1318912 Aug 4 09:25 __db.002
-rw-r–r– 1 root root 450560 Aug 4 09:25 __db.003

The common fix is to delete the rpm databases and run rebuilddb, like

yum clean all
rm -f /var/lib/rpm/__db*
rpm –rebuilddb
yum update

However, in case of a VPS, yum may still not work with rebuilding rpm database and you have to try create a /dev/urandom device. Login to your VPS and execute

rm /dev/urandom
mknod -m 644 /dev/urandom c 1 9

[/dev]# ls -ld urandom
cr–r–r– 1 root root 1, 9 Jul 19 10:27 urandom

To fix the problem permanently, login to Hardware Node and execute:

vzctl stop VEID
mknod –mode 644 /vz/private/VEID/fs/root/dev/urandom c 1 9
vzctl start VEID

defpackagemng failed: Access is denied.

If you are getting the following error when logging into Plesk control panel (Windows) :

DefPackageMng() constructor failed: defpackagemng failed: Access is denied. Error code 5) at CreateProcess ‘C:\WINDOWS\system32\cmd.exe /c “”C:\Plesk\admin\bin\defpackagemng.exe” –get”‘
at execUtil C:\Plesk\admin\bin\defpackagemng.exe –get on C:\Plesk\admin(PleskSrvClient::execUtil line 420)at execute console command –get(vconsoleapp::start line 128)
at execute C:\Plesk\/admin/bin/defpackagemng –get(vconsoleapp::run line 138)

Solution:

This error occurs when Plesk Control Panel service Apache can’t access to C:\Windows\System32\cmd.exe. This may happen when administrator manually changes permissions on file system. User SERVICE should have Read+Execute; Read on the file.

>> The following permissions should be set on ‘cmd.exe’ to make server work properly:

Administrators - Full Control
System - Full Control
Service - Read+Execute; Read
Interactive - Read+Execute; Read

Restart the plesk service. Try login again.