Upgrading VMware vCenter Server (VC) from version 8.0 to version 9.1 fails during the upgrade workflow.
Reviewing the firstboot logs and vmon.log reveals similar error messages:
Failed to patch roles_groups_users! Role vSpherePodAdministrator (id: 1040) not found in VC.
Role already exists with same name VapiEndpointUser but different id 1666393604
Keywords: vCenter upgrade failure, 8.0 to 9.1, roles_groups_users, vSpherePodAdministrator, VapiEndpointUser, firstboot, vmon.log, role ID mismatch.
VMware vCenter Server 8.0 (Source)
VMware vCenter Server 9.1 (Target)
An internal vCenter 9.x group or role was previously created in the vCenter Server while it was running version 8.0. Creating these objects on 8.0 assigns a different backend role ID than the ID expected by the 9.1 upgrade workflow. During the upgrade, the upgrade scripts fail because they cannot match the expected roleID number with the corresponding role or group name.
Revert the vCenter Server back to its pre-upgrade 8.0 state.
Clean up (remove) the specific conflicting role or group reported in the firstboot logs or vmon.log (such as vSpherePodAdministrator or VapiEndpointUser).
Re-run the vCenter Server upgrade from 8.0 to 9.1.
If the upgrade fails again with a subsequent role or group error, open a support ticket with Broadcom Support.