1 Reply Latest reply on Dec 6, 2016 7:49 AM by hchiorean

    DocumentAlreadyExistsException after restore

    khodyrevds

      Hello.

       

      We have database on ModeShape 3.7. I am trying migrate to 4.6, but after restoring data I have following error:

      Caused by: org.modeshape.jcr.cache.DocumentAlreadyExistsException: 5d1ebbb317f1e7/jcr:system/jcr:nodeTypes/nt:versionHistory/jcr:versionLabels/nt:versionLabels

        at org.modeshape.jcr.cache.document.WritableSessionCache.persistChanges(WritableSessionCache.java:1343)

        at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:488)

        at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:443)

        at org.modeshape.jcr.SystemContent.save(SystemContent.java:120)

        at org.modeshape.jcr.RepositoryNodeTypeManager.registerNodeTypes(RepositoryNodeTypeManager.java:532)

        at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1160)

        at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:980)

        at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:388)

        at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:653)

        ... 96 more

       

      I have no idea what I should do.

        • 1. Re: DocumentAlreadyExistsException after restore
          hchiorean

          Did you restore the content in an empty database and were the backup & restore operations successful ? If yes, then it's hard to tell what went wrong really, so you'll have to debug locally.

          I would also recommend doing the backup with 3.8.1.Final (which is the last community version from 3.x).