You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Bhupender Singh <bh...@adobe.com.INVALID> on 2017/08/22 04:24:56 UTC

Oak 1.2 x : ConstraintViolationException: OakConstraint0030 while migrating

Hi Team,

A customer is using crx2oak to do blue-green deployments. They are trying the parameter --copy-versions=false to see how much time/space can by gained by excluding versions. However when doing this, in the migrated repository on startup, they consistently get this error:

31.07.2017 13:21:12.855 *ERROR* [FelixStartLevel] com.adobe.granite.repository.impl.SlingRepositoryManager start: Uncaught Throwable trying to access Repository, calling stopRepository()
java.lang.RuntimeException: org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0030: Uniqueness constraint violated at path [/] for one of the property in [jcr:uuid] having value 294de355-7d9d-30b3-92d8-a1e6aab028cf
at org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:64)
at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:567)
---------------------------
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0030: Uniqueness constraint violated at path [/] for one of the property in [jcr:uuid] having value 294de355-7d9d-30b3-92d8-a1e6aab028cf
at org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.leave(PropertyIndexEditor.java:295)
at org.apache.jackrabbit.oak.plugins.index.IndexUpdate.leave(IndexUpdate.java:252)
at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:63)


NOT copying versions causes this. On the other hand, copying some versions fixes this problem. The mentioned uuid belongs to the anonymous user at /home/users/G/GDBwO..

https://issues.apache.org/jira/browse/OAK-1846 seems related to this.

Any tips or guidance about what's happening would be very useful.

Regards,
Bhupender