<?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: ArcPy 10.2.1 - Service Publishing Error in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239812#M9249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having exactly the same problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything publishes fine from ArcMap but using arcpy it fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried moving everything from my project to C:/temp/ as suggested by other users but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if it's because I have a trial license but would be good to have this clarified!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The whole reason for the trial is to check we can get scripted publishing working before investing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Mar 2014 11:55:50 GMT</pubDate>
    <dc:creator>DavidBowman</dc:creator>
    <dc:date>2014-03-02T11:55:50Z</dc:date>
    <item>
      <title>ArcPy 10.2.1 - Service Publishing Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239809#M9246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using ArcPy on Windows (via ArcGIS Desktop or iPython), I am able to successfully publish map services using the draft/stage/upload approach, however I am not able to perform the same task using ArcPy on the ArcGIS Server (Linux) machine itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a draft and analyzing works fine, but when I attempt to stage the service (arcpy.StageService_server(...)) I'm encountering the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcgisscripting.ExecuteError: ERROR 001270: Consolidating the data failed.
Failed to execute (StageService).&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS Server 10.2.1 for Linux (RHEL 6, x86_64)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are several other forum posts mentioning this error message, but I've tried the advice mentioned (shortening staging/connection path names, ensuring adequate storage is available, etc.), but nothing has resolved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I am using the Python/ArcPy environment packaged with the ArcGIS Server machine itself, I suspect what I'm trying to do may not be possible as the ArcInfo licensing level may be required, but that's just a guess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to publish a service using ArcPy on the ArcGIS Server machine itself?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems like it should be a fairly common task for enterprise ArcGIS Server installations, since publishing large map services to a remote ArcGIS Server over the internet (not a LAN) is quite time-consuming, so it would be nice to be able to copy the MXD/data to the server manually and run the publishing locally.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 20:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239809#M9246</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2014-02-10T20:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.2.1 - Service Publishing Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239810#M9247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same problem here, looking around the general solution was to change the stage folder to something short like: C:\temp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but did't solve my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I deploy the service by saving the service definition and then publish it in the ArcGisServer Manager (web admin).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's the only way to deploy a Geoprocessing tool for me right now...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 11:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239810#M9247</guid>
      <dc:creator>LucaSimone</dc:creator>
      <dc:date>2014-02-11T11:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.2.1 - Service Publishing Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239811#M9248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the input.&amp;nbsp; That sounds like a good workaround for some services, but I don't think that will work for shapefile-based map services that copy data to the server.&amp;nbsp; However I suppose it should work if the shapefiles are copied over manually to a registered data store folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully ESRI can give an answer as to whether or not the original approach is possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 12:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239811#M9248</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2014-02-11T12:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.2.1 - Service Publishing Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239812#M9249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having exactly the same problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything publishes fine from ArcMap but using arcpy it fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried moving everything from my project to C:/temp/ as suggested by other users but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if it's because I have a trial license but would be good to have this clarified!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The whole reason for the trial is to check we can get scripted publishing working before investing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 11:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/239812#M9249</guid>
      <dc:creator>DavidBowman</dc:creator>
      <dc:date>2014-03-02T11:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.2.1 - Service Publishing Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/1225305#M34382</link>
      <description>&lt;P&gt;I'm having this exact same problem in 10.7.1. The exact same script on Windows will run succesfully in about 3 minutes, but running from ArcPy on ImageServer(Linux, Ubuntu 20.04) will result in this exact same error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I think it's due to data registration paths getting mangled by StageService.&lt;BR /&gt;&lt;BR /&gt;When I pull the method StageService_server out of the try blocks (from examples) I can get better errors. The error message prints out the paths to .sd and .sdd files, and everytime, my Linux .sd path gets converted to a Windows path. (Uses backslashes instead of forward-slashes). No matter what I do to my Linux paths, the StageService_server method will convert only the .sd path to Windows.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 18:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-10-2-1-service-publishing-error/m-p/1225305#M34382</guid>
      <dc:creator>ColinAlexander1</dc:creator>
      <dc:date>2022-10-25T18:03:38Z</dc:date>
    </item>
  </channel>
</rss>

