vCenter patch failed on setting permissions for folder /storage/archive/vpostgres
search cancel

vCenter patch failed on setting permissions for folder /storage/archive/vpostgres

book

Article ID: 403331

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

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)

Environment

vCenter 7.x

 

Cause

This can happen if the folder /storage/archive/vpostgres doesnt exist and vCenter is unable to run chown as a result.

Resolution

- 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 )

Additional Information

If the folder exists, but the issue persists. Raise a case with VMware/Broadcom Support.