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:
{"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.
Regards,
Daniel
Solved! Go to Solution.
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.
Are there any additional errors reported in the webgisdr.log located at C:\Program Files\ArcGIS\Portal\tools\webgisdr?
@JakeSkinner no more errors. It is the only one, before the process stops.
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.
@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:
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.
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.
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.