Select to view content in your preferred language

WebGISDR Backup fails with "Failed to generate token for Portal for ArcGIS. Verify that the credentials you entered are correct"

25893
42
Jump to solution
02-26-2021 04:09 AM
Labels (1)
MHahn
by
Occasional Contributor

The Portal Installation has been updated from 10.7.1 to 10.8.1. 
I am not sure if webgisdr worked after update. But now I got the following error in the webgisdr log: 

2021-02-26 12:53:32 ERROR [main] com.esri.arcgis.webgis.client.WebGISDR - Failed to generate token for Portal for ArcGIS. Verify that the credentials you entered are correct. Check the WebGIS DR utility logs and the Portal for ArcGIS logs for more information.

 I double checked the password 🙂 

In the logback.xml in the webgis directory I set the loglevel to DEBUG. After that I saw the following exception.

Caused by: java.lang.RuntimeException: The response returned HTTP status code 404. Requested URL: https://[fqdn of internal portal url]:7443/arcgis/portaladmin/sharing/rest/generateToken

I got the same response in a browser.
The url to the generateToken endpoint is: 

https://[fqdn of internal portal url]:7443/arcgis/sharing/rest/generateToken 

without the portaladmin directory 

Did I miss something?

 

Thanks!

 

42 Replies
Oiligriv
Frequent Contributor

@EricAnderson_DHS 

attached the log of WebGIS DR

 

0 Kudos
JonathanQuinn
Esri Notable Contributor

https://wing-agswa.dmz.meteoam.it/messages/rest/info: {"messages":["ArcGIS Web Adaptor è stato configurato con SSL/HTTPS. Abilitare SSL/HTTPS per il sito di ArcGIS Server"],"status":"error"}

This statement implies that a request to https://wing-agswa.dmz.meteoam.it/messages/rest/info is returning an error that the WA is accessed via HTTPS but the Server may not have HTTPS enabled. Can you reach the Server over https://server.domain.com:6443/arcgis? In a browser, if you access https://wing-agswa.dmz.meteoam.it/messages/rest/info?f=pjson, do you see the error returned in the message above?

Oiligriv
Frequent Contributor

wow

The error was hidden in the incorrect ArcGIS WebAdaptor configuration.
I re-run the registration command and everything works fine.

Oiligriv_0-1622448764722.png

 

Thank you