<?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: Publish service directly on server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239612#M9235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there may be a certificate issue on the server. The resolution was to use http/port 6080 rather than https/port 6443.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2020 21:00:58 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2020-10-02T21:00:58Z</dc:date>
    <item>
      <title>Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239605#M9228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been publishing services through arcpy and service definition files from a remote machine, but now want to publish services from a mosaic dataset actually stored on the ArcGIS Server machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&amp;nbsp;Is there a local script on the ArcGIS Server for publishing services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first problem I've encountered with this plan is that arcpy installed on the server does not seem to include the mapping module, necessary for creating the connection file (which shouldn't be necessary, since I'm already on the machine):&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/creategisserverconnectionfile.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/creategisserverconnectionfile.htm"&gt;CreateGISServerConnectionFile—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rest of my workflow involves creating, staging, and uploading a service definition file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239605#M9228</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2020-09-28T20:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239606#M9229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way you can copy a previously generated ArcGIS Server connection file from another machine to the machine running ArcGIS Server? These .ags files can be copied between machines, and should work just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2020 21:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239606#M9229</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-28T21:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239607#M9230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Calvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have copied a working .ags to my server machine, however when running&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/createimagesddraft.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/createimagesddraft.htm"&gt;CreateImageSDDraft—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;I see, "Unable to connect to the provided target server: &lt;A href="https://xxx.xxx.xxx.xxx:6443/arcgis/admin/&amp;quot;"&gt;https://xxx.xxx.xxx.xxx:6443/arcgis/admin/"&lt;/A&gt;. I've tried with ags files referencing the actual server ip, as well as attempts at 127.0.0.1 and localhost. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239607#M9230</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2020-09-29T17:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239608#M9231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you copy the URL returned in the error message and paste it into a web browser, are you able to access the page with the credentials provided in the .ags file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239608#M9231</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-29T18:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239609#M9232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239609#M9232</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2020-09-29T18:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239610#M9233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never seen that particular error message before and I see no other reports of it after a quick GeoNet search. Could you provide the full error trace stack?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, what Python ID are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239610#M9233</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-29T18:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239611#M9234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;Traceback &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;most recent call last&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; File &lt;SPAN class="string token"&gt;"/arcgis/server/publisher/publish.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;175&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; publish_dir self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;create_sddraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mds_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sddraft&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; File &lt;SPAN class="string token"&gt;"/arcgis/server/publisher/publish.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;95&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; create_sddraft &lt;SPAN class="string token"&gt;"wms_proxy,"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; mds_name File &lt;SPAN class="string token"&gt;"/home/arcgis/miniconda2/envs/arcpy-publish/lib/python3.6/site-packages/arcpy/__init__.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;2119&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; CreateImageSDDraft &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; arcgisscripting&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_createimageservicesddraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;raster_or_mosaic_layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_sddraft&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; server_type&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; connection_file_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; copy_data_to_server&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; folder_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; summary&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tags&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; RuntimeError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Unable to connect to the provided target server&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;xxx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;xxx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;xxx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;xxx&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6443&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;admin&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info: using Linux Enterprise AMI on AWS EC2. Do I perhaps need to expose any outgoing ports to allow this sort of roundtrip connection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using VS Code, but running in bash terminal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239611#M9234</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2020-09-29T18:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Publish service directly on server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239612#M9235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there may be a certificate issue on the server. The resolution was to use http/port 6080 rather than https/port 6443.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 21:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-service-directly-on-server/m-p/239612#M9235</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2020-10-02T21:00:58Z</dc:date>
    </item>
  </channel>
</rss>

