When attempting to patch or update to vCenter Server 8.0 Update 3, the upgrade process may fail. Upon reviewing the /var/log/vmware/applmgmt/patchrunner.log file, you observe an error message similar to the following indicating that a directory path already exists:
Destination path '/storage/analytics/stage/XXXXXX_processed_logs' already exists
VMware vCenter Server 8.0 Update 3
Starting with vCenter Server 8.0 Update 3, the analytics service stores telemetry log files in a new directory. In rare circumstances—specifically, if previous update attempts had failed and were subsequently reverted—the attempt to copy the telemetry log files to their new location fails. This occurs because the destination files or directories were left behind from the prior, failed patching attempt.
To resolve this issue and successfully complete the update, clear the leftover analytics stage and prod files from the VCSA appliance before retrying the patch.
Steps to resolve:
Connect to the vCenter Server Appliance (VCSA) via SSH and log in as the root user.
Enable the Bash shell (if not already enabled) by typing shell.
Run the following commands to delete all files and subdirectories under the affected analytics directories:
rm -rf /storage/log/vmware/analytics/stage/*
rm -rf /storage/log/vmware/analytics/prod/*
rm -rf /storage/analytics/stage/*
rm -rf /storage/analytics/prod/*