vCenter patching fails with error: "Installation of one or more RPMs failed"
VMware vCenter Server 7.0.x
VMware vCenter Server 8.0.x
Permission issue on the file /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp
/var/log/vmware/applmgmt/update_microservice.log[YYYY-MM-DDTHH:MM:SS] - 7322 - functions:: runInstallRpmTransaction: 94 - INFO - Installing RPM [/storage/updatemgr/software-update9fa4kbno/stage/VMware-perfcharts-7.0.3.01800-12215188.x86_64.rpm]
[YYYY-MM-DDTHH:MM:SS] - 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']
[YYYY-MM-DDTHH:MM:SS] - 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/statsreporttotal 316K-rw-r--r-- 1 root root 2.0K Apr 21 2021 error.jsp
chmod 444 /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/error.jsp