<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Notebook error gis = GIS(&amp;quot;home&amp;quot;) in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1330595#M37188</link>
    <description>&lt;P&gt;dockerExtraHosts variable doesn't work for me. Registering internal ip of portal in our dns solved the problem. ArcGIS Notebook Server with Windows containers can't work with ip's listed in hosts file&amp;nbsp;on the host.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 13:44:13 GMT</pubDate>
    <dc:creator>AlexLeonov</dc:creator>
    <dc:date>2023-09-20T13:44:13Z</dc:date>
    <item>
      <title>ArcGIS Notebook error gis = GIS("home")</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1308643#M36531</link>
      <description>&lt;P&gt;Hello Community&lt;BR /&gt;I'm experiencing an anomaly on ArcGIS Notebook Server 11.1.&lt;BR /&gt;when I run the first notebook with just the command gis = GIS("home") I get the following error&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;BR /&gt;gaierror Traceback (most recent call last)&lt;BR /&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connection.py in _new_conn(self)&lt;BR /&gt;173 try:&lt;BR /&gt;--&amp;gt; 174 conn = connection.create_connection(&lt;BR /&gt;175 (self._dns_host, self.port), self.timeout, **extra_kw&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)&lt;BR /&gt;71&lt;BR /&gt;---&amp;gt; 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):&lt;BR /&gt;73 af, socktype, proto, canonname, sa = res&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/socket.py in getaddrinfo(host, port, family, type, proto, flags)&lt;BR /&gt;953 addrlist = []&lt;BR /&gt;--&amp;gt; 954 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):&lt;BR /&gt;955 af, socktype, proto, canonname, sa = res&lt;/P&gt;&lt;P&gt;gaierror: [Errno -2] Name or service not known&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;NewConnectionError Traceback (most recent call last)&lt;BR /&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)&lt;BR /&gt;702 # Make the request on the httplib connection object.&lt;BR /&gt;--&amp;gt; 703 httplib_response = self._make_request(&lt;BR /&gt;704 conn,&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)&lt;BR /&gt;385 try:&lt;BR /&gt;--&amp;gt; 386 self._validate_conn(conn)&lt;BR /&gt;387 except (SocketTimeout, BaseSSLError) as e:&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)&lt;BR /&gt;1041 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`&lt;BR /&gt;-&amp;gt; 1042 conn.connect()&lt;BR /&gt;1043&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connection.py in connect(self)&lt;BR /&gt;357 # Add certificate verification&lt;BR /&gt;--&amp;gt; 358 self.sock = conn = self._new_conn()&lt;BR /&gt;359 hostname = self.host&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connection.py in _new_conn(self)&lt;BR /&gt;185 except SocketError as e:&lt;BR /&gt;--&amp;gt; 186 raise NewConnectionError(&lt;BR /&gt;187 self, "Failed to establish a new connection: %s" % e&lt;/P&gt;&lt;P&gt;NewConnectionError: &amp;lt;urllib3.connection.HTTPSConnection object at 0x7ff354714e50&amp;gt;: Failed to establish a new connection: [Errno -2] Name or service not known&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;MaxRetryError Traceback (most recent call last)&lt;BR /&gt;/opt/conda/lib/python3.9/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)&lt;BR /&gt;488 if not chunked:&lt;BR /&gt;--&amp;gt; 489 resp = conn.urlopen(&lt;BR /&gt;490 method=request.method,&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)&lt;BR /&gt;814 )&lt;BR /&gt;--&amp;gt; 815 return self.urlopen(&lt;BR /&gt;816 method,&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)&lt;BR /&gt;814 )&lt;BR /&gt;--&amp;gt; 815 return self.urlopen(&lt;BR /&gt;816 method,&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)&lt;BR /&gt;786&lt;BR /&gt;--&amp;gt; 787 retries = retries.increment(&lt;BR /&gt;788 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)&lt;BR /&gt;591 if new_retry.is_exhausted():&lt;BR /&gt;--&amp;gt; 592 raise MaxRetryError(_pool, url, error or ResponseError(cause))&lt;BR /&gt;593&lt;/P&gt;&lt;P&gt;MaxRetryError: HTTPSConnectionPool(host='rfiappgis01wlab.fstech.local', port=7443): Max retries exceeded with url: /arcgis/sharing/rest/portals/self (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x7ff354714e50&amp;gt;: Failed to establish a new connection: [Errno -2] Name or service not known'))&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;ConnectionError Traceback (most recent call last)&lt;BR /&gt;/opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_con/_connection.py in post(self, path, params, files, **kwargs)&lt;BR /&gt;1469&lt;BR /&gt;-&amp;gt; 1470 resp = self._session.post(&lt;BR /&gt;1471 url=url,&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/arcgis/auth/api.py in post(self, url, data, json, **kwargs)&lt;BR /&gt;487 redirects = self.allow_redirects&lt;BR /&gt;--&amp;gt; 488 return self._session.post(&lt;BR /&gt;489 url,&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/requests/sessions.py in post(self, url, data, json, **kwargs)&lt;BR /&gt;634&lt;BR /&gt;--&amp;gt; 635 return self.request("POST", url, data=data, json=json, **kwargs)&lt;BR /&gt;636&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)&lt;BR /&gt;586 send_kwargs.update(settings)&lt;BR /&gt;--&amp;gt; 587 resp = self.send(prep, **send_kwargs)&lt;BR /&gt;588&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/requests/sessions.py in send(self, request, **kwargs)&lt;BR /&gt;700 # Send the request&lt;BR /&gt;--&amp;gt; 701 r = adapter.send(request, **kwargs)&lt;BR /&gt;702&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)&lt;BR /&gt;564&lt;BR /&gt;--&amp;gt; 565 raise ConnectionError(e, request=request)&lt;BR /&gt;566&lt;/P&gt;&lt;P&gt;ConnectionError: HTTPSConnectionPool(host='rfiappgis01wlab.fstech.local', port=7443): Max retries exceeded with url: /arcgis/sharing/rest/portals/self (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x7ff354714e50&amp;gt;: Failed to establish a new connection: [Errno -2] Name or service not known'))&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;ConnectionError Traceback (most recent call last)&lt;BR /&gt;/tmp/ipykernel_121/4088297746.py in &amp;lt;cell line: 2&amp;gt;()&lt;BR /&gt;1 from arcgis.gis import GIS&lt;BR /&gt;----&amp;gt; 2 gis = GIS("home")&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/arcgis/gis/__init__.py in __init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs)&lt;BR /&gt;583 )&lt;BR /&gt;584 else:&lt;BR /&gt;--&amp;gt; 585 raise e&lt;BR /&gt;586 try:&lt;BR /&gt;587 if (&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/arcgis/gis/__init__.py in __init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs)&lt;BR /&gt;522 self._expiration = 60&lt;BR /&gt;523 try:&lt;BR /&gt;--&amp;gt; 524 self._portal = _portalpy.Portal(&lt;BR /&gt;525 self._url,&lt;BR /&gt;526 self._username,&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_portalpy.py in __init__(self, url, username, password, key_file, cert_file, expiration, referer, proxy_host, proxy_port, connection, workdir, tokenurl, verify_cert, client_id, custom_auth, token, **kwargs)&lt;BR /&gt;230 )&lt;BR /&gt;231 # self.get_version(True)&lt;BR /&gt;--&amp;gt; 232 self.get_properties(True)&lt;BR /&gt;233&lt;BR /&gt;234 def add_group_users(&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_portalpy.py in get_properties(self, force)&lt;BR /&gt;1300 ) # issue seen with key, cert auth&lt;BR /&gt;1301 if not resp:&lt;BR /&gt;-&amp;gt; 1302 raise e&lt;BR /&gt;1303&lt;BR /&gt;1304 if resp:&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_portalpy.py in get_properties(self, force)&lt;BR /&gt;1280 resp = None&lt;BR /&gt;1281 try:&lt;BR /&gt;-&amp;gt; 1282 resp = self.con.post(path, self._postdata(), ssl=True)&lt;BR /&gt;1283 except Exception as e:&lt;BR /&gt;1284 if (&lt;/P&gt;&lt;P&gt;/opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_con/_connection.py in post(self, path, params, files, **kwargs)&lt;BR /&gt;1498 raise requests.exceptions.SSLError("Invalid URL provided: %s" % errIU)&lt;BR /&gt;1499 except requests.exceptions.ConnectionError as errCE:&lt;BR /&gt;-&amp;gt; 1500 raise requests.exceptions.ConnectionError(&lt;BR /&gt;1501 "A connection error has occurred: %s" % errCE&lt;BR /&gt;1502 )&lt;/P&gt;&lt;P&gt;ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='rfiappgis01wlab.fstech.local', port=7443): Max retries exceeded with url: /arcgis/sharing/rest/portals/self (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x7ff354714e50&amp;gt;: Failed to establish a new connection: [Errno -2] Name or service not known'))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Notebook Server is installed on Ubuntu 22.04&lt;BR /&gt;and the docker is the CE version&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SSL certificates have been installed&lt;/LI&gt;&lt;LI&gt;the PrivatePortalURL has been enhanced&lt;/LI&gt;&lt;LI&gt;The hosts files are compiled correctly&lt;/LI&gt;&lt;LI&gt;the init_param.sh file has been compiled with Proxy info&lt;/LI&gt;&lt;LI&gt;the /etc/enviroment file is compiled with the proxy info&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;with the arcgis user in linux if I execute a CURL -K of the private portal url everything works correctly&lt;/P&gt;&lt;P&gt;What could it be?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Virgilio&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 15:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1308643#M36531</guid>
      <dc:creator>Oiligriv</dc:creator>
      <dc:date>2023-07-17T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Notebook error gis = GIS("home")</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1309406#M36554</link>
      <description>&lt;P&gt;I discovered the error.&lt;BR /&gt;essentially docker images by default, don't read the server's local Hosts file.&lt;/P&gt;&lt;P&gt;How do you think I can edit the hosts file for Esri's docker images?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 08:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1309406#M36554</guid>
      <dc:creator>Oiligriv</dc:creator>
      <dc:date>2023-07-19T08:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Notebook error gis = GIS("home")</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1310441#M36606</link>
      <description>&lt;P&gt;You should be able to use the dockerExtraHosts system property configured via Notebook Server Admin, check out the API documentation &lt;A href="https://developers.arcgis.com/rest/enterprise-administration/notebook/server-properties.htm#:~:text=its%20Docker%20component.-,dockerExtraHosts,-New%20at%2011.0" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 13:32:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1310441#M36606</guid>
      <dc:creator>ChristopherPawlyszyn</dc:creator>
      <dc:date>2023-07-21T13:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Notebook error gis = GIS("home")</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1329538#M37161</link>
      <description>&lt;P&gt;I had a similar error on &lt;SPAN&gt;ArcGIS Notebook Server 11.1&lt;/SPAN&gt;, but with another error code.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P class="lia-indent-padding-left-30px"&gt;ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='pvm-portal.esri-cis.com', port=7443): Max retries exceeded with url: /arcgis/sharing/rest/portals/self (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x000001F9A9F49970&amp;gt;: Failed to establish a new connection: &lt;STRONG&gt;[Errno 11001] getaddrinfo failed')&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Adding the ArcGIS Portal host to the dockerExtraHosts variable does not solve the problem - the error remains. Please - what could be wrong?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/196643"&gt;@ChristopherPawlyszyn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "maxExecuteNotebookContainersPerNode": 10,
  "dockerConnectionPort": 2375,
  "maxContainersPerNode": 20,
  "containersStartPort": 30001,
  "diskSpaceThresholdGB": 5,
  "dockerExtraHosts": [{
    "hostname": "pvm-portal.esri-cis.com",
    "ip": "10.14.0.31"
  }],
  "idleNotebookThreshold": 720,
  "containerCreatedThreshold": 60,
  "useWindowsContainers": true,
  "allowedCORSRequestHeaders": "x-ms-blob-type,x-ms-version,x-ms-client-request-id,content-type",
  "webSocketSize": 16,
  "containersStopPort": 31000,
  "allowHiddenFileDownloads": false,
  "dockerConnectionHost": "localhost"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 12:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1329538#M37161</guid>
      <dc:creator>AlexLeonov</dc:creator>
      <dc:date>2023-09-18T12:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Notebook error gis = GIS("home")</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1330595#M37188</link>
      <description>&lt;P&gt;dockerExtraHosts variable doesn't work for me. Registering internal ip of portal in our dns solved the problem. ArcGIS Notebook Server with Windows containers can't work with ip's listed in hosts file&amp;nbsp;on the host.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 13:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1330595#M37188</guid>
      <dc:creator>AlexLeonov</dc:creator>
      <dc:date>2023-09-20T13:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Notebook error gis = GIS("home")</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1369495#M38230</link>
      <description>&lt;P&gt;I don't understand the documentation to its full extent. Which hosts have to be added to the dockerExtraHosts? The Portal, a DNS,...?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 12:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-notebook-error-gis-gis-quot-home-quot/m-p/1369495#M38230</guid>
      <dc:creator>StefanUseldinger</dc:creator>
      <dc:date>2024-01-12T12:02:01Z</dc:date>
    </item>
  </channel>
</rss>

