12/09/2022 09:39:20 [INFO] Using update pre-install script
12/09/2022 09:39:20 [ERROR] Unable to install updates because package files are missing
The VMware Aria Suite Lifecycle 8.x upgrade process fails to capture the required binary files from the upgrade source. Both online and CD-ROM upgrade source methods are impacted.
sed -i 's/info/debug/g' /opt/vmware/etc/vami/vami.xml
tail -f /opt/vmware/var/log/vami/vami.log
In debug mode, the missing packages will be listed. Record this information for use in later steps. See below for an example of a missing package
14/09/2022 10:42:34 [DEBUG] Stat file, file missing. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/audit-2.8.5-17.ph3.x86_64.rpm
As a first step check for the existence of a stale upgrade status file.
vami.log will show below
27/10/2022 11:17:15 [DEBUG] Lock file 1
27/10/2022 11:17:15 [DEBUG] status file /opt/vmware/var/lib/vami/update/data/job/2/status
27/10/2022 11:17:15 [DEBUG] cli failed
27/10/2022 11:17:15 [DEBUG] cache path is/opt/vmware/var/lib/vami/update/data
27/10/2022 11:17:15 [DEBUG] No next version exists
27/10/2022 11:17:15 [DEBUG] No next version exists
27/10/2022 11:17:15 [DEBUG] Setting download cache location: /opt/vmware/var/lib/vami/update/data
27/10/2022 11:17:15 [DEBUG] Disabling old download cache location:
27/10/2022 11:17:15 [DEBUG] Done setting download cache location
27/10/2022 11:17:15 [DEBUG] skipClearDownloadCache =
27/10/2022 11:17:15 [DEBUG] Clear Download Cache. path=/opt/vmware/var/lib/vami/update/data
and upgrade again fails with below error:
12/09/2022 09:39:20 [ERROR] Unable to install updates because package files are missing
Take the erroneous job ID from above snippet and go to that folder and check contents of status file.
less /opt/vmware/var/lib/vami/update/data/job/2/status
If status value is "2", delete the folder (in this case, folder 2 so /opt/vmware/var/lib/vami/update/data/job/2/) and retry upgrade. The job ID may be different.
If there is no stale upgrade flag set, proceed with steps below to manually copy packages.
mkdir /data/packages
sed -i 's/info/debug/g' /opt/vmware/etc/vami/vami.xml
cp -a /data/packages/. /opt/vmware/var/lib/vami/update/data/package-pool/package-pool/
tail -f /opt/vmware/var/log/vami/vami.log
sed -i 's/debug/info/g' /opt/vmware/etc/vami/vami.xml