Exception occured in postInstallHook
Running: su -s /bin/bash vpostgres -c cd /var/log/vmware/vpostgres/upgrade && /opt/vmware/vpostgres/12/bin/pg_upgrade -U postgres -B /opt/vmware/vpostgres/12/bin -b /opt/vmware/vpostgres/12/../11/bin -D /storage/db/vpostgres.12 -d /storage/db/vpostgres --check
Running command: ['su', '-s', '/bin/bash', 'vpostgres', '-c', 'cd /var/log/vmware/vpostgres/upgrade && /opt/vmware/vpostgres/12/bin/pg_upgrade -U postgres -B /opt/vmware/vpostgres/12/bin -b /opt/vmware/vpostgres/12/../11/bin -D /storage/db/vpostgres.12 -d /storage/db/vpostgres --check']
Done running command
, stderr: pg_upgrade --check returned error code 1 with error out Performing Consistency Checks
-----------------------------
Checking cluster versions ok
Checking database user is the install user ok
Checking database connection settings ok
Checking for prepared transactions ok
Checking for reg* data types in user tables ok
Checking for contrib/isn with bigint-passing mismatch ok
Checking for tables WITH OIDS ok
Checking for invalid "sql_identifier" user columns ok
Checking for presence of required libraries fatal
Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt
Failure, exiting
.
vpostgres:Patch ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'vpostgres:Patch' failed.
Traceback (most recent call last):
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor.py", line 74, in executeHook
executionResult = systemExtension(args)
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/libs/sdk/extensions.py", line 106, in __call__
result = self.extension(*args)
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/libs/sdk/extensions.py", line 123, in _func
return func(*args)
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/payload/components-script/vpostgres/__init__.py", line 189, in patch
'PostgreSQL failed to run upgrade command.')))
patch_errors.UserError: PostgreSQL failed to run upgrade command.
ERROR vmware_b2b.patching.phases.patcher Patch hook Patch got ComponentWrapperError.
Traceback (most recent call last):
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 199, in patch
_patchComponents(ctx, userData, statusAggregator.reportingQueue)
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 86, in _patchComponents
executeComponentHook(Hook.Patch, ctx, c, userData, reportingQueue)
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/py/vmware_b2b/patching/executor/execution_facade.py", line 98, in executeComponentHook
reportQueue, identifier, expectedResultType)
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/py/vmware_b2b/patching/executor/execution_facade.py", line 53, in executeHook
result = executor.executeHook(scriptFile, hook, args, reportQueue, reportIdentifier)
File "/storage/seat/software-updatewpo_1lzb/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor_process.py", line 119, in executeHook
raise ex
patch_errors.ComponentError
WARNING root stopping status aggregation...
ERROR __main__ Patch vCSA failed
$cat loadable_libraries.txt
could not load library "$libdir/amcheck_next": ERROR: could not access file "$libdir/amcheck_next": No such file or directory
Database: VCDB
firstbootInfrastructure.log :
firstbootInfrastructure [Failed] /usr/lib/vmware-vpostgres/firstboot/vpostgres-firstboot.py is complete
INFO firstbootInfrastructure No localized error detail found in /var/log/firstboot/vpostgres-firstboot.py_38958_stderr.log, assuming internal error
WARNING firstbootInfrastructure Bug component info file does not exist
INFO firstbootInfrastructure Firstboot duration: 68 sec
INFO firstbootInfrastructure First boot is a failure
ERROR firstbootInfrastructure Installation of vCenter server failed with firstboot scripts
WARNING firstbootInfrastructure stopping status aggregation...
vpostgres-firstboot.py_xxxxx_stderr.log :
Upgrade import step failed
vPostgres firstboot(action=firstboot) failed
vcdb_import.err :
psql.bin:/storage/seat/cis-export-folder/vcdb/VCDB_schema.dump:100: ERROR: could not open extension control file "/opt/vmware/vpostgres/12/share/extension/amcheck_next.control": No such file or directory
psql.bin:/storage/seat/cis-export-folder/vcdb/VCDB_schema.dump:107: ERROR: extension "amcheck_next" does not exist
postgresql-xx.log :
VCDB postgres ERROR: could not open extension control file "/opt/vmware/vpostgres/12/share/extension/amcheck_next.control": No such file or directory
VCDB postgres STATEMENT: CREATE EXTENSION IF NOT EXISTS amcheck_next WITH SCHEMA vc;
VCDB postgres ERROR: extension "amcheck_next" does not exist
VCDB postgres STATEMENT: COMMENT ON EXTENSION amcheck_next IS 'functions for verifying relation integrity';
LOG: Updating instance status...
To resolve the issue, remove the amcheck_next extension from vCenter Database
/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB
select * from pg_extension;
drop extension amcheck_next;