I'm receiving the following error when I attempt to upgrade from vCenter 6.0 Update 2 to the vCenter 6.5. This is an appliance to appliance upgrade. I receive an error in Step 2 of the migration ("Set up target vCenter Server and start services". It get's to 62% with the error "A problem occurred while - Starting VMware vCenter Server...".
Anyone know how to resolve this one?
The message is as follows:
VMware VirtualCenter failed firstboot.
Database in-place upgrade failed. Please see vcdb_inplace.err and vcdb_inplace.out for details.
Resolution
Please refer to vSphere documentation to troubleshoot or Please contact VMware Support.
Here's the copy of the vcdb_inplace.err log:
Error while executing ./Upgrade-v2015-to-v2016/postgresql/upgrade_PostgreSQL.sql:2374, reason: Cannot execute statement(rc=-1).
DO $$
DECLARE r RECORD;
DECLARE sql_stmt VARCHAR;
BEGIN
ALTER TABLE VPX_USAGE_STAT SET WITHOUT CLUSTER;
EXCEPTION WHEN OTHERS THEN
NULL;
END$$;
DO $$
DECLARE l_sn_vdevice_backing_seq int;
DECLARE l_vdevice_backing_seq int;
DECLARE sql_stmt VARCHAR;
BEGIN
SELECT COALESCE(MAX(backing_id), 0)
INTO l_sn_vdevice_backing_seq
FROM VPX_SN_VDEVICE_BACKING_REL;
SELECT COALESCE(MAX(backing_id), 0)
INTO l_vdevice_backing_seq
FROM VPX_VDEVICE_BACKING_REL;
IF l_sn_vdevice_backing_seq >= l_vdevice_backing_seq THEN
l_sn_vdevice_backing_seq = l_sn_vdevice_backing_seq + 200;
sql_stmt = 'ALTER SEQUENCE VPX_VDEVICE_BACKING_REL_SEQ RESTART WITH '
|| l_sn_vdevice_backing_seq || ';';
EXECUTE sql_stmt;
END IF;
END$$;
^^^^^^^^^^
1 [42501](7) ERROR: must be owner of relation vpx_vdevice_backing_rel_seq;
Error while executing the query
ERROR: Cannot execute statement(rc=-1).
DO $$
DECLARE r RECORD;
DECLARE sql_stmt VARCHAR;
BEGIN
ALTER TABLE VPX_USAGE_STAT SET WITHOUT CLUSTER;
EXCEPTION WHEN OTHERS THEN
NULL;
END$$;
DO $$
DECLARE l_sn_vdevice_backing_seq int;
DECLARE l_vdevice_backing_seq int;
DECLARE sql_stmt VARCHAR;
BEGIN
SELECT COALESCE(MAX(backing_id), 0)
INTO l_sn_vdevice_backing_seq
FROM VPX_SN_VDEVICE_BACKING_REL;
SELECT COALESCE(MAX(backing_id), 0)
INTO l_vdevice_backing_seq
FROM VPX_VDEVICE_BACKING_REL;
IF l_sn_vdevice_backing_seq >= l_vdevice_backing_seq THEN
l_sn_vdevice_backing_seq = l_sn_vdevice_backing_seq + 200;
sql_stmt = 'ALTER SEQUENCE VPX_VDEVICE_BACKING_REL_SEQ RESTART WITH '
|| l_sn_vdevice_backing_seq || ';';
EXECUTE sql_stmt;
END IF;
END$$;
^^^^^^^^^^
1 [42501](7) ERROR: must be owner of relation vpx_vdevice_backing_rel_seq;
Error while executing the query
The log for the output is much larger, but not sure if that's necessary to post.