ArcGIS Enterprise 10.5 backup with WebGIS DR - Failed to generate the ArcGIS Server token from the portal

411
12
09-27-2019 08:13 AM
Occasional Contributor III

Hello,

I need to do a full backup of an AGE 10.5 using the WebGIS DR tool.

The final aim is restoring it on a different machine as described in the guide Migrate to a new machine in ArcGIS Enterprise using the WebGIS DR tool 

My server OS is Windows 2008 R2 64bit.

I am following Create an ArcGIS Enterprise backup—Portal for ArcGIS (10.5.x) | ArcGIS Enterprise.

I have configured my webgis.properties file (called "webgisdir_BAK.properies"), and then I launch from the CMD the command:

   webgisdr --export --file "C:\Program Files\ArcGIS\Portal\tools\webgisdir\webgisdir_BAK.properies"

Unfortunately, I receive the following error:

   Failed to generate the ArcGIS Server token from the portal https://svksi058a.globalnt.it:7443/arcgis/sharing.

   Failed to get the configuration of the web GIS.

   Stopping the webgisdr utility

I attach the encrypted "webgisdir_BAK.properies" and the "webgisdr.log".

I also tried to set the ArcGIS Server to HTTPS Only and have my Web Adaptor allowing administrative access as suggested in Portal Backup with webgisdr: Server is not started, but still I had no luck.

I also opened a case to Esri meanwhile but as this is an important operation, I wanted to post my problem here to see if I had more chances to solve it.

Thanks in advance.

Reply
0 Kudos
12 Replies
Esri Contributor

Hello, 

Have you tried changing your Portal URL to use the web adaptor versus the internal machine name and port?

I would also recommend moving the .properties file outside of its default location in Program files to a newly created folder, apply full permissions for the ArcGIS Portal account, and attempt the backup again.

Also, are you using IWA by chance?

Regards,

Travis

Reply
0 Kudos
Occasional Contributor III

Thanks for the feedback Travis Shore

Yes, I tried with both the Web Adaptor context and the machine name but I had the same error.

I also tried moving the .properties file in another directory where I gave arcgis user full pemissions but still the same...

Sorry but what is IWA?

UPDATE

No, I am not using "Integrated Windows Authentication".

Reply
0 Kudos
Esri Frequent Contributor

Can you describe the configuration? Do you have Portal and Server on separate machines? What URLs are you using for federation?

Reply
0 Kudos
Occasional Contributor III

It's a single machine deployment. The URL used for federation is as follows (as in https://MY_PORTAL/portal/portaladmin/federation/servers/1SERVERID😞

Name:     SVKSI058A.GLOBALNT.IT:6443
Id:     1przKOGLX3ZqhtCj
Url:     https://sit.a4mobility.it/arcgis
Role:     HOSTING_SERVER
Admin Url:     https://SVKSI058A.GLOBALNT.IT:6443/arcgis

Reply
0 Kudos
Occasional Contributor III

Jonathan Quinn

I also saw you other answer to a similar problem here: https://community.esri.com/thread/223536-webgisdr-backup-failed-with-unable-to-generate-token 

Can I please ask you where to find the logback.xml file, if it is present in 10.5 version?

Reply
0 Kudos
Esri Frequent Contributor

The logs are a bit different at 10.5, I'll need to double check what's used at that version. Do you have administrative access enabled for the Server Web Adaptor?

Reply
0 Kudos
Occasional Contributor III
Do you have administrative access enabled for the Server Web Adaptor?

Yes I do.

Reply
0 Kudos
Esri Contributor

As a quick test, outside of the Webgisdr, are you able to make an ArcGIS Server back up  site or Portal backup via the admin end points using the ports or through the Web Adaptor URL? 

https://server:port/arcgis/exportSite or https://portalwebadaptor/portal/portladmin/exportSite 

https://developers.arcgis.com/rest/enterprise-administration/server/exportsite.htm

Occasional Contributor III

Thanks for the hint. Will test ASAP and report back.

Reply
0 Kudos