Webgisdr not packaging backup file correctly

878
3
06-30-2020 07:12 AM
DylanJones2
New Contributor

Webgisdr will backup the portal and server, but not data store.

 

I have tried automating ArcGIS backups using task scheduler, however when the task runs after hours, the full backup attempt will run as shown in these logs:

The portal and server say their backups are complete. And the utility is then closed without mentioning the data store.

However, when I go to look in the backup_location, it is empty leaving only a folder in the shared_location. This is the folder that was created when this backup started to run, but it only contains a datastore folder, no portal or server folders.

Whenever I have initialized the backup manually, it works correctly. But when I automate the process with windows task scheduler, it gives me this same issue. Automating this backup would be useful as it enables us to do backups will no one is in the office. I have only had this issue attempting full backups, and the incremental backups that run automatically work just fine.

 

Does anyone have a solution as to why the backup file isn’t packaged into my backup location, and why it’s only when I use task scheduler? When I execute the same file manually it works correctly.

 

No permission issues btw, as I’ve successfully ran the backups with these locations manually

0 Kudos
3 Replies
JonathanQuinn
Esri Notable Contributor

Can you redirect the console output to a file within whatever script you're using to run the backup? I'm wondering if the backup for the Data Store is not completing, but the error isn't logged in the logs. If any component fails, then the backup won't be completed. You can also enable more logging from the DR tool in the logback.xml file, so you can see what the HTTP requests look like. That'll show you the job status response from the Data Store so you can validate whether it's created correctly.

0 Kudos
DylanJones2
New Contributor

2020-07-12 01:16:09 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:14 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:21 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:26 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:31 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:36 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:42 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:48 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:53 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:16:59 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:17:04 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:17:09 DEBUG [pool-2-thread-3] com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"jobId":"8e3f9168-4411-4154-b6d3-bdd401f9ae28","description":"Create data store snapshot July-12-2020-at-1-00-11-AM-EDT-77-FULL to D:\\SharedLocation\\WebGISSite1594530006658\\dataStore\\058e9160-400b-4f3a-bb74-f30d711beeff","lastModified":"2020-07-12 01:00","status":"scheduled"}
2020-07-12 01:26:40 DEBUG [main] com.esri.arcgis.webgis.service.impl.WebGISDRDispatcher - The handled task number: 0

0 Kudos
DylanJones2
New Contributor

This is a small sample of what the log file returned. The first lines repeated for 15 minutes, and this is what returned afterwards. "The handled task number: 0" and the data store service keeps mentioning "last modified" and "status: scheduled"

0 Kudos