When upgrading my portal from 10.5.1 on a Windows 2008 R2 server, I am getting an error message at the step where I click the Continue Portal Upgrade button on https://machinename.domain.com:7443/arcgis/home/createadmin.html.
There was an error when attempting to upgrade the existing portal.
Upgrade failed. Failed to import data to the database correctly. Failed to execute SQL file ' C:\Program Files\ArcGIS\Portal\framework\template\sql\10.5.1_to_10.6.0\livingatlasdiff.sql'. UPDATE 0 DELETE 0 INSERT 0 1 INSERT 0 1 INSERT 0 1 psql:C:/Program Files/ArcGIS/Portal/framework/template/sql/10.5.1_to_10.6.0/livingatlasdiff.sql:9: ERROR: insert or update on table "gw_groups_users" violates foreign key constraint "gw_groups_users_ibfk_2" DETAIL: Key (username)=(esri_livingatlas) is not present in table "gw_users". psql:
....
I restarted the Portal service and attempted the installation again, with the same error.
