<?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: gis.admin.servers.list Hangs in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1378786#M38496</link>
    <description>&lt;P&gt;Whether or not I include the username and password doesn't change the behavior.&amp;nbsp; It still takes 5 minutes to list the servers.&amp;nbsp; So, it's not hanging, it's just very slow.&lt;/P&gt;&lt;P&gt;When I use the Python 3 command prompt on the server to create a GIS object, I get an invalid username and password error if I just provide the url parameter.&amp;nbsp; If I provide a username and password, the list method completes very quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2024 18:31:04 GMT</pubDate>
    <dc:creator>NathanHeickLACSD</dc:creator>
    <dc:date>2024-02-06T18:31:04Z</dc:date>
    <item>
      <title>gis.admin.servers.list Hangs</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1375599#M38392</link>
      <description>&lt;P&gt;I'm migrating a Python script that starts and stops services from ArcGIS Enterprise 10.6.1 to 10.9.1.&amp;nbsp; In the ArcGIS API for Python, the function gis.admin.servers.list hangs now.&amp;nbsp; If you enter gis.admin.servers.__dict__, there is an attribute _server_list that is None.&amp;nbsp; Through the portal admin API, I can see our one server as being federated with the portal.&amp;nbsp; I did not setup the server so I don't know all the details of how it was set up.&amp;nbsp; I'm just wondering if anyone knows what direction to go.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 18:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1375599#M38392</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2024-01-29T18:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: gis.admin.servers.list Hangs</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1378743#M38490</link>
      <description>&lt;P&gt;Hey Nathan,&lt;/P&gt;&lt;P&gt;Are you connecting to Enterprise using an administrator account? If possible could you try testing this on a copy of ArcGIS Pro installed on the Enterprise machine?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should hopefully rule out permissions or networking from the issue.&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 17:18:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1378743#M38490</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2024-02-06T17:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: gis.admin.servers.list Hangs</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1378756#M38491</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I will look into it.&amp;nbsp; I need to do more testing as to what is actually hanging.&amp;nbsp; I was trying to figure out what syntax to use for IWA authentication.&amp;nbsp; Apparently, you just need the server URL to make a GIS object.&amp;nbsp; It may have been that it was hanging when I passed in credentials to the server which is configured to use IWA.&amp;nbsp; I will confirm.&amp;nbsp; I did find out that when I used the correct parameters for IWA authentication, it wasn't actually hanging.&amp;nbsp; Instead, it was taking about 5 minutes 50 seconds to complete the list method.&amp;nbsp; I paused the code and after about 10 seconds, the IDE would eventually pause in some code that was making a connection to the server.&amp;nbsp; I did figure out that the part that was hanging was when the list method was building a ServiceDirectory object for the server, which was in turn trying to connect to the server.&lt;/P&gt;&lt;P&gt;It definitely was very quick on the old server and it was very slow on the new one.&amp;nbsp; Eventually, it does complete and gives a list of one server object.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 17:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1378756#M38491</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2024-02-06T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: gis.admin.servers.list Hangs</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1378786#M38496</link>
      <description>&lt;P&gt;Whether or not I include the username and password doesn't change the behavior.&amp;nbsp; It still takes 5 minutes to list the servers.&amp;nbsp; So, it's not hanging, it's just very slow.&lt;/P&gt;&lt;P&gt;When I use the Python 3 command prompt on the server to create a GIS object, I get an invalid username and password error if I just provide the url parameter.&amp;nbsp; If I provide a username and password, the list method completes very quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1378786#M38496</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2024-02-06T18:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: gis.admin.servers.list Hangs</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1410081#M39220</link>
      <description>&lt;P&gt;I have had this issue yesterday. In my case, our notebook server service was offline while our federated arcgis server was online. &lt;EM&gt;gis.admin.servers.list()&lt;/EM&gt; didn't even return a timeout after 30 minutes. It just hanged. Restarting the nbs service helped.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 07:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1410081#M39220</guid>
      <dc:creator>StefanUseldinger</dc:creator>
      <dc:date>2024-04-16T07:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: gis.admin.servers.list Hangs</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1540636#M40600</link>
      <description>&lt;P&gt;I was also having slow response using&amp;nbsp;&lt;EM&gt;gis.admin.servers.list()&amp;nbsp;&lt;/EM&gt;in Enterprise 11.3 with IWA.&amp;nbsp; I got much better performance directly creating the server object per the example below, except I built the GIS object using the URL instead (For example, gis&amp;nbsp;= GIS('&lt;A href="https://portal.domain.com/webadaptor" target="_blank" rel="noopener"&gt;https://portal.domain.com/webadaptor&lt;/A&gt;')&lt;/P&gt;&lt;P&gt;Hope it helps someone!&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#server" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#server&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# Usage Example 3: Get the ArcGIS Server site that is federated to an Enterprise (using ``gis``)&lt;/SPAN&gt;

&lt;SPAN class=""&gt;server_base_url&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;"https://example.com"&lt;/SPAN&gt;
&lt;SPAN class=""&gt;gis&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;GIS&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;profile&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"your_ent_admin_profile"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
&lt;SPAN class=""&gt;gis_server&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;Server&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;url&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;f&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;server_base_url&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;/web_adaptor/admin"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;
                    &lt;SPAN class=""&gt;gis&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;gis&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 20:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1540636#M40600</guid>
      <dc:creator>Marshal</dc:creator>
      <dc:date>2024-09-19T20:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: gis.admin.servers.list Hangs</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1645833#M42934</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/389506"&gt;@Marshal&lt;/a&gt;&amp;nbsp;Your answer is probably the best. I'm on Enterprise 11.5 and&amp;nbsp;&lt;EM&gt;gis.admin.servers.list()&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;takes few minutes to process. I changed my script like this :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;myserver = arcgis.gis.server.Server(url=f"{server_base_url}/server/admin", gis = gis)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It now only takes a second. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 21:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gis-admin-servers-list-hangs/m-p/1645833#M42934</guid>
      <dc:creator>RejeanLabbe</dc:creator>
      <dc:date>2025-08-26T21:22:00Z</dc:date>
    </item>
  </channel>
</rss>

