Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

"Error in method invocation rpmdb open failed", error while upgrading vCenter Server Appliance 6.x/7.x (68103)

Last Updated: 7/20/2022Categories: TroubleshootingTotal Views: 13254Language:
English

16 like this article

Subscribe to get an email
newsletter with new updates

16 people found this helpful Please provide article feedback:

Symptoms

Upgrading vCenter Server Appliance fails with following error messages :

"Error in method invocation rpmdb open failed"
or
"Cannot open Packages database in /var/lib/rpm"

In a VMware Cloud Foundation (VCF) environment, SDDC Manager will show following error message for the vCenter Server patching failure

Failed to set the repository https://<fqdn>/vmware/vcf/bundle/<id>/<id>/update_repo during upgrade for vCenter <fqdn> due to exception 500 Internal Server Error: """"{""""type"""":""""com.vmware.vapi.std.errors.internal_server_error"""",""""value"""":{""""error_type"""":""""INTERNAL_SERVER_ERROR"""",""""messages"""":[{""""args"""":[""""rpmdb open failed""""],""""default_message"""":""""Error in method invocation rpmdb open failed"""",""""id"""":""""vapi.method.invoke.exception""""}]}}""""

Patch update from command line might show following error message :

error: db5 error(-30973) from dbenv->open: 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

Appliance Management log (/var/log/vmware/applmgmt.log) will show error messages similar to below entries :

2022-06-11T20:57:36.408 [3038]DEBUG:vmware.appliance.update.update_b2b:Listing completed successfully
2022-06-11T20:57:36.408 [3038]DEBUG:vmware.appliance.update.update_b2b:List returns []
2022-06-11T20:57:36.408 [3038]DEBUG:vmware.appliance.update.update_pending:Got exception during listing updates rpmdb open failed
2022-06-11T20:57:36.408 [3038]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.appliance.update.pending in list - rpmdb open failed
Traceback (most recent call last):
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 277, in invoke
service_id, operation_id, input_value, ctx)
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 248, in _invoke_int
File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 1526, in _discoverUpdateAt
installedPkgs = _getInstalledPackages()
File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 386, in _getInstalledPackages
matchIter = transactionSet.dbMatch()
_rpm.error: rpmdb open failed

Cause

This issue is caused due to corruption in RPM Database on vCenter Server Appliance.

Resolution

Please follow below steps to resolve this issue :

Take a snapshot of the vCenter Server Appliance.

Take SSH/Putty session to the vCenter Server Appliance

Run the command:

rm -f /var/lib/rpm/__db*

rpm -qa  [To Rebuild RPM database run this query]

Sample Screenshot:

Restart the vCenter Server Appliance.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
使用适用于 vCloud Availability 3.0 的内部部署 vSphere Client 插件时，无法为 vCloud Director 提供 userPrincipleName LDAP 凭据 (68100)

KB
•
VMware 设备中的 SUSE 11 (70426)

KB
•
特定のネットワークから Harbor にアクセスできない (70418)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vCenter Server Appliance

VMware vCenter Server

Related Versions:

VMware vCenter Server Appliance 6.7.x

VMware vCenter Server Appliance 6.5.x

VMware vCenter Server 7.0.x

Take Our Survey

Support Assistant