Reply to Message

View discussion in a popup

Replying to:
PiotrBerent
Contributor
Contributor

Yup, I've already tried that.

My situation is described here (kb adviced by VMWare Support): https://kb.vmware.com/s/article/89606

It is a step in right direction however…

I’ve copied first package which was missing:

Stat file, file missing. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/audit-2.8.5-19.ph3.x86_64.rpm

 

So i’ve revert snapshot, copied file to location from KB article, but next run was failed with another missing file:

Stat file, file missing. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/bash-4.4.18-3.ph3.x86_64.rpm

 

So, I’ve just check how mnay files are on cd, and how many are in /opt…. Update folder, but here it seems all files are there – and they are, I’ve checked

root@vrslcm [ ~ ]# ls /opt/vmware/var/lib/vami/update/data/package-pool/package-pool/ | wc -l

56

But I did check if the file is really missing, and it is not, file is there.

root@vrslcm [ ~ ]# ls -al /opt/vmware/var/lib/vami/update/data/package-pool/package-pool/bash-4.4.18-3.ph3.x86_64.rpm

-r-------- 1 root root 1038794 Oct 23 22:04 /opt/vmware/var/lib/vami/update/data/package-pool/package-pool/bash-4.4.18-3.ph3.x86_64.rpm

But I didn’t give up yet, and I was able to copy  those two packages (audit, and bash), and.. it turns out, that it doesnt help at all, since surpisingly, there was another missing package:

23/10/2022 22:34:14 [INFO] Using update pre-install script

23/10/2022 22:34:14 [DEBUG] Writing to file: pre_install

23/10/2022 22:34:14 [DEBUG] Running CheckPackageSet

23/10/2022 22:34:14 [DEBUG] Stat file, file exists. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/audit-2.8.5-19.ph3.x86_64.rpm

23/10/2022 22:34:14 [DEBUG] Stat file, file exists. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/bash-4.4.18-3.ph3.x86_64.rpm

23/10/2022 22:34:14 [DEBUG] Stat file, file missing. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/bindutils-9.16.33-1.ph3.x86_64.rpm

23/10/2022 22:34:14 [DEBUG] Download Cache Miss: /package-pool/bindutils-9.16.33-1.ph3.x86_64.rpm

23/10/2022 22:34:14 [ERROR] Unable to install updates because package files are missing.

It is a bit of madness here since earlier in the log I can find following:

23/10/2022 22:34:08 [DEBUG] Downloading file. name=audit

23/10/2022 22:34:08 [DEBUG] Opening local file named: /tmp/update_agent_cdrom_ZlJ788/update/package-pool/audit-2.8.5-19.ph3.x86_64.rpm

23/10/2022 22:34:08 [DEBUG] DownloadPackage success

23/10/2022 22:34:08 [DEBUG] Import file. [location,name]:  [/opt/vmware/var/lib/vami/update/data,/package-pool/package-pool/audit-2.8.5-19.ph3.x86_64.rpm]

23/10/2022 22:34:08 [DEBUG] Import successful. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/audit-2.8.5-19.ph3.x86_64.rpm

23/10/2022 22:34:08 [INFO] Updating package audit status in /opt/vmware/var/lib/vami/update/data/update_progress.json

23/10/2022 22:34:08 [INFO] Downloaded file. url=/package-pool/audit-2.8.5-19.ph3.x86_64.rpm

23/10/2022 22:34:08 [DEBUG] Downloading file. name=bash

23/10/2022 22:34:08 [DEBUG] Opening local file named: /tmp/update_agent_cdrom_ZlJ788/update/package-pool/bash-4.4.18-3.ph3.x86_64.rpm

23/10/2022 22:34:08 [DEBUG] DownloadPackage success

23/10/2022 22:34:08 [DEBUG] Import file. [location,name]:  [/opt/vmware/var/lib/vami/update/data,/package-pool/package-pool/bash-4.4.18-3.ph3.x86_64.rpm]

23/10/2022 22:34:08 [DEBUG] Import successful. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/bash-4.4.18-3.ph3.x86_64.rpm

23/10/2022 22:34:08 [INFO] Updating package bash status in /opt/vmware/var/lib/vami/update/data/update_progress.json

23/10/2022 22:34:08 [INFO] Downloaded file. url=/package-pool/bash-4.4.18-3.ph3.x86_64.rpm

23/10/2022 22:34:08 [DEBUG] Downloading file. name=bindutils

23/10/2022 22:34:08 [DEBUG] Opening local file named: /tmp/update_agent_cdrom_ZlJ788/update/package-pool/bindutils-9.16.33-1.ph3.x86_64.rpm

23/10/2022 22:34:08 [DEBUG] DownloadPackage success

23/10/2022 22:34:08 [DEBUG] Import file. [location,name]:  [/opt/vmware/var/lib/vami/update/data,/package-pool/package-pool/bindutils-9.16.33-1.ph3.x86_64.rpm]

23/10/2022 22:34:08 [DEBUG] Import successful. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/bindutils-9.16.33-1.ph3.x86_64.rpm

23/10/2022 22:34:08 [INFO] Updating package bindutils status in /opt/vmware/var/lib/vami/update/data/update_progress.json

23/10/2022 22:34:08 [INFO] Downloaded file. url=/package-pool/bindutils-9.16.33-1.ph3.x86_64.rpm

 

Anyway – I’ve tried to copy all packages (marked in log file – total 56 packages) to copy at once – but seems that it require just a perfect timing since during copy all files at once I’ve ended up with following error:

 

23/10/2022 23:16:23 [DEBUG] Import file. [location,name]:  [/opt/vmware/var/lib/vami/update/data,/package-pool/package-pool/linux-4.19.256-2.ph3.x86_64.rpm]

23/10/2022 23:16:23 [ERROR] Exception while saving file /opt/vmware/var/lib/vami/update/data/package-pool/package-pool/linux-4.19.256-2.ph3.x86_64.rpm: boost::filesystem::copy_file: File exists: "/tmp/vmware_update_download_ANfMqY", "/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/linux-4.19.256-2.ph3.x86_64.rpm"

23/10/2022 23:16:23 [ERROR] Failed to import file. filename=/opt/vmware/var/lib/vami/update/data/package-pool/package-pool/linux-4.19.256-2.ph3.x86_64.rpm

23/10/2022 23:16:23 [ERROR] Failed to write file. url=/package-pool/linux-4.19.256-2.ph3.x86_64.rpm

And here I’ve just give up. So, what is wrong there? Since for me it looks like the update script is poorly writen, or it has some bugs and errors.
Is there any command line tool to force that update? From the logs it looks like i have 2 seconds to fit in and copy all missing packages, which is just crazy. There is no way to copy all those packeges BEFORE upgrade process will start – because it thorws an error also.