<?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: Notebook Server cannot communicate outside the container in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-server-cannot-communicate-outside-the/m-p/1507814#M797</link>
    <description>&lt;P&gt;In my case, the software configuration management tool of my IT department ("Puppet") reset the firewall rules regularly that were set by docker when the deamon was started. Adding the specific docker rules to the tool config solved the problem and the bridge network communication started to work.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2024 06:16:56 GMT</pubDate>
    <dc:creator>StefanUseldinger</dc:creator>
    <dc:date>2024-07-22T06:16:56Z</dc:date>
    <item>
      <title>Notebook Server cannot communicate outside the container</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-server-cannot-communicate-outside-the/m-p/1374305#M728</link>
      <description>&lt;P&gt;We installed and configured NBS on a Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-91-generic x86_64) and try to communicate with our Portal.&lt;/P&gt;&lt;P&gt;First, we received the common error "Temporary failure in name resolution" which was fixed by adding the &lt;A href="https://enterprise.arcgis.com/en/notebook/latest/install/linux/common-problems-and-solutions-notebook-server-.htm" target="_self"&gt;dockerExtraHosts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But after that, we received a timeout. We tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
gis = GIS(".../portal")&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;import requests
res = requests.get('https://...')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and received:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ConnectionError&lt;/SPAN&gt;: HTTPSConnectionPool(host='...', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x7fece4dedd00&amp;gt;: Failed to establish a new connection: [Errno 110] Connection timed out'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that the docker containers being launched communicate via the bridge docker namespace/network. I connected myself to the container. Inside the container, curl requests failed, too. I checked iptables but did not see any blocking rules.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do You have a clue how I can make NBS communicate with our Portal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;========================================================================&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ArcGIS Notebook Server 11.2 Diagnostic Tool&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hostname: UBU-ARCGIS-NS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;========================================================================&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DIAG000: Check for installation as root [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG001: Check for 64-bit architecture [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG002: Check OS version [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG003: Check hostname for invalid characters [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG024: Check /etc/hosts for hostname entry [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG004: Check installed packages [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG028: Check for valid Docker install [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG005: Check system limits [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG009: Check HTTPS port [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG029: Check /var disk space [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG020: Check hostname IP address mismatches [PASSED]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIAG026: Check ArcGIS Notebook Server core services [PASSED]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;------------------------------------------------------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;There were 0 failure(s) and 0 warning(s) found:&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 10:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-server-cannot-communicate-outside-the/m-p/1374305#M728</guid>
      <dc:creator>StefanUseldinger</dc:creator>
      <dc:date>2024-01-25T10:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Server cannot communicate outside the container</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-server-cannot-communicate-outside-the/m-p/1506437#M794</link>
      <description>&lt;P&gt;Hi, did you fix your issue now?&lt;/P&gt;&lt;P&gt;We had similar issue in ArcGIS Notebook Server 11.1 which sitting in AWS EC2 instance with Ubuntu 22.04.6.&lt;/P&gt;&lt;P&gt;After a few tests with ESRI support team and our internal Docker specialist and AWS support team, we found out the container is using bridge network and can only working with the FQDN which is accessible from public, or IP address in our case.&lt;/P&gt;&lt;P&gt;We also tried to run "docker run --net=host" command to launch a new ESRI notebook container, and the container working fine with curl requests for both internal and external urls. But we could not find a way in ArcGIS Notebook Server 11.1 to change the network for the docker container.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 00:41:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-server-cannot-communicate-outside-the/m-p/1506437#M794</guid>
      <dc:creator>hehuiz2007</dc:creator>
      <dc:date>2024-07-18T00:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Server cannot communicate outside the container</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-server-cannot-communicate-outside-the/m-p/1507814#M797</link>
      <description>&lt;P&gt;In my case, the software configuration management tool of my IT department ("Puppet") reset the firewall rules regularly that were set by docker when the deamon was started. Adding the specific docker rules to the tool config solved the problem and the bridge network communication started to work.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 06:16:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-server-cannot-communicate-outside-the/m-p/1507814#M797</guid>
      <dc:creator>StefanUseldinger</dc:creator>
      <dc:date>2024-07-22T06:16:56Z</dc:date>
    </item>
  </channel>
</rss>

