Symptoms:
> Log snip from - /var/log/vmware/applmgmt/PatchRunner.log
2022-09-28T07:03:29.641Z Running command: ['chown', '-R', 'vpostgres:vpgmongrp', '/storage/archive/vpostgres']
...
stderr: 2022-09-28T07:03:29.677Z Error while updating the permission of archive directory.
2022-09-28 07:03:29,710.710Z vpostgres:Patch ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'vpostgres:Patch' failed.
Traceback (most recent call last):
File "/storage/updatemgr/software-updateexymxnuy/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor.py", line 74, in executeHook
executionResult = systemExtension(args)
File "/storage/updatemgr/software-updateexymxnuy/stage/scripts/patches/libs/sdk/extensions.py", line 106, in __call__
result = self.extension(*args)
File "/storage/updatemgr/software-updateexymxnuy/stage/scripts/patches/libs/sdk/extensions.py", line 123, in _func
return func(*args)
File "/storage/updatemgr/software-updateexymxnuy/stage/scripts/patches/payload/components-script/vpostgres/__init__.py", line 183, in patch
'PostgreSQL failed to run upgrade command.')))
patch_errors.UserError: PostgreSQL failed to run upgrade command.
> This error may appear in the VAMI upgrade page:
There is not enough space on the disk(s)
vCenter 7.x
This can happen if the folder /storage/archive/vpostgres doesnt exist and vCenter is unable to run chown as a result.
- Revert to the snapshot before the upgrade
- Create the missing folder using command: mkdir /storage/archive/vpostgres
- Initiate upgrade from vCenter: (Since the folder object exists, it can now run chown on the above folder to create the permissions as needed to complete the upgrade )
If the folder exists, but the issue persists. Raise a case with VMware/Broadcom Support.