[MGNLBACKUP-84] Restore doesn't work Created: 09/Sep/14  Updated: 29/Mar/22  Resolved: 09/Mar/15

Status: Closed
Project: Backup
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Team: Nucleus

 Description   

Not able to log in into admincentral because users workspace (and probably also other workspaces) is not properly restored:

  • 4.5.22 with bundle backup version
  • 4.5.20 with bundle backup version
  • 4.5.20 with backup 1.2
    Not sure if it's caused by changes in backup or core.


 Comments   
Comment by Roman Kovařík [ 09/Sep/14 ]

This is more obligation then recommendation: https://documentation.magnolia-cms.com/display/DOCS45/Backup+module#Backupmodule-Deletingsearchindexes

Comment by Stephan Helas [ 26/Feb/15 ]

Magnolia: 5.3.6
Backup: 1.5.4

tested with tomcat bundle.

still the same problem. After restore the instance starts with the error "Failed to get system user"

2015-02-26 18:00:30,776 INFO info.magnolia.module.ModuleManagerImpl : Initializing module theme-pop
2015-02-26 18:00:30,776 INFO info.magnolia.module.ModuleManagerImpl : Initializing module demo-project
2015-02-26 18:00:30,776 INFO info.magnolia.module.ModuleManagerImpl : Initializing module marketing-tags
2015-02-26 18:00:30,776 INFO info.magnolia.module.ModuleManagerImpl : Initializing module workflow
2015-02-26 18:00:30,784 INFO info.magnolia.module.ModuleManagerImpl : Starting module workflow
2015-02-26 18:00:30,784 INFO info.magnolia.module.workflow.WorkflowBaseModule : Starting workflow manager info.magnolia.module.workflow.jbpm.JbpmWorkflowManager...
2015-02-26 18:00:32,556 ERROR info.magnolia.cms.security.SystemUserManager : Failed to get system user [superuser], will try to create new system user with default password
2015-02-26 18:00:32,563 ERROR info.magnolia.cms.security.JCRSessionOp : Failed to execute create user superuser session operation with This node already exists: /system/superuser
javax.jcr.ItemExistsException: This node already exists: /system/superuser
at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1297)
at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:111)
at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:37)
at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java:1818)
at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1778)
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.addNode(DelegateNodeWrapper.java:122)
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.addNode(ContentDecoratorNodeWrapper.java:115)
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.addNode(DelegateNodeWrapper.java:122)
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.addNode(ContentDecoratorNodeWrapper.java:115)
at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.addNode(MgnlPropertySettingNodeWrapper.java:210)
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.addNode(DelegateNodeWrapper.java:122)
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.addNode(ContentDecoratorNodeWrapper.java:115)
at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.addNode(MgnlAuditLoggingContentDecoratorNodeWrapper.java:84)
at info.magnolia.cms.security.MgnlUserManager.createUserNode(MgnlUserManager.java:503)
at info.magnolia.cms.security.MgnlUserManager$6.doExec(MgnlUserManager.java:405)
at info.magnolia.cms.security.MgnlUserManager$6.doExec(MgnlUserManager.java:400)
at info.magnolia.cms.security.SilentSessionOp.exec(SilentSessionOp.java:69)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:371)
at info.magnolia.cms.security.MgnlUserManager.createUser(MgnlUserManager.java:400)
at info.magnolia.cms.security.MgnlUserManager.createUser(MgnlUserManager.java:395)
at info.magnolia.cms.security.SystemUserManager.getOrCreateUser(SystemUserManager.java:196)
at info.magnolia.cms.security.SystemUserManager.getSystemUser(SystemUserManager.java:131)
at info.magnolia.cms.security.Security.getSystemUser(Security.java:80)
at info.magnolia.context.AbstractContext.getUser(AbstractContext.java:72)
at info.magnolia.context.MgnlContext.getUser(MgnlContext.java:91)
at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModified(MgnlPropertySettingContentDecorator.java:530)
at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModified(MgnlPropertySettingContentDecorator.java:535)
at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModifiedProperty(MgnlPropertySettingContentDecorator.java:546)
at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.updateLastModifiedProperty(MgnlPropertySettingNodeWrapper.java:278)
at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.setProperty(MgnlPropertySettingNodeWrapper.java:98)
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:402)
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:199)
at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.setProperty(MgnlAuditLoggingContentDecoratorNodeWrapper.java:155)
at info.magnolia.module.workflow.jbpm.persistence.SystemContextSessionStore$1.exec(SystemContextSessionStore.java:60)
at info.magnolia.module.workflow.jbpm.persistence.SystemContextSessionStore$1.exec(SystemContextSessionStore.java:54)
at info.magnolia.cms.security.JCRSessionOp.exec(JCRSessionOp.java:67)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:371)
at info.magnolia.module.workflow.jbpm.persistence.SystemContextSessionStore.persistSessionInfo(SystemContextSessionStore.java:54)
at org.drools.persistence.jcr.JcrPersistenceContext.persist(JcrPersistenceContext.java:41)
at org.drools.persistence.jcr.JcrPersistInterceptor$PersistCommand.execute(JcrPersistInterceptor.java:76)
at org.drools.persistence.jcr.JcrPersistInterceptor$PersistCommand.execute(JcrPersistInterceptor.java:56)
at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
at org.drools.persistence.SimpleSessionCommandService$TransactionInterceptor.execute(SimpleSessionCommandService.java:342)
at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
at org.drools.persistence.jcr.JcrPersistInterceptor.execute(JcrPersistInterceptor.java:45)
at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
at org.jbpm.persistence.JcrPersistProcessInterceptor.execute(JcrPersistProcessInterceptor.java:56)
at org.drools.persistence.SimpleSessionCommandService.execute(SimpleSessionCommandService.java:259)
at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.registerWorkItemHandler(CommandBasedStatefulKnowledgeSession.java:161)
at org.jbpm.runtime.manager.impl.AbstractRuntimeManager.registerItems(AbstractRuntimeManager.java:81)
at info.magnolia.module.workflow.jbpm.runtime.manager.MgnlRuntimeManager.init(MgnlRuntimeManager.java:95)
at info.magnolia.module.workflow.jbpm.JbpmWorkflowManager.startEngine(JbpmWorkflowManager.java:110)
at info.magnolia.module.workflow.WorkflowBaseModule.start(WorkflowBaseModule.java:63)
at info.magnolia.module.ModuleManagerImpl.startModule(ModuleManagerImpl.java:404)
at info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:344)
at info.magnolia.module.ui.ModuleManagerWebUI.onStartup(ModuleManagerWebUI.java:79)
at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:149)
at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:248)
at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:245)
at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:171)
at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:125)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2015-02-26 18:00:32,565 ERROR info.magnolia.module.workflow.WorkflowBaseModule : Workflow manager failed to start
java.lang.RuntimeException: Couldn't force persistence of session info
at org.drools.persistence.jcr.JcrPersistInterceptor.execute(JcrPersistInterceptor.java:48)
at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
at org.jbpm.persistence.JcrPersistProcessInterceptor.execute(JcrPersistProcessInterceptor.java:56)
at org.drools.persistence.SimpleSessionCommandService.execute(SimpleSessionCommandService.java:259)
at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.registerWorkItemHandler(CommandBasedStatefulKnowledgeSession.java:161)
at org.jbpm.runtime.manager.impl.AbstractRuntimeManager.registerItems(AbstractRuntimeManager.java:81)
at info.magnolia.module.workflow.jbpm.runtime.manager.MgnlRuntimeManager.init(MgnlRuntimeManager.java:95)
at info.magnolia.module.workflow.jbpm.JbpmWorkflowManager.startEngine(JbpmWorkflowManager.java:110)
at info.magnolia.module.workflow.WorkflowBaseModule.start(WorkflowBaseModule.java:63)
at info.magnolia.module.ModuleManagerImpl.startModule(ModuleManagerImpl.java:404)
at info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:344)
at info.magnolia.module.ui.ModuleManagerWebUI.onStartup(ModuleManagerWebUI.java:79)
at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:149)
at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:248)
at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:245)
at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:171)
at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:125)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModified(MgnlPropertySettingContentDecorator.java:530)
at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModified(MgnlPropertySettingContentDecorator.java:535)
at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModifiedProperty(MgnlPropertySettingContentDecorator.java:546)
at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.updateLastModifiedProperty(MgnlPropertySettingNodeWrapper.java:278)
at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.setProperty(MgnlPropertySettingNodeWrapper.java:98)
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:402)
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:199)
at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.setProperty(MgnlAuditLoggingContentDecoratorNodeWrapper.java:155)
at info.magnolia.module.workflow.jbpm.persistence.SystemContextSessionStore$1.exec(SystemContextSessionStore.java:60)
at info.magnolia.module.workflow.jbpm.persistence.SystemContextSessionStore$1.exec(SystemContextSessionStore.java:54)
at info.magnolia.cms.security.JCRSessionOp.exec(JCRSessionOp.java:67)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:371)
at info.magnolia.module.workflow.jbpm.persistence.SystemContextSessionStore.persistSessionInfo(SystemContextSessionStore.java:54)
at org.drools.persistence.jcr.JcrPersistenceContext.persist(JcrPersistenceContext.java:41)
at org.drools.persistence.jcr.JcrPersistInterceptor$PersistCommand.execute(JcrPersistInterceptor.java:76)
at org.drools.persistence.jcr.JcrPersistInterceptor$PersistCommand.execute(JcrPersistInterceptor.java:56)
at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
at org.drools.persistence.SimpleSessionCommandService$TransactionInterceptor.execute(SimpleSessionCommandService.java:342)
at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
at org.drools.persistence.jcr.JcrPersistInterceptor.execute(JcrPersistInterceptor.java:45)
... 32 more
2015-02-26 18:00:32,566 INFO info.magnolia.module.ModuleManagerImpl : Initializing module enterprise
2015-02-26 18:00:32,571 INFO info.magnolia.module.ModuleManagerImpl : Initializing module personalization-integration
2015-02-26 18:00:32,573 INFO info.magnolia.module.ModuleManagerImpl : Starting module personalization-integration
2015-02-26 18:00:33,539 INFO info.magnolia.module.ModuleManagerImpl : Initializing module workflow-jbpm
2015-02-26 18:00:33,539 INFO info.magnolia.module.ModuleManagerImpl : Initializing module advanced-cache
2015-02-26 18:00:33,546 INFO info.magnolia.module.ModuleManagerImpl : Initializing module exchange-transactional
2015-02-26 18:00:33,548 INFO info.magnolia.module.ModuleManagerImpl : Starting module exchange-transactional
2015-02-26 18:00:33,550 INFO info.magnolia.module.ModuleManagerImpl : Initializing module personalization-preview-app
2015-02-26 18:00:33,553 INFO info.magnolia.module.ModuleManagerImpl : Initializing module personalization-segmentation-app
2015-02-26 18:00:33,555 INFO info.magnolia.module.ModuleManagerImpl : Starting module personalization-segmentation-app
2015-02-26 18:00:33,558 INFO info.magnolia.module.ModuleManagerImpl : Initializing module personalization-personas-app
2015-02-26 18:00:33,560 INFO info.magnolia.module.ModuleManagerImpl : Initializing module personalization-samples
2015-02-26 18:00:33,562 INFO info.magnolia.module.ModuleManagerImpl : Initializing module personalization-traits
2015-02-26 18:00:33,564 INFO info.magnolia.module.ModuleManagerImpl : Initializing module webapp

Comment by Stephan Helas [ 03/Mar/15 ]

solved!

Comment by Tim Brown [ 19/Aug/15 ]

How was this solved? I am having a very similar problem.

Comment by Markus Paltian [ 22/Apr/16 ]

It is solved by deleting the indexes like given in the link at the beginning. When using Derby during a restore Derby seems to create indexes but may not finish before the restore is done. Deleting this index files with "rm -rf magnolia/workspaces/*/index -v" in the repository directory, solves the issue for me.

Generated at Sun Feb 11 23:25:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.