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"

25891
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
MHahn
by
Occasional Contributor

Hi @EricAnderson_DHS,

the german support told me that there is no supported workaround for this fix. 

If you got a support of esri contcact them or edit the url on your own. 

 

by Anonymous User
Not applicable

We are experiencing the same problem. I believe it started after the portal machine disk got full. I don't understand how this shortname--FQDN thing will get rid of the word portaladmin/ in this url:

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

In our case, this doesn't fix it. webgisdr export still fails. I have installed Enterprise patch 3 and followed the steps as suggested in the solution.

Can somebody please explain?

 

0 Kudos
DanMcCoy1
Occasional Contributor
0 Kudos
by Anonymous User
Not applicable

Thanks! I didn't read well enough. I missed the Home Application patch was required as well. After installing it, and doing the 'shortname-fqdn' thing, it seems to work! 

Oiligriv
Frequent Contributor

Hello
I also encountered the same error after an upgrade to version 10.8.1
i followed all the post and advice but it didn't work.
the installation is on a Linux environment.
Beyond the Sites 3 patch, will another patch be released?

Thank you

0 Kudos
JonathanQuinn
Esri Notable Contributor

You'll need to install the HA Rejoin patch, not the Sites 3 patch. The Sites 3 patch does not have the fix in it. Once you install the HA Rejoin patch, you can try the shortname workflow.

https://support.esri.com/en/Products/Enterprise/portal-for-arcgis/portal-for-arcgis/10-8-1#downloads...

0 Kudos
Oiligriv
Frequent Contributor


Hi Jonathan I did the environment update and immediately after running all patches.
Since then the Backup hasn't worked anymore.
I haven't changed hostnames or configuration.
Before the upgrade backups in 10.8.0 were successful.

Oiligriv_1-1622126943183.png

 

0 Kudos
EricAnderson_DHS
Frequent Contributor

@Oiligriv ,

 

Go to https://portal.domain:7443/arcgis/portaladmin/machines/<machine  name>, what is listed as the Admin URL? If it's  https://portal.domain:7443/arcgis/portaladmin,  then that's the issue (should not have "/portaladmin", should end in just "/arcgis") and follow the instructions in this comment to fix it:

 

https://community.esri.com/t5/arcgis-enterprise-portal/webgisdr-backup-fails-with-quot-failed-to-gen...

Oiligriv
Frequent Contributor


Hi EricA
thanks for your intervention

the portal correctly reports the admin url https: // fqdn: 7443 / arcgis

The portal is in HA, also the second node correctly reports the admin url

 

Oiligriv_0-1622130224093.png

Oiligriv_1-1622130385673.png

 

0 Kudos
EricAnderson_DHS
Frequent Contributor

@Oiligriv  it sounds like this differs than the issue being discussed in this post. Can you please provide the exact error message that WebGISDR is returning? Ideally in debug mode (set in logback.xml in webgisdr folder directory).

 

Thank you

0 Kudos