ERROR

Portal for ArcGIS: The server at <Portal_URL> returned an error. Could not decrypt token. Token may not be valid

Last Published: December 19, 2024

Error Message

Attempts to validate a federation between Portal for ArcGIS and ArcGIS Server in an ArcGIS Enterprise portal fail, and the following error is returned:

Error:
The server at <Portal_URL> returned an error. Could not decrypt token. Token may not be valid.

Cause

  • Mismatch between the WebContextURL property and the ArcGIS Web Adaptor FQDN (port 443). When Portal for ArcGIS is upgraded, the WebContextURL property may be reset to blank.
  • Portal for ArcGIS is not federated with an ArcGIS Server site and the ArcGIS Server site is not assigned as the hosting server.

Solution or Workaround

Depending on the cause, the workarounds provided are applicable.

Update the WebContextURL property with the FQDN on the ArcGIS Web Adaptor port 443 binding

Update the WebContextURL property to match the FQDN on the web adaptor port 443 binding. Refer to the Portal for ArcGIS: Configure a portal to use a reverse proxy or load balancer for instructions.

Federate Portal for ArcGIS with an ArcGIS Server site and assign it as the hosting server

Refer to Portal for ArcGIS: Integrate your portal with ArcGIS Server for instructions.

If the error persists even though the hosting server has been configured, ensure the server site is running.

  1. On the ArcGIS Enterprise site, navigate to Organization > Settings > Servers.
  2. Click Validate server sites.

If the server site fails to validate, ensure the ArcGIS Server service is running on Windows. On the server machine, navigate to Control Panel > Administrative Tools > Services.

  • If the Portal for ArcGIS service is not running, right-click the service and click Start.
  • If the Portal for ArcGIS service is running, right-click the service and click Restart.

Article ID: 000034322

Software:
  • Portal for ArcGIS
  • ArcGIS Server
  • ArcGIS Enterprise 11 3
  • ArcGIS Enterprise 11 2
  • ArcGIS Enterprise 11 4

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options