Re: [Geoserver-users] Backup & Restore extension
Hello Alessio Thanks for your response. Here is the stacktrace: SEVERE:org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings! java.util.concurrent.ExecutionException: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings! at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet.execute(AbstractCatalogBackupRestoreTasklet.java:168) at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406) at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271) at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81) at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374) at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215) at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144) at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257) at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200) at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148) at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64) at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67) at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144) at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:93) at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:90) at java.util.concurrent.FutureTask.run(Unknown Source) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50) at org.springframework.batch.core.job.flow.support.state.SplitState.handle(SplitState.java:100) at org.springframework.batch.core.configuration.xml.SimpleFlowFactoryBean$DelegateState.handle(SimpleFlowFactoryBean.java:207) at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144) at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134) at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306) at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135) at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:251) at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings! at org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:98) at org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$3.call(AbstractCatalogBackupRestoreTasklet.java:148) at org.geoserver.backuprestore.tasklet.AbstractCatalogBackupRestoreTasklet$3.call(AbstractCatalogBackupRestoreTasklet.java:144) at java.util.concurrent.FutureTask.run(Unknown Source) ... 1 more Caused by: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings! at org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doBackup(CatalogBackupRestoreTasklet.java:218) at org.geoserver.backuprestore.tasklet.CatalogBackupRestoreTasklet.doExecute(CatalogBackupRestoreTasklet.java:93) ... 4 more Caused by: org.springframework.security.authentication.InsufficientAuthenticationException: Cannot access layer_001 as anonymous at org.geoserver.security.SecureCatalogImpl.unauthorizedAccess(SecureCatalogImpl.java:933) at org.geoserver.security.SecureCatalogImpl.buildWrapperPolicy(SecureCatalogImpl.java:910) at org.geoserver.security.SecureCatalogImpl.buildWrapperPolicy(SecureCatalogImpl.java:807)
Re: [Geoserver-users] Backup & Restore extension
Hello Rene, can you go to the log console of the executed Backup, increment the log detail level by at least 1 and refresh? You should be able to get the stacktrace. Would be good if you can send it to me. Regards, Alessio Fabiani == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Alessio Fabiani @alfa7691 Founder/Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 331 6233686 http://www.geo-solutions.it http://twitter.com/geosolutions_it --- AVVERTENZE AI SENSI DEL D.Lgs. 196/2003 Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc. 2018-02-07 15:19 GMT+01:00 Rene: > Hello > > I installed the Backup & Restore extension on a Geoserver 2.11.2. I tried > now to backup a workspace, but I get an error: > java.util.concurrent.ExecutionException: > org.springframework.batch.core.UnexpectedJobExecutionException: Exception > occurred while storing GeoServer globals and services settings! > > When I look into the Backup Executions there are the follow information: > > SEVERE:org.springframework.batch.core.UnexpectedJobExecutionException: > Exception occurred while storing GeoServer globals and services settings! > SEVERE:Exception occurred while storing GeoServer globals and services > settings! > SEVERE:Exception occurred while storing GeoServer globals and services > settings! > SEVERE:Cannot access layer_001 as anonymous > NO Warnings Detected. > > It seems to be a permission problem, how can I set a user / role for this > extension to let it run? > > I'm using a Windows Server 2012 R2, Geoserver is installed with a war file > on a Tomcat 7. > > Can anybody help me? > > Best regards > > Rene > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User- > f3786390.html > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: http://geoserver.org/comm/ > userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully- > requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines:
[Geoserver-users] Backup & Restore extension
Hello I installed the Backup & Restore extension on a Geoserver 2.11.2. I tried now to backup a workspace, but I get an error: java.util.concurrent.ExecutionException: org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings! When I look into the Backup Executions there are the follow information: SEVERE:org.springframework.batch.core.UnexpectedJobExecutionException: Exception occurred while storing GeoServer globals and services settings! SEVERE:Exception occurred while storing GeoServer globals and services settings! SEVERE:Exception occurred while storing GeoServer globals and services settings! SEVERE:Cannot access layer_001 as anonymous NO Warnings Detected. It seems to be a permission problem, how can I set a user / role for this extension to let it run? I'm using a Windows Server 2012 R2, Geoserver is installed with a war file on a Tomcat 7. Can anybody help me? Best regards Rene -- Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users