<?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: Issue Publishing SLPK from ArcGIS Pro to ArcGIS Enterprise - Token Generation Error in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1579841#M41536</link>
    <description>&lt;P&gt;Thanks, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9969"&gt;@BillFox&lt;/a&gt;, for responding to the post. Yes, the process does complete successfully. Additionally, based on my findings, when the publishing failed previously, I noticed that the SLPK file was successfully uploaded to the Portal. However, it seems that the hosting server is unable to generate a token from the Portal to extract the file and complete the process.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 07:04:36 GMT</pubDate>
    <dc:creator>MarGIS</dc:creator>
    <dc:date>2025-01-29T07:04:36Z</dc:date>
    <item>
      <title>Issue Publishing SLPK from ArcGIS Pro to ArcGIS Enterprise - Token Generation Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1579440#M41520</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am encountering an issue when attempting to publish an SLPK from ArcGIS Pro to ArcGIS Enterprise. The publishing process fails with the attached error message from ArcGIS Pro. Additionally, I noticed several logs in the Portal that include the following message:&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;StatusMessage: Retrieving JobStatus for a41be3db3ef9492193ed84f8704b1e21: Job ID : jf582265badce4f3f943c54e2d6c82de7, Status : failed, Status Message : Invalid Token&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;It appears that ArcGIS Server is trying to generate a token from the Portal sharing REST API but cannot do so. After further troubleshooting, I found that the URL passed to the Portal is being redirected by the internal load balancer, as shown below:&lt;/P&gt;&lt;P&gt;- Passed URL: `&lt;A href="https://abc-prd-prt-lb.domain:7443/arcgis/sharing/rest/generateToken" target="_blank"&gt;https://abc-prd-prt-lb.domain:7443/arcgis/sharing/rest/generateToken&lt;/A&gt;`&lt;BR /&gt;- Redirected URL: `&lt;A href="https://abc-prd-prt-lb.domain:7443/portal/sharing/rest/generateToken" target="_blank"&gt;https://abc-prd-prt-lb.domain:7443/portal/sharing/rest/generateToken&lt;/A&gt;`&lt;/P&gt;&lt;P&gt;and this resulted not found page as the attached&lt;/P&gt;&lt;P&gt;### Additional Information&lt;/P&gt;&lt;P&gt;Environment Deployment: Highly Available&lt;BR /&gt;Enterprise Version: 11.4&lt;BR /&gt;Operating System: Windows Server 2022&lt;BR /&gt;ArcGIS Pro Version: 3.4&lt;/P&gt;&lt;P&gt;Portal system properties:&lt;BR /&gt;- `WebContextURL`: `&lt;A href="https://gis.domain/portal" target="_blank"&gt;https://gis.domain/portal&lt;/A&gt;`&lt;BR /&gt;- `privatePortalURL`: `&lt;A href="https://abc-prd-prt-lb.domain:7443/arcgis" target="_blank"&gt;https://abc-prd-prt-lb.domain:7443/arcgis&lt;/A&gt;`&lt;/P&gt;&lt;P&gt;Hosting Server security configuration:&lt;BR /&gt;```json&lt;BR /&gt;{&lt;BR /&gt;"portalUrl": "&lt;A href="https://gis.domain/portal" target="_blank"&gt;https://gis.domain/portal&lt;/A&gt;",&lt;BR /&gt;"privatePortalUrl": "&lt;A href="https://abc-prd-prt-lb.domain:7443/arcgis" target="_blank"&gt;https://abc-prd-prt-lb.domain:7443/arcgis&lt;/A&gt;",&lt;BR /&gt;"serverUrl": "&lt;A href="https://gis.domain/hosting" target="_blank"&gt;https://gis.domain/hosting&lt;/A&gt;",&lt;BR /&gt;"privateHostingServerUrl": "&lt;A href="https://abc-prd-srv-lb.domain:6443/arcgis" target="_blank"&gt;https://abc-prd-srv-lb.domain:6443/arcgis&lt;/A&gt;"&lt;BR /&gt;}&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;There is currently no WebContextURL configured for the hosting server. While I understand that it might not make sense to configure a WebContextURL for a federated hosting server, I previously tried setting it to `&lt;A href="https://gis.domain/hosting" target="_blank"&gt;https://gis.domain/hosting&lt;/A&gt;`. However, this caused issues with the "Operation Health" script, as the hosting server's administrative URL became unreachable. I subsequently removed the WebContextURL setting.&lt;/P&gt;&lt;P&gt;Load Balancer Update Health Check configuration:&lt;BR /&gt;- Protocol: HTTP&lt;BR /&gt;- Port: 7443&lt;BR /&gt;- Interval: 30,000 ms&lt;BR /&gt;- Timeout: 3,000 ms&lt;BR /&gt;- Retries: 3&lt;BR /&gt;- Status Code: 200&lt;BR /&gt;- URL Path: `/arcgis/portaladmin/healthCheck`&lt;/P&gt;&lt;P&gt;### Questions&lt;/P&gt;&lt;P&gt;1. Are there any incorrect properties in my current configuration?&lt;BR /&gt;2. Are there any additional properties I should configure to resolve this issue?&lt;/P&gt;&lt;P&gt;I would greatly appreciate any guidance or insights on how to fix this problem.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Redirect when use internal load balancer" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124145i170B3418C3D67450/image-size/large?v=v2&amp;amp;px=999" role="button" title="Page Not Found Error Using LB URL.png" alt="Page Not Found Error Using LB URL.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArcGIS Pro Log File Continued" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124146iA06593FC6F060E68/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArcGIS Pro Log File continued.png" alt="ArcGIS Pro Log File continued.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArcGIS Pro Log File" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124147i4E59011DEE2DE31F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArcGIS Pro Log File.png" alt="ArcGIS Pro Log File.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 08:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1579440#M41520</guid>
      <dc:creator>MarGIS</dc:creator>
      <dc:date>2025-01-28T08:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Publishing SLPK from ArcGIS Pro to ArcGIS Enterprise - Token Generation Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1579643#M41531</link>
      <description>&lt;P&gt;curious:&amp;nbsp; as a different first step, can you try the share package tool? does it complete successfully?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/share-package.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/share-package.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 18:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1579643#M41531</guid>
      <dc:creator>BillFox</dc:creator>
      <dc:date>2025-01-28T18:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Publishing SLPK from ArcGIS Pro to ArcGIS Enterprise - Token Generation Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1579841#M41536</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9969"&gt;@BillFox&lt;/a&gt;, for responding to the post. Yes, the process does complete successfully. Additionally, based on my findings, when the publishing failed previously, I noticed that the SLPK file was successfully uploaded to the Portal. However, it seems that the hosting server is unable to generate a token from the Portal to extract the file and complete the process.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 07:04:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1579841#M41536</guid>
      <dc:creator>MarGIS</dc:creator>
      <dc:date>2025-01-29T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Publishing SLPK from ArcGIS Pro to ArcGIS Enterprise - Token Generation Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1580213#M41546</link>
      <description>&lt;P&gt;after the manual share to portal, does that publish button succeed for you?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BillFox_0-1738188827887.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124316iE7F6612DFB555C59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BillFox_0-1738188827887.png" alt="BillFox_0-1738188827887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 22:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1580213#M41546</guid>
      <dc:creator>BillFox</dc:creator>
      <dc:date>2025-01-29T22:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Publishing SLPK from ArcGIS Pro to ArcGIS Enterprise - Token Generation Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1580361#M41562</link>
      <description>&lt;P&gt;I tried to publish but it failed. You can see the screen named (WebDeveloperTools). When I did not find any error in the browser, I visited Portal Logs and Found the logs in screenshot named (PortalLogs_edited). I tried to republish again from ArcGIS Pro and collected the logs in sequence regarding the process from start until it failure in screenshot named (PortalLogs2_edited).&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PortalLogs_edited.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124345iAD39EA88A34179E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="PortalLogs_edited.png" alt="PortalLogs_edited.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PortalLogs2_edited.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124346i10CB537272587E3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="PortalLogs2_edited.png" alt="PortalLogs2_edited.png" /&gt;&lt;/span&gt;_edited). &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDeveloperTools" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124344i64F0A07B039E2FF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="WebDeveloperTools.png" alt="WebDeveloperTools.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 13:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/issue-publishing-slpk-from-arcgis-pro-to-arcgis/m-p/1580361#M41562</guid>
      <dc:creator>MarGIS</dc:creator>
      <dc:date>2025-01-30T13:56:44Z</dc:date>
    </item>
  </channel>
</rss>

