<?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 Admin API: Could not edit service Parameters - Clearing the REST Cached fixed it in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/admin-api-could-not-edit-service-parameters/m-p/430470#M16633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just posting for FYI in case someone comes across the same problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running Esri ArcGIS Server 10.1 SP1 in a distributed environment (2 network load balanced web-adaptors and 4 GIS servers in a 2 cluster site)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;A href="https://HOST:6443/arcgis/admin/?f=pjson" rel="nofollow noopener noreferrer" target="_blank"&gt;https://HOST:6443/arcgis/admin/?f=pjson&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
&amp;nbsp; "resources": [
&amp;nbsp;&amp;nbsp;&amp;nbsp; "machines",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "clusters",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "system",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "services",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "security",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "data",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "uploads",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "logs"
&amp;nbsp; ],
&amp;nbsp; "currentVersion": 10.11,
&amp;nbsp; "fullVersion": "10.1.1",
&amp;nbsp; "acceptLanguage": "en-US,en;q=0.8"
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;The problem: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was working with the ArcGIS Server Administrative API to do some simple service configurations (specifically I was knocking down the min # of instances from 1 to 0) to free up some memory resources on our dev/test environment that has a lot of web-service bloat.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was executing an HTTP Post that looked something like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://HOST:6443/arcgis/admin/services/FOLDER/SERVICE.MapServer/edit" rel="nofollow noopener noreferrer" target="_blank"&gt;https://HOST:6443/arcgis/admin/services/FOLDER/SERVICE.MapServer/edit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with a payload like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"minInstancesPerNode": 0}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the response from the server was: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"status":"error","messages":["Could not undeploy services from one or more machines. 'Server machine 'https://HOST.DOMAIN:6443/arcgis/admin' returned an error. 'C:\\Program Files\\ArcGIS\\Server\\framework\\runtime\\ejbs\\FOLDER\\SERVICE.MapServer\\Recycling (Access is denied)''."]}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried the process multiple times.&amp;nbsp; Could not find anything of significant value in the Event Viewer on the server throwing the fit.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Couple of quick google searches resulted in someone having a similar problem and restarting the machine fixed it.&amp;nbsp; I dont want to restart the machine... so the witch-hunt started to find a less invasive solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;The Fix: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided to try clearing the REST cache.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clicked the button &lt;/SPAN&gt;&lt;STRONG&gt;Clear Cache&lt;/STRONG&gt;&lt;SPAN&gt; at the following URL: &lt;/SPAN&gt;&lt;A href="https://HOST:6443/arcgis/admin/system/handlers/rest/clear" rel="nofollow noopener noreferrer" target="_blank"&gt;https://HOST:6443/arcgis/admin/system/handlers/rest/clear&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;provided a good result: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"status": "success"}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And presto... I could immediately adjust server settings again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this little write-up saves someone time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE - It appears that my issue is still here...&amp;nbsp; It might just be one of the machines in my site that fails as the other machines are not throwing an error.&amp;nbsp; I only get the error on 1 machine in my site.&amp;nbsp; I will keep troubleshooting, but maybe rebooting just the 1 machine will work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:21:10 GMT</pubDate>
    <dc:creator>PF1</dc:creator>
    <dc:date>2021-12-11T19:21:10Z</dc:date>
    <item>
      <title>Admin API: Could not edit service Parameters - Clearing the REST Cached fixed it</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/admin-api-could-not-edit-service-parameters/m-p/430470#M16633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just posting for FYI in case someone comes across the same problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running Esri ArcGIS Server 10.1 SP1 in a distributed environment (2 network load balanced web-adaptors and 4 GIS servers in a 2 cluster site)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;A href="https://HOST:6443/arcgis/admin/?f=pjson" rel="nofollow noopener noreferrer" target="_blank"&gt;https://HOST:6443/arcgis/admin/?f=pjson&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
&amp;nbsp; "resources": [
&amp;nbsp;&amp;nbsp;&amp;nbsp; "machines",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "clusters",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "system",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "services",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "security",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "data",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "uploads",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "logs"
&amp;nbsp; ],
&amp;nbsp; "currentVersion": 10.11,
&amp;nbsp; "fullVersion": "10.1.1",
&amp;nbsp; "acceptLanguage": "en-US,en;q=0.8"
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;The problem: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was working with the ArcGIS Server Administrative API to do some simple service configurations (specifically I was knocking down the min # of instances from 1 to 0) to free up some memory resources on our dev/test environment that has a lot of web-service bloat.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was executing an HTTP Post that looked something like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://HOST:6443/arcgis/admin/services/FOLDER/SERVICE.MapServer/edit" rel="nofollow noopener noreferrer" target="_blank"&gt;https://HOST:6443/arcgis/admin/services/FOLDER/SERVICE.MapServer/edit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with a payload like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"minInstancesPerNode": 0}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the response from the server was: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"status":"error","messages":["Could not undeploy services from one or more machines. 'Server machine 'https://HOST.DOMAIN:6443/arcgis/admin' returned an error. 'C:\\Program Files\\ArcGIS\\Server\\framework\\runtime\\ejbs\\FOLDER\\SERVICE.MapServer\\Recycling (Access is denied)''."]}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried the process multiple times.&amp;nbsp; Could not find anything of significant value in the Event Viewer on the server throwing the fit.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Couple of quick google searches resulted in someone having a similar problem and restarting the machine fixed it.&amp;nbsp; I dont want to restart the machine... so the witch-hunt started to find a less invasive solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;The Fix: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided to try clearing the REST cache.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clicked the button &lt;/SPAN&gt;&lt;STRONG&gt;Clear Cache&lt;/STRONG&gt;&lt;SPAN&gt; at the following URL: &lt;/SPAN&gt;&lt;A href="https://HOST:6443/arcgis/admin/system/handlers/rest/clear" rel="nofollow noopener noreferrer" target="_blank"&gt;https://HOST:6443/arcgis/admin/system/handlers/rest/clear&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;provided a good result: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"status": "success"}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And presto... I could immediately adjust server settings again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this little write-up saves someone time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE - It appears that my issue is still here...&amp;nbsp; It might just be one of the machines in my site that fails as the other machines are not throwing an error.&amp;nbsp; I only get the error on 1 machine in my site.&amp;nbsp; I will keep troubleshooting, but maybe rebooting just the 1 machine will work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/admin-api-could-not-edit-service-parameters/m-p/430470#M16633</guid>
      <dc:creator>PF1</dc:creator>
      <dc:date>2021-12-11T19:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Admin API: Could not edit service Parameters - Clearing the REST Cached fixed it</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/admin-api-could-not-edit-service-parameters/m-p/430471#M16634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having the same issue with my site. I tried your method and it worked the first time around, but when I tried changing the parameters of another service, the same problem occurred. &lt;/P&gt;&lt;P&gt;I have two machines in one cluster. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="agsissue.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/120042_agsissue.PNG" style="width: 620px; height: 102px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 12:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/admin-api-could-not-edit-service-parameters/m-p/430471#M16634</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-07-31T12:57:42Z</dc:date>
    </item>
  </channel>
</rss>

