vCenter Update Failed at 94% with error "Installation of one or more RPMs failed"
search cancel

vCenter Update Failed at 94% with error "Installation of one or more RPMs failed"

book

Article ID: 345292

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

vCenter patching fails with error: "Installation of one or more RPMs failed"




Environment

 

 

Cause

Permission issue on the file /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp


/var/log/vmware/applmgmt/update_microservice.log
2024-03-13 06:56:41,311 - 7322 -            functions::      runInstallRpmTransaction:  94 -     INFO - Installing RPM [/storage/updatemgr/software-update9fa4kbno/stage/VMware-perfcharts-7.0.3.01800-12215188.x86_64.rpm]
2024-03-13 06:56:41,311 - 7322 -            functions::                    runCommand:  48 -    DEBUG - Invoking command [/bin/bash --login -c /bin/rpm -Uhv --nopre --nopost --nodeps --force '/storage/updatemgr/software-update9fa4kbno/stage/VMware-perfcharts-7.0.3.01800-12215188.x86_64.rpm']
2024-03-13 06:56:43,109 - 7322 -            functions::                    runCommand:  65 -    DEBUG - Process completed. Return code [1], stdout [Preparing...                          ######################################## Updating / installing... VMware-perfcharts-7.0.3.01800-12215188######################################## ], stderr [warning: /etc/vmware-perfcharts/perfcharts.properties created as /etc/vmware-perfcharts/perfcharts.properties.rpmnew warning: /usr/lib/vmware-perfcharts/tc-instance/conf/catalina.properties created as /usr/lib/vmware-perfcharts/tc-instance/conf/catalina.properties.rpmnew error: unpacking of archive failed on file /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp: cpio: rename failed - Operation not permitted error: VMware-perfcharts-7.0.3.01800-12215188.x86_64: install failed


To check the permission on the file throwing the error:

root@<vcname>[ ~ ]# ls -ltrh /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport
total 316K

-rw-r--r-- 1 root root 2.0K Apr 21 2021 error.jsp

Resolution

  1.  Take a snapshot of the vCenter.
  2.  SSH to the vCenter and run the below command to assign permission to the mentioned file.

    chmod 444 /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp

  3.  Retry to update the vCenter.