Multiple attempts to proceed with the vCSA patch have failed, displaying an error message similar to below :
"Resume attempted maximum number of times. Cannot resume patching anymore"
OR
Installation failed
"Resume attempted maximum number of times. Cannot resume patching anymore"
"You have reached maximum number of retries to resume the patching. Please restore the vCenter using the backup."
Additional symptoms:
<timestamp> - 112 - 2222652 - update_functions_target:: readJsonFile: 267 - ERROR - Can't read JSON file /storage/core/software-update/stage/stageDir.json [Errno 2] No such file or directory: '/storage/core/software-update/stage/stageDir.json
VMware vCenter Server 7.0
VMware vCenter Server 8.0
Too many failed attempts have been made to continue the patch, and no further attempts are allowed.
To work around this issue, follow the steps below:
Log in to your vCenter Appliance shell via SSH. Make sure your are in appliance shell to run steps 2-3. You will need to change to bash shell for steps 4-7.
Refer :Toggling the vCenter Server Appliance default shell
software-packages unstageservice-control --stop applmgmtrm -rf /storage/core/software-update/updates/*rm -rf /storage/core/software-update/stage/*rm -rf /storage/db/patching.dbmv /storage/core/software-packages/staged-configuration.json /storage/coremv /etc/applmgmt/appliance/software_update_state.conf /storage/coreservice-control --start applmgmtrebootPatching vCenter Server Appliance via CLI
To help understand why the patch is failing, please follow below: