Expand my Community achievements bar.

SOLVED

6.1 Upgrade - Issues with Social Commons package

Avatar

Employee Advisor

Hi, 

We did an inplace upgrade on existing 5.6.1 author instance to 6.1.  We followed all the steps as mentioned in the instructions, however we saw that during the upgrade few of the Adobe social communites package were not installed. And then when the upgrade was finished we checked that many OSGI bundles which were dependent on social comm. bundles were not started. 

We tried to install the cq-social-commons-pkg-1.5.151.zip package manually and got the following exception below. Not sure, what is the root cause of this exception. 

com.day.jcr.vault.packaging.PackageException: org.apache.jackrabbit.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0030: Uniqueness constraint violated at path [/] for one of the property in [jcr:uuid] having value 0ca4de58-e1a3-43dd-a624-c49fa8be273c

    at com.day.jcr.vault.packaging.impl.JrVltJcrPackageAdapter.install(JrVltJcrPackageAdapter.java:109)

    at com.day.crx.packaging.impl.J2EEPackageManager.consoleInstall(J2EEPackageManager.java:329)

    at com.day.crx.packaging.impl.J2EEPackageManager.doPost(J2EEPackageManager.java:171)

    at com.day.crx.packaging.impl.PackageManagerServlet.doPost(PackageManagerServlet.java:144)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

    at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:336)

    at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:297)

    at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93)

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50)

    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

    at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:129)

    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

    at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:290)

    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

    at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89)

    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

    at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)

    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

    at org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:115)

    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

    at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)

    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

    at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76)

    at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49)

    at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

    at org.eclipse.jetty.server.Server.handle(Server.java:497)

    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

    at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.jackrabbit.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0030: Uniqueness constraint violated at path [/] for one of the property in [jcr:uuid] having value 0ca4de58-e1a3-43dd-a624-c49fa8be273c

    at org.apache.jackrabbit.vault.packaging.impl.ZipVaultPackage.extract(ZipVaultPackage.java:239)

    at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:401)

    at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.install(JcrPackageImpl.java:370)

    at com.day.jcr.vault.packaging.impl.JrVltJcrPackageAdapter.install(JrVltJcrPackageAdapter.java:107)

    ... 61 more

Caused by: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0030: Uniqueness constraint violated at path [/] for one of the property in [jcr:uuid] having value 0ca4de58-e1a3-43dd-a624-c49fa8be273c

    at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:225)

    at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:212)

    at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:594)

    at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:461)

    at org.apache.jackrabbit.oak.jcr.session.SessionImpl$8.perform(SessionImpl.java:435)

    at org.apache.jackrabbit.oak.jcr.session.SessionImpl$8.perform(SessionImpl.java:432)

    at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:216)

    at org.apache.jackrabbit.oak.jcr.session.SessionImpl.perform(SessionImpl.java:140)

    at org.apache.jackrabbit.oak.jcr.session.SessionImpl.save(SessionImpl.java:432)

    at org.apache.jackrabbit.vault.fs.io.AutoSave.save(AutoSave.java:175)

    at org.apache.jackrabbit.vault.fs.io.Importer.run(Importer.java:416)

    at org.apache.jackrabbit.vault.packaging.impl.ZipVaultPackage.extract(ZipVaultPackage.java:234)

    ... 64 more

Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0030: Uniqueness constraint violated at path [/] for one of the property in [jcr:uuid] having value 0ca4de58-e1a3-43dd-a624-c49fa8be273c

    at org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.leave(PropertyIndexEditor.java:288)

    at org.apache.jackrabbit.oak.plugins.index.IndexUpdate.leave(IndexUpdate.java:221)

    at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:63)

    at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.leave(CompositeEditor.java:74)

    at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:56)

    at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:54)

    at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)

    ....

1 Accepted Solution

Avatar

Correct answer by
Level 9

The cq-socialcommunities-pkg-1.7.197 is included in AEM 6.1.

If you followed the instructions to migrate from CRX2 to OAK, then you should probably open a support ticket.  

It sounds similar to https://issues.apache.org/jira/browse/OAK-1846.

That's as much as I know.  Perhaps someone else can be of more assistance.

- JK

View solution in original post

4 Replies

Avatar

Level 9

Did you upgrade from CQ 5.6.1 with social communities v1.3 or v1.4?

Please provide specifics of the instructions your followed and what version of Communities you installed (v1.7 or v1.8).

See http://docs.adobe.com/docs/en/aem/6-1/deploy/communities.html

- JK

Avatar

Employee Advisor

Followed the upgrade instructions provided here - https://docs.adobe.com/docs/en/aem/6-1/deploy/upgrade.html#par_title_1690331669. We are upgrading from v1.3 and the exception is thrown if we install 1.7 package - cq-socialcommunities-pkg-1.7.197.zip

Avatar

Correct answer by
Level 9

The cq-socialcommunities-pkg-1.7.197 is included in AEM 6.1.

If you followed the instructions to migrate from CRX2 to OAK, then you should probably open a support ticket.  

It sounds similar to https://issues.apache.org/jira/browse/OAK-1846.

That's as much as I know.  Perhaps someone else can be of more assistance.

- JK

Avatar

Employee Advisor

Thanks JK. The OAK issue link was really very helpful. The problem was in the cq-social-commons-pkg-1.5.151.zip package. There was one workflow model xml in the package which was having hardcoded jcr:uuid value. I removed that jcr:uuid manually from the XML and reinstalled the package successfully. The uuid value in the XML was conflicting with one of the existing node IDs in the CRX.