[GeoNode-users] restore a docker backup

Alessio Gottardo tappoz84 at yahoo.it
Sat Jan 16 12:43:00 PST 2021


Hi guys,
I am trying to restore a backup for a docker cluster and I consistently see the Geoserver error at the bottom of this email.No matter if I use "backup_restore" or "/backup_restore".What's wrong with what I am doing below?How can I restore a docker backup?
Cheers
1. What I did was to upload a TIF file via the Geonode portal.
2. Then backup the docker cluster with this command:docker exec -it django4mything2020 sh -c 'SOURCE_URL=localhost TARGET_URL=localhost ./mything2020/br/backup.sh backup_restore'
3. Then making sure some backup was here:ls -la /var/lib/docker/volumes/mything2020-backup-restore/_data/total 37372drwxr-xr-x 2 root root     4096 Jan 16 20:26 ./drwxr-xr-x 3 root root     4096 Jan 16 20:22 ../-rw-r--r-- 1 root root      723 Jan 16 20:26 2021-01-16_201750.ini-rw-r--r-- 1 root root       70 Jan 16 20:26 2021-01-16_201750.md5-rw-r--r-- 1 root root 38249812 Jan 16 20:26 2021-01-16_201750.zip
4. Then try to restore the backup with this command:docker exec -it django4mything2020 sh -c 'SOURCE_URL=localhost TARGET_URL=localhost ./mything2020/br/restore.sh backup_restore'
5. Then I keep seeing the following error for Geoserver every time I try to restore the backup:
Restoring 'GeoServer Catalog [http://geoserver:8080/geoserver/]' from '/backup_restore/tmpaf02/2021-01-16_201750/geoserver_catalog.zip'.STARTED - 3/11FAILED - 5/11Restoring 'GeoServer Catalog [http://geoserver:8080/geoserver/]' from '/backup_restore/tmpv4vmvkcc/2021-01-16_202824/geoserver_catalog.zip'.STARTED - 7/11FAILED - 8/11Traceback (most recent call last):  File "/usr/src/geonode/geonode/br/management/commands/restore.py", line 286, in execute_restore    self.restore_geoserver_backup(config, settings, target_folder,  File "/usr/src/geonode/geonode/br/management/commands/restore.py", line 701, in restore_geoserver_backup    raise ValueError(error_backup.format(url, r.status_code, r.text))ValueError: Could not successfully restore GeoServer catalog [http://geoserver:8080/geoserver/rest/br/restore/]: 200 - {"restore":{"totalNumberOfSteps":11,"execution":{"id":1,"version":2,"stepExecutions":{"@class":"java.util.concurrent.CopyOnWriteArraySet","step":[{"name":"restoreNamespaceInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:28 PM","endTime":"1\/16\/21 8:28 PM","lastUpdated":"1\/16\/21 8:28 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmp15fc2996-5c85-4d2a-a636-70056de0a356","time":1610828936339},"readCount":1,"writeCount":1,"failureExceptions":""},{"name":"restoreWorkspaceInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:28 PM","endTime":"1\/16\/21 8:28 PM","lastUpdated":"1\/16\/21 8:28 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmp15fc2996-5c85-4d2a-a636-70056de0a356","time":1610828936339},"readCount":1,"writeCount":1,"failureExceptions":""},{"name":"restoreStoreInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:28 PM","endTime":"1\/16\/21 8:28 PM","lastUpdated":"1\/16\/21 8:28 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmp15fc2996-5c85-4d2a-a636-70056de0a356","time":1610828936339},"readCount":1,"writeCount":1,"failureExceptions":""},{"name":"restoreResourceInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:28 PM","endTime":"1\/16\/21 8:28 PM","lastUpdated":"1\/16\/21 8:28 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmp15fc2996-5c85-4d2a-a636-70056de0a356","time":1610828936339},"readCount":1,"writeCount":1,"failureExceptions":""},{"name":"restoreStyleInfos","status":"FAILED","exitStatus":{"exitCode":"FAILED","exitDescription":"org.geoserver.catalog.CatalogException: org.geoserver.catalog.CatalogException: Error persisting StyleInfoImpl[geonode:isoiete_Sahel] to workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.backuprestore.BackupRestoreItem.logValidationExceptions(BackupRestoreItem.java:307)\n\tat org.geoserver.backuprestore.writer.CatalogItemWriter.write(CatalogItemWriter.java:130)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n\tat com.sun.proxy.$Proxy102.write(Unknown Source)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:175)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:151)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:274)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:199)\n\tat org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:75)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)\n\tat org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)\n\tat org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)\n\tat org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)\n\tat org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)\n\tat org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)\n\tat org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)\n\tat org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)\n\tat org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)\n\tat org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:275)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.geoserver.catalog.CatalogException: Error persisting StyleInfoImpl[geonode:isoiete_Sahel] to workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:616)\n\tat org.geoserver.config.GeoServerConfigPersister.addStyle(GeoServerConfigPersister.java:541)\n\tat org.geoserver.config.GeoServerConfigPersister.handleAddEvent(GeoServerConfigPersister.java:86)\n\tat org.geoserver.catalog.impl.CatalogImpl.event(CatalogImpl.java:1729)\n\tat org.geoserver.catalog.impl.CatalogImpl.fireAdded(CatalogImpl.java:1689)\n\tat org.geoserver.catalog.impl.CatalogImpl.added(CatalogImpl.java:1668)\n\tat org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:1501)\n\tat org.geoserver.backuprestore.writer.CatalogItemWriter.write(CatalogItemWriter.java:115)\n\t... 37 more\nCaused by: java.lang.IllegalStateException: Cannot create workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:347)\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.setContents(FileSystemResourceStore.java:532)\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:610)\n\t... 44 more\nCaused by: java.io.FileNotFoundException: Unable to createisoiete_Sahel.xml - not a directory \/geoserver_data\/data\/workspaces\/geonode\/styles\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:344)\n\t... 46 more\n"},"startTime":"1\/16\/21 8:28 PM","endTime":"1\/16\/21 8:28 PM","lastUpdated":"1\/16\/21 8:28 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmp15fc2996-5c85-4d2a-a636-70056de0a356","time":1610828936339},"readCount":7,"writeCount":0,"failureExceptions":{"SEVERE":"org.geoserver.catalog.CatalogException: Error persisting StyleInfoImpl[geonode:isoiete_Sahel] to workspaces\/geonode\/styles\/isoiete_Sahel.xml\norg.geoserver.catalog.CatalogException: org.geoserver.catalog.CatalogException: Error persisting StyleInfoImpl[geonode:isoiete_Sahel] to workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.backuprestore.BackupRestoreItem.logValidationExceptions(BackupRestoreItem.java:307)\n\tat org.geoserver.backuprestore.writer.CatalogItemWriter.write(CatalogItemWriter.java:130)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n\tat com.sun.proxy.$Proxy102.write(Unknown Source)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:175)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:151)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:274)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:199)\n\tat org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:75)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)\n\tat org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)\n\tat org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)\n\tat org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)\n\tat org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)\n\tat org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)\n\tat org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)\n\tat org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)\n\tat org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)\n\tat org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:275)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.geoserver.catalog.CatalogException: Error persisting StyleInfoImpl[geonode:isoiete_Sahel] to workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:616)\n\tat org.geoserver.config.GeoServerConfigPersister.addStyle(GeoServerConfigPersister.java:541)\n\tat org.geoserver.config.GeoServerConfigPersister.handleAddEvent(GeoServerConfigPersister.java:86)\n\tat org.geoserver.catalog.impl.CatalogImpl.event(CatalogImpl.java:1729)\n\tat org.geoserver.catalog.impl.CatalogImpl.fireAdded(CatalogImpl.java:1689)\n\tat org.geoserver.catalog.impl.CatalogImpl.added(CatalogImpl.java:1668)\n\tat org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:1501)\n\tat org.geoserver.backuprestore.writer.CatalogItemWriter.write(CatalogItemWriter.java:115)\n\t... 37 more\nCaused by: java.lang.IllegalStateException: Cannot create workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:347)\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.setContents(FileSystemResourceStore.java:532)\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:610)\n\t... 44 more\nCaused by: java.io.FileNotFoundException: Unable to createisoiete_Sahel.xml - not a directory \/geoserver_data\/data\/workspaces\/geonode\/styles\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:344)\n\t... 46 more\n\nError persisting StyleInfoImpl[geonode:isoiete_Sahel] to workspaces\/geonode\/styles\/isoiete_Sahel.xml\norg.geoserver.catalog.CatalogException: Error persisting StyleInfoImpl[geonode:isoiete_Sahel] to workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:616)\n\tat org.geoserver.config.GeoServerConfigPersister.addStyle(GeoServerConfigPersister.java:541)\n\tat org.geoserver.config.GeoServerConfigPersister.handleAddEvent(GeoServerConfigPersister.java:86)\n\tat org.geoserver.catalog.impl.CatalogImpl.event(CatalogImpl.java:1729)\n\tat org.geoserver.catalog.impl.CatalogImpl.fireAdded(CatalogImpl.java:1689)\n\tat org.geoserver.catalog.impl.CatalogImpl.added(CatalogImpl.java:1668)\n\tat org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:1501)\n\tat org.geoserver.backuprestore.writer.CatalogItemWriter.write(CatalogItemWriter.java:115)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n\tat com.sun.proxy.$Proxy102.write(Unknown Source)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:175)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:151)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:274)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:199)\n\tat org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:75)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)\n\tat org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)\n\tat org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)\n\tat org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)\n\tat org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)\n\tat org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)\n\tat org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)\n\tat org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)\n\tat org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)\n\tat org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:275)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.lang.IllegalStateException: Cannot create workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:347)\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.setContents(FileSystemResourceStore.java:532)\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:610)\n\t... 44 more\nCaused by: java.io.FileNotFoundException: Unable to createisoiete_Sahel.xml - not a directory \/geoserver_data\/data\/workspaces\/geonode\/styles\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:344)\n\t... 46 more\n\nCannot create workspaces\/geonode\/styles\/isoiete_Sahel.xml\njava.lang.IllegalStateException: Cannot create workspaces\/geonode\/styles\/isoiete_Sahel.xml\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:347)\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.setContents(FileSystemResourceStore.java:532)\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:610)\n\tat org.geoserver.config.GeoServerConfigPersister.addStyle(GeoServerConfigPersister.java:541)\n\tat org.geoserver.config.GeoServerConfigPersister.handleAddEvent(GeoServerConfigPersister.java:86)\n\tat org.geoserver.catalog.impl.CatalogImpl.event(CatalogImpl.java:1729)\n\tat org.geoserver.catalog.impl.CatalogImpl.fireAdded(CatalogImpl.java:1689)\n\tat org.geoserver.catalog.impl.CatalogImpl.added(CatalogImpl.java:1668)\n\tat org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:1501)\n\tat org.geoserver.backuprestore.writer.CatalogItemWriter.write(CatalogItemWriter.java:115)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n\tat com.sun.proxy.$Proxy102.write(Unknown Source)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:175)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:151)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:274)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:199)\n\tat org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:75)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)\n\tat org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)\n\tat org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)\n\tat org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)\n\tat org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)\n\tat org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)\n\tat org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)\n\tat org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)\n\tat org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)\n\tat org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:275)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.io.FileNotFoundException: Unable to createisoiete_Sahel.xml - not a directory \/geoserver_data\/data\/workspaces\/geonode\/styles\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:344)\n\t... 46 more\n\nUnable to createisoiete_Sahel.xml - not a directory \/geoserver_data\/data\/workspaces\/geonode\/styles\njava.io.FileNotFoundException: Unable to createisoiete_Sahel.xml - not a directory \/geoserver_data\/data\/workspaces\/geonode\/styles\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.file(FileSystemResourceStore.java:344)\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.setContents(FileSystemResourceStore.java:532)\n\tat org.geoserver.config.GeoServerConfigPersister.persist(GeoServerConfigPersister.java:610)\n\tat org.geoserver.config.GeoServerConfigPersister.addStyle(GeoServerConfigPersister.java:541)\n\tat org.geoserver.config.GeoServerConfigPersister.handleAddEvent(GeoServerConfigPersister.java:86)\n\tat org.geoserver.catalog.impl.CatalogImpl.event(CatalogImpl.java:1729)\n\tat org.geoserver.catalog.impl.CatalogImpl.fireAdded(CatalogImpl.java:1689)\n\tat org.geoserver.catalog.impl.CatalogImpl.added(CatalogImpl.java:1668)\n\tat org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:1501)\n\tat org.geoserver.backuprestore.writer.CatalogItemWriter.write(CatalogItemWriter.java:115)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)\n\tat org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n\tat com.sun.proxy.$Proxy102.write(Unknown Source)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:175)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:151)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:274)\n\tat org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:199)\n\tat org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:75)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)\n\tat org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)\n\tat org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)\n\tat org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)\n\tat org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)\n\tat org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)\n\tat org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)\n\tat org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)\n\tat org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)\n\tat org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:275)\n\tat java.lang.Thread.run(Thread.java:748)\n"}}]},"status":"FAILED","startTime":"2021-01-16 20:28:56.341 UTC","createTime":"2021-01-16 20:28:56.340 UTC","endTime":"2021-01-16 20:28:56.965 UTC","lastUpdated":"2021-01-16 20:28:57.19 UTC","exitStatus":{"exitCode":"FAILED","exitDescription":""},"progress":"5\/11"},"options":{"@class":"synchList","option":["BK_SKIP_SECURITY=true","BK_BEST_EFFORT=false","job.execution.name=restoreJob","exclude.file.path=","BK_SKIP_SETTINGS=true","BK_CLEANUP_TEMP=true"]},"archiveFile":{"@class":"resource","$":"\/backup_restore\/tmpaf02\/2021-01-16_201750\/geoserver_catalog.zip"}}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):  File "/usr/src/geonode/geonode/br/management/commands/restore.py", line 297, in execute_restore    self.restore_geoserver_backup(config, settings, recovery_folder,  File "/usr/src/geonode/geonode/br/management/commands/restore.py", line 701, in restore_geoserver_backup    raise ValueError(error_backup.format(url, r.status_code, r.text))ValueError: Could not successfully restore GeoServer catalog [http://geoserver:8080/geoserver/rest/br/restore/]: 200 - {"restore":{"totalNumberOfSteps":11,"execution":{"id":2,"version":2,"stepExecutions":{"@class":"java.util.concurrent.CopyOnWriteArraySet","step":[{"name":"restoreNamespaceInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":1,"writeCount":1,"failureExceptions":""},{"name":"restoreWorkspaceInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":1,"writeCount":1,"failureExceptions":""},{"name":"restoreStoreInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":0,"writeCount":0,"failureExceptions":""},{"name":"restoreResourceInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":0,"writeCount":0,"failureExceptions":""},{"name":"restoreStyleInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":5,"writeCount":5,"failureExceptions":""},{"name":"restoreLayerInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":0,"writeCount":0,"failureExceptions":""},{"name":"restoreLayerGroupInfos","status":"COMPLETED","exitStatus":{"exitCode":"COMPLETED","exitDescription":""},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":0,"writeCount":0,"failureExceptions":""},{"name":"restoreGeoServerInfos","status":"FAILED","exitStatus":{"exitCode":"FAILED","exitDescription":"java.util.concurrent.ExecutionException: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat java.util.concurrent.FutureTask.report(FutureTask.java:122)\n\tat java.util.concurrent.FutureTask.get(FutureTask.java:192)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet.execute(AbstractCatalogBackupRestoreTasklet.java:229)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)\n\tat org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)\n\tat org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)\n\tat org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)\n\tat org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)\n\tat org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)\n\tat org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)\n\tat org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)\n\tat org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)\n\tat org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:275)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:120)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:210)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:206)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\t... 1 more\nCaused by: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:345)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:117)\n\t... 4 more\nCaused by: java.lang.IllegalStateException: File (not a directory) at layergroups\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.dir(FileSystemResourceStore.java:393)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.hardRestore(CatalogBackupRestoreTasklet.java:437)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:337)\n\t... 5 more\n"},"startTime":"1\/16\/21 8:29 PM","endTime":"1\/16\/21 8:29 PM","lastUpdated":"1\/16\/21 8:29 PM","parameters":{"BK_SKIP_SETTINGS":true,"BK_SKIP_SECURITY":true,"BK_CLEANUP_TEMP":true,"BK_BEST_EFFORT":false,"exclude.file.path":"","job.execution.name":"restoreJob","input.file.path":"file:\/\/\/geoserver_data\/data\/temp\/tmpcf2a40fd-4866-42a1-88c4-e3504ca8fe0c","time":1610828944022},"readCount":0,"writeCount":0,"failureExceptions":{"SEVERE":"org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\njava.util.concurrent.ExecutionException: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat java.util.concurrent.FutureTask.report(FutureTask.java:122)\n\tat java.util.concurrent.FutureTask.get(FutureTask.java:192)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet.execute(AbstractCatalogBackupRestoreTasklet.java:229)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)\n\tat org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)\n\tat org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)\n\tat org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)\n\tat org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)\n\tat org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)\n\tat org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)\n\tat org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)\n\tat org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)\n\tat org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)\n\tat org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)\n\tat org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)\n\tat org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:275)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:120)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:210)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:206)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\t... 1 more\nCaused by: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:345)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:117)\n\t... 4 more\nCaused by: java.lang.IllegalStateException: File (not a directory) at layergroups\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.dir(FileSystemResourceStore.java:393)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.hardRestore(CatalogBackupRestoreTasklet.java:437)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:337)\n\t... 5 more\n\nException occurred while storing GeoServer globals and services settings!\norg.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:120)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:210)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:206)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:345)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:117)\n\t... 4 more\nCaused by: java.lang.IllegalStateException: File (not a directory) at layergroups\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.dir(FileSystemResourceStore.java:393)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.hardRestore(CatalogBackupRestoreTasklet.java:437)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:337)\n\t... 5 more\n\nException occurred while storing GeoServer globals and services settings!\norg.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings!\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:345)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:117)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:210)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:206)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.lang.IllegalStateException: File (not a directory) at layergroups\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.dir(FileSystemResourceStore.java:393)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.hardRestore(CatalogBackupRestoreTasklet.java:437)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:337)\n\t... 5 more\n\nFile (not a directory) at layergroups\njava.lang.IllegalStateException: File (not a directory) at layergroups\n\tat org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.dir(FileSystemResourceStore.java:393)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.hardRestore(CatalogBackupRestoreTasklet.java:437)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doRestore(CatalogBackupRestoreTasklet.java:337)\n\tat org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:117)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:210)\n\tat org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$4.call(AbstractCatalogBackupRestoreTasklet.java:206)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.lang.Thread.run(Thread.java:748)\n"}}]},"status":"FAILED","startTime":"2021-01-16 20:29:04.23 UTC","createTime":"2021-01-16 20:29:04.22 UTC","endTime":"2021-01-16 20:29:05.325 UTC","lastUpdated":"2021-01-16 20:29:05.353 UTC","exitStatus":{"exitCode":"FAILED","exitDescription":""},"progress":"8\/11"},"options":{"@class":"synchList","option":["BK_SKIP_SECURITY=true","BK_BEST_EFFORT=false","job.execution.name=restoreJob","exclude.file.path=","BK_SKIP_SETTINGS=true","BK_CLEANUP_TEMP=true"]},"archiveFile":{"@class":"resource","$":"\/backup_restore\/tmpv4vmvkcc\/2021-01-16_202824\/geoserver_catalog.zip"}}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):  File "/usr/src/mything2020/manage.py", line 31, in <module>    execute_from_command_line(sys.argv)  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line    utility.execute()  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute    self.fetch_command(subcommand).run_from_argv(self.argv)  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 323, in run_from_argv    self.execute(*args, **cmd_options)  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 364, in execute    output = self.handle(*args, **options)  File "/usr/src/geonode/geonode/br/management/commands/restore.py", line 162, in handle    self.execute_restore(**options)  File "/usr/src/geonode/geonode/br/management/commands/restore.py", line 496, in execute_restore    shutil.rmtree(restore_folder)  File "/usr/local/lib/python3.8/shutil.py", line 706, in rmtree    onerror(os.lstat, path, sys.exc_info())  File "/usr/local/lib/python3.8/shutil.py", line 704, in rmtree    orig_st = os.lstat(path)FileNotFoundError: [Errno 2] No such file or directory: '/backup_restore/tmpv4vmvkcc'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20210116/940f99dc/attachment-0001.html>


More information about the geonode-users mailing list