Select to view content in your preferred language

WebGISDR full restore fails for ArcGIS Server | Import site failed with the following error. Invalid file path

3254
6
Jump to solution
08-05-2023 10:56 AM
Labels (1)
DanielMunioz
New Contributor

Hello,

 

I'd appreciate any assistance in resolving the following issue:

 

I have a distributed environment deployment setup on a two machine version 10.6.1. After follow the recomedations of this blog https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/migrate-to-a-new-machine-... all goes fine until try the restore.

 

The attempted full restore stars correctly, restores Data Store correctly but when try to restore Server throws the following error:

 

DanielMunioz_0-1691257644719.jpeg

 

{"code":500,"messages":["Import site failed with the following error. Invalid file path '\\\\<server-name\\<shared-dir>\\WebGISSite1691208412471\\server\\nywdujqe4hq9a20m\\June-30-2023-6-26-11-PM-COT.agssite'."],"status":"error"}

 

 After that I review if there any error with the file or the unzipp process, all is ok, the file exist and is accesible in read/write mode.

 

What I did was block file to be deleted in order to can get the entire picture. Finaly I don´t know why the tool can't recognice the file path if they are identical.

 

DanielMunioz_0-1691256887630.jpeg

 

Regards,

Daniel

0 Kudos
1 Solution

Accepted Solutions
ChristopherPawlyszyn
Esri Contributor

I would verify the ArcGIS Server service account matches the one running ArcGIS Data Store and Portal for ArcGIS, as this sounds like a permissions issue on the share. Barring that possibility, I would create a directory on the share using the same account running the WebGISDR tool, then attempt to access that UNC path from the ArcGIS Server machine logged-in as the service account. Hopefully that leads you in the right direction.


-- Chris Pawlyszyn

View solution in original post

6 Replies
JakeSkinner
Esri Esteemed Contributor

@DanielMunioz,

Are there any additional errors reported in the webgisdr.log located at C:\Program Files\ArcGIS\Portal\tools\webgisdr?

0 Kudos
DanielMunioz
New Contributor

@JakeSkinner no more errors. It is the only one, before the process stops. 

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Check to make sure the service account running the Portal service, and the user account running the webgisdr utility both have Full Control of the directory.

0 Kudos
DanielMunioz
New Contributor

@JakeSkinnerI checked and as you said both users have full control and they had it, however I changed the user that launch the portal service to the same that I'm using to execute webgisdr, the result was the same:

DanielMunioz_0-1691503555058.jpeg

 

DanielMunioz_1-1691503601287.jpeg

 

DanielMunioz_2-1691503631025.jpeg

 

2023-08-08 08:00:41 INFO [main] com.esri.arcgis.webgis.client.WebGISDR - Starting the WebGIS DR utility.
2023-08-08 08:00:43 INFO [main] com.esri.arcgis.webgis.storageservice.file.FileStorageService - Initializing File Storage Service with Base Directory: \\<server-name>\extract
2023-08-08 08:00:49 INFO [main] com.esri.arcgis.webgis.storageservice.file.FileStorageService - Unzipping the backup file:
\\<server-name>\extract\June-30-2023-7-09-03-PM-COT-FULL.webgissite
2023-08-08 08:02:50 INFO [main] com.esri.arcgis.webgis.util.WebGISUtil - The backup file has been unzipped in 00hr:02min:01sec.
2023-08-08 08:02:50 INFO [main] com.esri.arcgis.webgis.service.impl.WebGISDRFrontController - The backup file was created at June 30, 2023 7:09:03 PM COT.
2023-08-08 08:14:50 INFO [main] com.esri.arcgis.webgis.util.WebGISUtil - The restore of ArcGIS Data Store has completed in 00hr:11min:59sec.
2023-08-08 08:14:52 ERROR [pool-2-thread-2] com.esri.arcgis.webgis.component.Server - Failed to restore the ArcGIS Server:
Url: https://arcgisportal.<domain>/server.
2023-08-08 08:14:52 ERROR [pool-2-thread-2] com.esri.arcgis.webgis.component.Server - {"code":500,"messages":["Import site failed with the following error. Invalid file path '\\\\<server-name>\\extract\\WebGISSite1691499643186\\server\\nywdujqe4hq9a20m\\June-30-2023-6-26-11-PM-COT.agssite'."],"status":"error"}
2023-08-08 08:14:52 ERROR [main] com.esri.arcgis.webgis.service.impl.WebGISDRDispatcher - Exception: Failed to restore the ArcGIS Server.
2023-08-08 08:14:52 ERROR [main] com.esri.arcgis.webgis.client.WebGISDR - Failed to restore the ArcGIS Server.

 

I don´t know why if the tool writes and deletes succesfully the unzipp files in the dir, reach the Data Store and restored it succsesfully, it can´t reach the .agssite path what is proved is in the exactly the same path. Do you have some idea?

 

TIA for your help.

 

0 Kudos
ChristopherPawlyszyn
Esri Contributor

I would verify the ArcGIS Server service account matches the one running ArcGIS Data Store and Portal for ArcGIS, as this sounds like a permissions issue on the share. Barring that possibility, I would create a directory on the share using the same account running the WebGISDR tool, then attempt to access that UNC path from the ArcGIS Server machine logged-in as the service account. Hopefully that leads you in the right direction.


-- Chris Pawlyszyn
DanielMunioz
New Contributor

Hello Chris,

Thank you very much for your help, indeed after reviewing the user running ArcGIS Server, I identified that it was a different user than the user running the Portal for ArcGIS service. Finally, what I did was configure the user that runs the ArcGIS server service, unifying it with the one that runs Portal for ArcGIS and everything worked correctly.

0 Kudos