arcgis-cookbook
arcgis-cookbook copied to clipboard
Cannot connect to database: Connection to localhost:7654 refused
[2023-07-29T15:04:32+10:00] FATAL: RuntimeError: arcgis_enterprise_portal[Create Portal Site] (arcgis-enterprise::portal line 61) had an error: RuntimeError: com.esri.arcgis.portal.admin.core.PortalException: java.lang.Exception: Cannot connect to database: Connection to localhost:7654 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Hi @richardnealwebb,
Looks like the portal site failed to create. Could you provide additional information or context? For example:
- Which version of ArcGIS Enterprise is this?
- Which version of Cookbooks is being used?
- Operating System?
I recommend checking the portal logs on disk to see if there are any additional logs that may provide clues.
Windows: C:\arcgisportal\logs\<machine name>\portal\portal-20150101.095803-8596-0.0.log
Linux: <Portal for ArcGIS installation directory>/arcgisportal/logs/<machine name>/portal/portal-20150101.095803-8596-0.0.log
Thanks, Cameron K.