Uploaded image for project: 'Repository'
  1. Repository
  2. REPOSITORY-456

[MigrationHandler] Ametys boots in error mode after configuration mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.3.0
    • 4.3.0
    • None
    • None
    • 4.3 RC2

      1. Start the application 'template odfweb' with no 'repository' folder to start with fresh JCR data
      2. The application starts well
      3. Go to Configuration tool in _admin and change the value of 'mail server'
      4. Click on 'Save changes'
      5. The Ametys application is reloading
      6. Then on refresh, I have the Purple Screen of Death, Ametys is in error mode with the following stacktrace:
      Category:	org.ametys.runtime.servlet.RuntimeServlet
      Message:		Error while reloading Ametys. Entering in error mode.
      Location:	org.ametys.runtime.servlet.RuntimeServlet.restartCocoon(RuntimeServlet.java:654)
      Thrown:
      org.ametys.plugins.repository.RepositoryIntegrityViolationException: The object v-0 already exist at path /ametys:versions
      	at org.ametys.plugins.repository.jcr.TraversableAmetysObjectHelper.createChild(TraversableAmetysObjectHelper.java:409)
      	at org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory.createChild(DefaultTraversableAmetysObjectFactory.java:90)
      	at org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject.createChild(DefaultTraversableAmetysObject.java:63)
      	at org.ametys.plugins.repository.migration.jcr.data.JcrDataVersionStorage.addVersion(JcrDataVersionStorage.java:138)
      	at org.ametys.core.migration.handler.AbstractVersionHandler.addVersion(AbstractVersionHandler.java:92)
      	at org.ametys.core.migration.MigrationExtensionPoint._upgradeVersion(MigrationExtensionPoint.java:230)
      	at org.ametys.core.migration.MigrationExtensionPoint._applyInitializationActions(MigrationExtensionPoint.java:177)
      	at org.ametys.core.migration.MigrationExtensionPoint.doMigration(MigrationExtensionPoint.java:121)
      	at org.ametys.runtime.servlet.RuntimeServlet._initMigration(RuntimeServlet.java:404)
      	at org.ametys.runtime.servlet.RuntimeServlet.doMigrationAndInit(RuntimeServlet.java:370)
      	at org.ametys.runtime.servlet.RuntimeServlet._initAmetys(RuntimeServlet.java:314)
      	at org.ametys.runtime.servlet.RuntimeServlet.restartCocoon(RuntimeServlet.java:650)
      	at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:613)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	[...]
      Caused by: javax.jcr.ItemExistsException: This node already exists: /ametys:root/ametys:versions/c-plugin-webcontentio-jcr/v-0
      	at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1299)
      	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 org.ametys.plugins.repository.jcr.TraversableAmetysObjectHelper.createChild(TraversableAmetysObjectHelper.java:379)
      	... 35 more 

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: