Problem in Security advisor: Failed to check whether active services are up-to-date: “/usr/local/cpanel/bin/needs-restarting-cpanel” reported error

Elizabeta

Well-Known Member
Mar 21, 2018
281
37
78
Mostar
cPanel Access Level
Root Administrator
Hello,

I have a cPanel&WHM version 90.0.19 and now I see error in Security advisor:


Failed to determine if a reboot is necessary: An unknown error in the “Cpanel::Exception::ProcessFailed” package has occurred.
Failed to check whether active services are up-to-date: “/usr/local/cpanel/bin/needs-restarting-cpanel” reported error code “1” when it ended: error: rpmdb: BDB0113 Thread/process 5944/140403527645248 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 - (-30973) error: cannot open Packages database in /var/lib/rpm error: rpmdb: BDB0113 Thread/process 5944/140403527645248 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): File "/usr/local/cpanel/bin/needs-restarting-cpanel", line 310, in sys.exit(main(sys.argv)) File "/usr/local/cpanel/bin/needs-restarting-cpanel", line 187, in main my.conf.cache = True File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1079, in conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 349, in _getConfig startupconf = config.readStartupConfig(fn, root, releasever) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1115, in readStartupConfig startupconf.distroverpkg) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1260, in _getsysver raise Errors.YumBaseError("Error: " + str(e)) yum.Errors.YumBaseError: Error: rpmdb open failed
Failed to check whether running executables are up-to-date: An unknown error in the “Cpanel::Exception::ProcessFailed” package has occurred.


What does mean?

I am manually run this command.
/usr/bin/needs-restarting
error: rpmdb: BDB0113 Thread/process 5944/140403527645248 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
error: rpmdb: BDB0113 Thread/process 5944/140403527645248 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/needs-restarting", line 240, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/needs-restarting", line 143, in main
my.conf.cache = True
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1079, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 349, in _getConfig
startupconf = config.readStartupConfig(fn, root, releasever)
File "/usr/lib/python2.7/site-packages/yum/config.py", line 1115, in readStartupConfig
startupconf.distroverpkg)
File "/usr/lib/python2.7/site-packages/yum/config.py", line 1260, in _getsysver
raise Errors.YumBaseError("Error: " + str(e))
yum.Errors.YumBaseError: Error: rpmdb open failed

Best regards,
Elizabeta Krešo
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! It seems your operating system is experiencing RPM database corruption, so it's not able to detect if software has been installed which requires a reboot.

Can you go to WHM >> Rebuild RPM Database and use that tool to see if that will resolve the issue?
 
  • Like
Reactions: KJ