Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
300 stars 116 forks source link

No such host #176

Closed ClaesGIS closed 2 years ago

ClaesGIS commented 6 years ago

Hello

Problem Fails to create arcgis site with the following error message "SocketError: Failed to open TCP connection to : (getaddrinfo: No such host is known. )". I've verified with Wireshark that DNS is sent during the process and it receives a valid response from primary DNS server.

Log [2018-10-26T08:03:40+02:00] INFO: Processing arcgis_enterprise_server[Create ArcGIS Server site] action create_site (arcgis-enterprise::server line 77) [2018-10-26T08:20:21+02:00] ERROR: Failed to create ArcGIS Server site. Failed to open TCP connection to : (getaddrinfo: No such host is known. ) [2018-10-26T08:20:21+02:00] INFO: Retrying execution of arcgis_enterprise_server[Create ArcGIS Server site], 4 attempts left [2018-10-26T08:37:31+02:00] ERROR: Failed to create ArcGIS Server site. Failed to open TCP connection to : (getaddrinfo: No such host is known. ) [2018-10-26T08:37:31+02:00] INFO: Retrying execution of arcgis_enterprise_server[Create ArcGIS Server site], 3 attempts left [2018-10-26T08:54:41+02:00] ERROR: Failed to create ArcGIS Server site. Failed to open TCP connection to : (getaddrinfo: No such host is known. ) [2018-10-26T08:54:41+02:00] INFO: Retrying execution of arcgis_enterprise_server[Create ArcGIS Server site], 2 attempts left [2018-10-26T09:11:51+02:00] ERROR: Failed to create ArcGIS Server site. Failed to open TCP connection to : (getaddrinfo: No such host is known. ) [2018-10-26T09:11:51+02:00] INFO: Retrying execution of arcgis_enterprise_server[Create ArcGIS Server site], 1 attempt left [2018-10-26T09:29:01+02:00] ERROR: Failed to create ArcGIS Server site. Failed to open TCP connection to : (getaddrinfo: No such host is known. ) [2018-10-26T09:29:01+02:00] INFO: Retrying execution of arcgis_enterprise_server[Create ArcGIS Server site], 0 attempt left [2018-10-26T09:46:12+02:00] ERROR: Failed to create ArcGIS Server site. Failed to open TCP connection to : (getaddrinfo: No such host is known. ) [2018-10-26T09:46:12+02:00] INFO: Running queued delayed notifications before re-raising exception [2018-10-26T09:46:12+02:00] ERROR: Running exception handlers [2018-10-26T09:46:12+02:00] ERROR: Exception handlers complete [2018-10-26T09:46:12+02:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out [2018-10-26T09:46:12+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2018-10-26T09:46:12+02:00] FATAL: SocketError: arcgis_enterprise_server[Create ArcGIS Server site] (arcgis-enterprise::server line 77) had an error: SocketError: Failed to open TCP connection to : (getaddrinfo: No such host is known. )

chef-Stacktrace Link

Let me know if you need any additional information.

pbobov commented 6 years ago

By default arcgis-enterprise cookbook uses FQDN of the machine as ArcGIS Server hostname.

Try running ohai fqdn from command line on the machine to get FQDN the way Chef sees it.

ClaesGIS commented 6 years ago

Thanks for the reply.

Yes, FQDN is valid and resolves to an ip address. This is not limited to this particular node, we are experiencing the problem on the portal server as well.

pbobov commented 6 years ago

Try setting arcgis/server/url attribute in the JSON file directly instead of relying on defaults:

{
 "arcgis" : {
    ...
    "server" : {
      "url" : "https://<fqdn>:6443/arcgis",
      ...
    }
  }
}