Select to view content in your preferred language

Issue Publishing SLPK from ArcGIS Pro to ArcGIS Enterprise - Token Generation Error

473
4
01-28-2025 12:44 AM
MarGIS
by
Regular Contributor

Hello Everyone,

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:

```
StatusMessage: Retrieving JobStatus for a41be3db3ef9492193ed84f8704b1e21: Job ID : jf582265badce4f3f943c54e2d6c82de7, Status : failed, Status Message : Invalid Token
```

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:

- Passed URL: `https://abc-prd-prt-lb.domain:7443/arcgis/sharing/rest/generateToken`
- Redirected URL: `https://abc-prd-prt-lb.domain:7443/portal/sharing/rest/generateToken`

and this resulted not found page as the attached

### Additional Information

Environment Deployment: Highly Available
Enterprise Version: 11.4
Operating System: Windows Server 2022
ArcGIS Pro Version: 3.4

Portal system properties:
- `WebContextURL`: `https://gis.domain/portal`
- `privatePortalURL`: `https://abc-prd-prt-lb.domain:7443/arcgis`

Hosting Server security configuration:
```json
{
"portalUrl": "https://gis.domain/portal",
"privatePortalUrl": "https://abc-prd-prt-lb.domain:7443/arcgis",
"serverUrl": "https://gis.domain/hosting",
"privateHostingServerUrl": "https://abc-prd-srv-lb.domain:6443/arcgis"
}
```

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 `https://gis.domain/hosting`. However, this caused issues with the "Operation Health" script, as the hosting server's administrative URL became unreachable. I subsequently removed the WebContextURL setting.

Load Balancer Update Health Check configuration:
- Protocol: HTTP
- Port: 7443
- Interval: 30,000 ms
- Timeout: 3,000 ms
- Retries: 3
- Status Code: 200
- URL Path: `/arcgis/portaladmin/healthCheck`

### Questions

1. Are there any incorrect properties in my current configuration?
2. Are there any additional properties I should configure to resolve this issue?

I would greatly appreciate any guidance or insights on how to fix this problem.

Thank you in advance!Page Not Found Error Using LB URL.pngArcGIS Pro Log File continued.pngArcGIS Pro Log File.png

0 Kudos
4 Replies
BillFox
MVP Frequent Contributor

curious:  as a different first step, can you try the share package tool? does it complete successfully?

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/share-package.htm

 

0 Kudos
MarGIS
by
Regular Contributor

Thanks, @BillFox, 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.

0 Kudos
BillFox
MVP Frequent Contributor

after the manual share to portal, does that publish button succeed for you?

BillFox_0-1738188827887.png

 

0 Kudos
MarGIS
by
Regular Contributor

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).
PortalLogs_edited.pngPortalLogs2_edited.png_edited). WebDeveloperTools.png

0 Kudos