<?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 sr lock files from service definition /  upload in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/sr-lock-files-from-service-definition-upload/m-p/1078614#M463</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;We are uploading a service definition for a new service.Unfortunately we see, that either the upfront update of the service definition or the the publishing results in some unhandled lock files, that will remain and keep our script from coming to a sys_exit ... The python script is still running and running.&lt;/P&gt;&lt;P&gt;Additionally we see some 10016 events that occur alongside the publishing process:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The Computerstandard permission settings do not grant Lokal Aktivierung permission for the COM Server application with CLSID&lt;BR /&gt;{0358B920-0AC7-461F-98F4-58E32CD89148}&lt;BR /&gt;and APPID&lt;BR /&gt;{3EB3C877-1F16-487C-9050-104DBCD66683}&lt;BR /&gt;to the user ARSEAP01WV\arcgisserver SID (S-1-5-21-683450879-564433972-2677761187-1002) from address LocalHost (unter Verwendung von LRPC) running in the application container Nicht verfügbar SID (Nicht verfügbar). This security permission can be modified using the Component Services administrative tool.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RiccardoKlinger_0-1626258594870.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18384i6D87B054233A3367/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RiccardoKlinger_0-1626258594870.png" alt="RiccardoKlinger_0-1626258594870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The locks are situated inside the gdb that holds the data fro the used mxd. As the script is still running, I can't delete the lock files by hand. only quitting the python process itself (PID 9248) will get rid of the lock files.&lt;/P&gt;&lt;P&gt;Does anyone came across a similar behaviour?&lt;/P&gt;&lt;P&gt;Our main script parts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.mapping.CreateMapSDDraft(target, sd_draft_path, SERVICE_NAME, "ARCGIS_SERVER", ags_conn_file, False, None, SUMMARY, TAGS)
arcpy.StageService_server(sd_draft_path, sd_file_path)
arcpy.UploadServiceDefinition_server(sd_file_path, ags_conn_file)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running on a virtual windows server 2019 with arcgis server 10.8.1&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 11:36:17 GMT</pubDate>
    <dc:creator>RiccardoKlinger</dc:creator>
    <dc:date>2021-07-14T11:36:17Z</dc:date>
    <item>
      <title>sr lock files from service definition /  upload</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/sr-lock-files-from-service-definition-upload/m-p/1078614#M463</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;We are uploading a service definition for a new service.Unfortunately we see, that either the upfront update of the service definition or the the publishing results in some unhandled lock files, that will remain and keep our script from coming to a sys_exit ... The python script is still running and running.&lt;/P&gt;&lt;P&gt;Additionally we see some 10016 events that occur alongside the publishing process:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The Computerstandard permission settings do not grant Lokal Aktivierung permission for the COM Server application with CLSID&lt;BR /&gt;{0358B920-0AC7-461F-98F4-58E32CD89148}&lt;BR /&gt;and APPID&lt;BR /&gt;{3EB3C877-1F16-487C-9050-104DBCD66683}&lt;BR /&gt;to the user ARSEAP01WV\arcgisserver SID (S-1-5-21-683450879-564433972-2677761187-1002) from address LocalHost (unter Verwendung von LRPC) running in the application container Nicht verfügbar SID (Nicht verfügbar). This security permission can be modified using the Component Services administrative tool.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RiccardoKlinger_0-1626258594870.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18384i6D87B054233A3367/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RiccardoKlinger_0-1626258594870.png" alt="RiccardoKlinger_0-1626258594870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The locks are situated inside the gdb that holds the data fro the used mxd. As the script is still running, I can't delete the lock files by hand. only quitting the python process itself (PID 9248) will get rid of the lock files.&lt;/P&gt;&lt;P&gt;Does anyone came across a similar behaviour?&lt;/P&gt;&lt;P&gt;Our main script parts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.mapping.CreateMapSDDraft(target, sd_draft_path, SERVICE_NAME, "ARCGIS_SERVER", ags_conn_file, False, None, SUMMARY, TAGS)
arcpy.StageService_server(sd_draft_path, sd_file_path)
arcpy.UploadServiceDefinition_server(sd_file_path, ags_conn_file)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running on a virtual windows server 2019 with arcgis server 10.8.1&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/sr-lock-files-from-service-definition-upload/m-p/1078614#M463</guid>
      <dc:creator>RiccardoKlinger</dc:creator>
      <dc:date>2021-07-14T11:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: sr lock files from service definition /  upload</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/sr-lock-files-from-service-definition-upload/m-p/1082626#M478</link>
      <description>&lt;P&gt;My minimal example revealed some error with the Infrastructure:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
arcpy.mapping.CreateMapSDDraft(".\service.mxd", ".\service.sddraft","service" , "ARCGIS_SERVER", ".\AGS_Connection.ags", False, None, "sum", "tags")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The error was seen in the Windows event manager:&lt;/P&gt;&lt;P&gt;Faulting application name: python.exe, version: 0.0.0.0, time stamp: 0x5e9da2f3&lt;/P&gt;&lt;P&gt;Faulting module name: vm3dgl64.dll, version: 3.4.9.0, time stamp: 0x5fac540e&lt;/P&gt;&lt;P&gt;Exception code: 0xc0000005&lt;/P&gt;&lt;P&gt;Fault offset: 0x0000000000083e1d&lt;/P&gt;&lt;P&gt;Faulting process id: 0x1214&lt;/P&gt;&lt;P&gt;Faulting application start time: 0x01d77fd4c71feaf7&lt;/P&gt;&lt;P&gt;Faulting application path: D:\App\PYTHON27\ArcGISx6410.8\python.exe&lt;/P&gt;&lt;P&gt;Faulting module path: C:\Windows\SYSTEM32\vm3dgl64.dll&lt;/P&gt;&lt;P&gt;Report Id: a72ddfdc-6673-420f-8fc5-65ddf441b4f3&lt;/P&gt;&lt;P&gt;Faulting package full name:&lt;/P&gt;&lt;P&gt;Faulting package-relative application ID:&lt;/P&gt;&lt;P&gt;There seem to be a solution for our virtual servers:&amp;nbsp;&lt;A href="https://kb.vmware.com/s/article/83440" target="_blank"&gt;OpenGL dll is not unloaded on application exit (83440) (vmware.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 09:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/sr-lock-files-from-service-definition-upload/m-p/1082626#M478</guid>
      <dc:creator>RiccardoKlinger</dc:creator>
      <dc:date>2021-07-26T09:11:09Z</dc:date>
    </item>
  </channel>
</rss>

