Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8284

Fresh install leads to javax.jcr.PathNotFoundException /admin

XMLWordPrintable

    • Nucleus 6
    • 3

      Since the release of 6.2.15 customers are reporting an issue installing fresh. Locally I'm not able to recreate the problem but in some cases it leads to the following problem:

      2022-01-06 10:33:01,648 ERROR info.magnolia.cms.security.MgnlUserManager        : Could not retrieve user with name: superuser
      javax.jcr.PathNotFoundException: /admin
      	at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:576) ~[jackrabbit-core-2.20.4.jar:2.20.4]
      	at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:129) ~[jackrabbit-core-2.20.4.jar:2.20.4]
      	at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:125) ~[jackrabbit-core-2.20.4.jar:2.20.4]
      	at org.apache.jackrabbit.core.session.SessionItemOperation.perform(SessionItemOperation.java:187) ~[jackrabbit-core-2.20.4.jar:2.20.4]
      	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.20.4.jar:2.20.4]
      	at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:363) ~[jackrabbit-core-2.20.4.jar:2.20.4]
      	at org.apache.jackrabbit.core.SessionImpl.getNode(SessionImpl.java:1151) ~[jackrabbit-core-2.20.4.jar:2.20.4]
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.MgnlUserManager.findPrincipalNode(MgnlUserManager.java:320) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.MgnlUserManager.getUser(MgnlUserManager.java:263) ~[magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.MgnlUserManager.getUser(MgnlUserManager.java:242) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.DelegatingUserManager$5.delegate(DelegatingUserManager.java:112) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.DelegatingUserManager$5.delegate(DelegatingUserManager.java:109) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.DelegatingUserManager.delegateUntilSupportedAndNotNull(DelegatingUserManager.java:186) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.DelegatingUserManager.getUser(DelegatingUserManager.java:109) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.MgnlUserManager.validateUsername(MgnlUserManager.java:478) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.MgnlUserManager.createUser(MgnlUserManager.java:398) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.MgnlUserManager.createUser(MgnlUserManager.java:393) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.SystemUserManager.getOrCreateUser(SystemUserManager.java:194) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.SystemUserManager.getSystemUser(SystemUserManager.java:129) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.cms.security.Security.getSystemUser(Security.java:81) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.context.AbstractContext.getUser(AbstractContext.java:64) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.context.MgnlContext.getUser(MgnlContext.java:91) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.getCurrentUserName(MgnlPropertySettingContentDecorator.java:712) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.setCreatedDate(MgnlPropertySettingContentDecorator.java:657) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.setCreatedDate(MgnlPropertySettingContentDecorator.java:626) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.setCreatedProperty(MgnlPropertySettingNodeWrapper.java:282) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.addNode(MgnlPropertySettingNodeWrapper.java:216) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.addNode(DelegateNodeWrapper.java:129) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.addNode(ContentDecoratorNodeWrapper.java:131) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.addNode(MgnlAuditLoggingContentDecoratorNodeWrapper.java:84) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.addNode(DelegateNodeWrapper.java:129) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.addNode(ContentDecoratorNodeWrapper.java:131) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.wrapper.MagnoliaSessionContentDecorator$1.addNode(MagnoliaSessionContentDecorator.java:67) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.util.NodeUtil.createPath(NodeUtil.java:637) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.jcr.util.NodeUtil.createPath(NodeUtil.java:614) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.importexport.BootstrapUtil.bootstrap(BootstrapUtil.java:147) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.importexport.BootstrapUtil.bootstrap(BootstrapUtil.java:94) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.importexport.BootstrapUtil.bootstrap(BootstrapUtil.java:83) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.delta.BootstrapResourcesTask.bootstrap(BootstrapResourcesTask.java:82) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.delta.BootstrapSingleResource.bootstrap(BootstrapSingleResource.java:80) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.delta.BootstrapResourcesTask.execute(BootstrapResourcesTask.java:74) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.delta.ConditionalDelegateTask.execute(ConditionalDelegateTask.java:61) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:491) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:473) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:271) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:407) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:404) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:265) [magnolia-core-6.2.15.jar:?]
      	at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:126) [magnolia-core-6.2.15.jar:?]
      	at java.lang.Thread.run(Thread.java:829) [?:?]
      

      Trying to open the security app shows:

      2022-01-18 15:44:48,549 WARN agnolia.ui.workbench.tree.HierarchicalJcrContainer: Cannot retrieve root item id's: javax.jcr.PathNotFoundException: /admin
      

      Notes
      Might be related to this MAGNOLIA-7616

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              rgange Richard Gange
              Nucleus
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 2.5d
                  2.5d