AnsweredAssumed Answered

Failed to restore ArcGIS Portal

Question asked by mpschoelen0 on Oct 30, 2018
Latest reply on Oct 31, 2018 by JQuinn-esristaff

We are attempting to recover from a corrupted Portal machine (10.5.1 on Windows Server 2008 R2) . This is not high-availability.

  • We successfully rebuilt the Enterprise to the same configuration from before the crash.
  • This included a fresh install of Portal for ArcGIS-- we cleared all existing directories
  • We ran WEBGISDR to import the backup.
  • All of the servers restored successfully.
  • When getting to the Portal, the WEBGISDR failed with the error below.

 

The restore of ArcGIS Server has completed in 00hr:10min:26sec.

Starting the restore of Portal for ArcGIS:


Admin Url: https://staff.gis.website.com/portal.

Failed to restore the Portal for ArcGIS.


Admin Url: https://staff.gis.website.com/portal.
{"error":{"code":500,"details":null,"message":"Failed to import site. com.esri.arcgis.portal.admin.core.PortalException: java.lang.Exception: Cannot connect to
database: jdbc:postgresql://localhost:7654/gwdb FATAL: the database system is starting up"}}

 

The restore of Web GIS components has completed in 00hr:25min:07sec.

 

Stopping the webgisdr utility.


C:\Program Files\ArcGIS\Portal\tools\webgisdr>

 

This error caused the portal to go back into initial configuration mode, and its possible the only option is to uninstall and reinstall again. 

 

Looking at the initial portal logs, I'm seeing an error related to HA (again, this portal was never HA):

HA configuration files created.</Msg>
<Msg time="2018-10-30T08:10:29,595" type="INFO" code="209160" source="Portal Admin" process="6920" thread="14" methodName="" machine="MACHINE01.DOMAIN.WEBSITE.COM" user="" elapsed="">Configuring database for HA. </Msg>
<Msg time="2018-10-30T08:10:52,966" type="INFO" code="209161" source="Portal Admin" process="6920" thread="14" methodName="" machine="MACHINE01.DOMAIN.WEBSITE.COM" user="" elapsed="">Configured database for HA.</Msg>
<Msg time="2018-10-30T08:10:52,966" type="INFO" code="209062" source="Portal Admin" process="6920" thread="14" methodName="" machine="MACHINE01.DOMAIN.WEBSITE.COM" user="" elapsed="">Storing the config info of machine for portal HA.</Msg>
<Msg time="2018-10-30T08:10:52,971" type="INFO" code="209063" source="Portal Admin" process="6920" thread="14" methodName="" machine="MACHINE01.DOMAIN.WEBSITE.COM" user="" elapsed="">Stored the config info of machine for portal HA.</Msg>
<Msg time="2018-10-30T08:10:52,971" type="INFO" code="209064" source="Portal Admin" process="6920" thread="14" methodName="" machine="MACHINE01.DOMAIN.WEBSITE.COM" user="" elapsed="">Updating the JDBC Url for portal HA.</Msg>
<Msg time="2018-10-30T08:10:52,972" type="INFO" code="209065" source="Portal Admin" process="6920" thread="14" methodName="" machine="MACHINE01.DOMAIN.WEBSITE.COM" user="" elapsed="">Updated the JDBC Url for portal HA.</Msg>

Outcomes