<?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: 10.4.1 Token Response in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10342#M401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be a timing thing.&amp;nbsp; I have a script that does basically the same thing (but inventories running services that are using my FGDB so only those are stopped/started) and I've had to put in a bunch of "sleep" times in to let the file system, etc catch up.&amp;nbsp; I have to play with the time needed, but in most cases 5-10 secs has been plenty...but for some, up to 30 secs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;mySleep&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;secs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zzz...sleeping {0} seconds to allow network file status to catch up...."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;secs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sleep&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;secs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN class="comment token"&gt;# stop your service&lt;/SPAN&gt;
mySleep&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# start your service&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:26:19 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2021-12-10T20:26:19Z</dc:date>
    <item>
      <title>10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10340#M399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;we are running into a new issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are currently working with esri&amp;nbsp;support but also wanted to reach out to everyone here as well and see if anyone has experienced this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have python scripts that to some minimal work, nothing advanced but one less thing we have to worry about:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Python Update Script Process&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1) stop service&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2) copy over new data&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3) start service&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this is extremely simplified but its pretty basic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are noticing now that when our script attempts to start the service back up and waits for token response from the service that it stalls out and we never get a response. so we successfully stop the service, do our work, try to restart the service and never get a response back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i look at the task manager of the machine and it shows the ArcSOCs are running for the service in question, but the ESRI manager site shows the service as "starting" and never fully recovers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 19:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10340#M399</guid>
      <dc:creator>DaveTenney</dc:creator>
      <dc:date>2017-02-20T19:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10341#M400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;update...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; so token response does come back, but for some reason there is no response back that the service actually started if it did indeed ever start back up completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 19:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10341#M400</guid>
      <dc:creator>DaveTenney</dc:creator>
      <dc:date>2017-02-20T19:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10342#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be a timing thing.&amp;nbsp; I have a script that does basically the same thing (but inventories running services that are using my FGDB so only those are stopped/started) and I've had to put in a bunch of "sleep" times in to let the file system, etc catch up.&amp;nbsp; I have to play with the time needed, but in most cases 5-10 secs has been plenty...but for some, up to 30 secs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;mySleep&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;secs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zzz...sleeping {0} seconds to allow network file status to catch up...."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;secs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sleep&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;secs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN class="comment token"&gt;# stop your service&lt;/SPAN&gt;
mySleep&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# start your service&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10342#M401</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-10T20:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10343#M402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this on Windows or Linux? &amp;nbsp;Do you see any errors within the logs about service startup timing out? &amp;nbsp;Is this a single or multi-machine site? &amp;nbsp;If it's a multi-machine site, do you see the SOC process start up on each machine? &amp;nbsp;Enable the Command Line field in Task Manager on Windows and take a look at top on Linux.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10343#M402</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-02-21T17:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10344#M403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you perform a truncate and append of your data instead copying over the data which requires stopping the service? &amp;nbsp;I update many different sets of data for AGS using the truncate and append method, which has eliminated the need to stop services and thereby reduces the number of issues that I am faced with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this script run successfully in your environment in the past against an older AGS version (e.g. 10.3.1) and you are now trying to run this script against an upgraded environment (10.4.1), but it's failing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10344#M403</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-02-21T17:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10345#M404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Windows VM (2012 R2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Only errors in logs is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Unable to process request. Error handling service request :Could not find a service with the name '####/MapServer/Support' in the configured clusters. Service may be stopped or ArcGIS Server may not be running." (I watch the service in server manager just sit there in "starting" status and never come back to "started")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Single Machine Site&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;during the script process we can watch the the SOCs come and go. even after the data is copied over and the service is started back up with the see the SOCs come back in the task manager as up and running but the server manager is stuck at "starting"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10345#M404</guid>
      <dc:creator>DaveTenney</dc:creator>
      <dc:date>2017-02-21T17:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10346#M405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/8066"&gt;Michael Volz&lt;/A&gt;‌ has a good suggestion; the schema doesn't sound like it's changing so you can just update the data within the feature class without needing to stop and start the service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to the problem, what do the Configured and Real-time state show within the Admin API&amp;nbsp;when clicking on the Status of the service? &amp;nbsp;That should show you which one isn't being updated. &amp;nbsp;Once both are "Started" or both are "Stopped", Manager will reflect that status.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10346#M405</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-02-21T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10347#M406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if you could please explain this process a little more, it would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 18:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10347#M406</guid>
      <dc:creator>DaveTenney</dc:creator>
      <dc:date>2017-02-21T18:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4.1 Token Response</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10348#M407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Truncate and append is pretty simple and it's a fast process. &amp;nbsp;You are deleting all records, but the database schema is left intact and you are then appending in the new records.&lt;/P&gt;&lt;P&gt;env.workspace = "Destination geodatabase"&lt;/P&gt;&lt;P&gt;fcs = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P&gt;for fc in fcs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.DeleteFeatures_management(fc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.Append_management("Data source feature class, fc, "TEST", "", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the working part of the script so you can see not much code is involved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 18:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/10-4-1-token-response/m-p/10348#M407</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-02-21T18:38:22Z</dc:date>
    </item>
  </channel>
</rss>

