When attempting to upgrade vCenter Server, the process fails with an error message similar to:
[Errno 2] No such file or directory: '/storage/seat/software-update*/stage/update/patching_backup_config.json'
This error typically occurs during the staging phase of the upgrade process and prevents the upgrade from completing successfully.
- VMware vCenter Server 7.0 or newer
- Upgrading to a newer version
This error can occur due to several reasons:
1. A previous failed upgrade attempt left the system in an inconsistent state.
2. Corruption in the RPM database.
3. Issues with SSL certificates or trust.
4. Incorrect VMware Directory (vmdir) Domain Functional Level.
5. Insufficient storage space, particularly in the log partition.
6. Checksum mismatch in downloaded packages or ISO file.
Follow these steps to resolve the issue and successfully complete the vCenter upgrade:
Option #1
1. Unstage the update from vCenter server (refer to document below bullet point #3)..
2. Stage the update again.
3. Run the update.
Option #2 - if Option #1 does not work:
mkdir /storage/core/rpmdbBackup/
cd /var/lib/rpm
mv __db* /storage/core/rpmdbBackup/
rpm --rebuilddb
service-control --restart applmgmt
python /usr/lib/vmware-lookupsvc/tools/lsdoctor.py --stalefix
python /usr/lib/vmware-lookupsvc/tools/lsdoctor.py --trustfix
rm /etc/applmgmt/appliance/software_update_state.conf
service-control --restart applmgmt
sha256sum /path/to/vcsa-upgrade.iso
- Always take a snapshot or backup of the affected vCenter Server before attempting an upgrade or applying these fixes.
- For persistent issues, consult the following log files for more detailed error information:
- /var/log/vmware/applmgmt/update_microservice.log
- /var/log/vmware/applmgmt/software-packages.log
- For linked-mode vCenter Server environments, perform these steps on each vCenter Server in the topology, starting with the one that experienced the upgrade failure.