Update of vCenter fails with "Stage path file doesn't exist" or "Package discrepency error, Cannot resume!"
book
Article ID: 318581
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
Symptoms:
The update from vCenter 7.0 Update 3 to vCenter 7.0 Update 3a fails.
Update fails when using ISO and via URL
The error seen when patching via CLI is:
Command> software-packages stage --url --acceptEulas [YYYY-MM-DD HH:MM:SS,356] : Discovering updates... [YYYY-MM-DD HH:MM:SS,534] : UpdateInfo: Using product version 7.0.3.00000 and build 18700403 [YYYY-MM-DD HH:MM:SS,534] : Target VCSA version = 7.0.3.00100 [YYYY-MM-DD HH:MM:SS,000] : Stage path file doesn't exist [YYYY-MM-DD HH:MM:SS,006] : Staging failed. Retry to resume from the current state. Or please collect the VC support bundle.
In the vCenter Appliance Management (VAMI) you will see:
"Package discrepency error, Cannot resume!"
Environment
VMware vCenter Server 7.0.x VMware vCenter Server 7.0.3
VMware vCenter Server 8.0x
Resolution
This issue is resolved in vCenter Server 7.0 Update 3c.
Workaround: To work around this issue, follow the steps below:
Log in to your vCenter Appliance via SSH.
Run following command:
software-packages unstage
Start the update process again.
Note:If the default shell was changed to /bin/bash, you can use /bin/appliancesh to enter the Appliance-Shell. Note: Please ensure you have a working backup before attempting to update your vCenter Appliance.
Fallback/Alternative: When unstage does not work, the patching.db can be manually reset. However the software-packages command should be preferred in the first place.
Important: Please make sure to have proper backup or offline snapshot before applying the below steps:
As confirmed by VMware Engineering team, this command also can be helpful in some scenarios, if it uses /storage/seat partition to store the software-update: # rm -rf /storage/seat/software-*