Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.4 smart tags - unable to create smart tags for assets

rajneeshg
Level 2
Level 2

AEM version - 6.4

Reference - Configuring Smart Tags Cloud Service

I have been following 6.4 smart tags configuration guide to have smart tags enabled in my local AEM 6.4 instance, however after completing the steps and attempting smart tags creation for a asset folder via the core 'DAM Smart Tags Assets'(using Timeline) I see the below error in core logs.

Looking at the service user(dam-update-service) in the error log, I see this already has a keystore updated with the private key. Possibly was created when I configured Smart Tag cloud service locally.

Any clues on why I see this error please? Or am I missing some steps here? Is the 6.4 smart tag documentation upto date?

18.05.2018 11:00:00.366 *ERROR* [JobHandler: /var/workflow/instances/server0/2018-05-18/dam-autotag-assets_6:/content/dam/waitrosegroceriescms/footer/new_window.gif] com.adobe.granite.auth.oauth.AccessTokenProvider error while storing an access token for the user: dam-update-service

javax.jcr.InvalidItemStateException: OakState0001: Unresolved conflicts in /home/users/system/dam/dam-update-service/oauth

  at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:237) [org.apache.jackrabbit.oak-api:1.8.2]

  at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:212) [org.apache.jackrabbit.oak-api:1.8.2]

  at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:670) [org.apache.jackrabbit.oak-jcr:1.8.2]

  at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:496) [org.apache.jackrabbit.oak-jcr:1.8.2]

  at org.apache.jackrabbit.oak.jcr.session.SessionImpl$8.performVoid(SessionImpl.java:420) [org.apache.jackrabbit.oak-jcr:1.8.2]

  at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:274) [org.apache.jackrabbit.oak-jcr:1.8.2]

  at org.apache.jackrabbit.oak.jcr.session.SessionImpl.save(SessionImpl.java:417) [org.apache.jackrabbit.oak-jcr:1.8.2]

  at com.adobe.granite.repository.impl.CRX3SessionImpl.save(CRX3SessionImpl.java:208) [com.adobe.granite.repository:1.4.88]

  at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.internalStoreAccessToken(AccessTokenProviderImpl.java:556) [com.adobe.granite.auth.oauth:1.5.26.CQ640-B0002]

  at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.getAccessToken(AccessTokenProviderImpl.java:452) [com.adobe.granite.auth.oauth:1.5.26.CQ640-B0002]

  at com.day.cq.dam.similaritysearch.internal.util.OAuthUtil.getAccessToken(OAuthUtil.java:117) [com.day.cq.dam.cq-dam-similaritysearch:5.11.26]

  at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl.getServiceVersion(SimilaritySearchServiceImpl.java:360) [com.day.cq.dam.cq-dam-similaritysearch:5.11.26]

  at com.day.cq.dam.similaritysearch.internal.impl.ManageAutoTagsServiceImpl.applyAutoTags(ManageAutoTagsServiceImpl.java:162) [com.day.cq.dam.cq-dam-similaritysearch:5.11.26]

  at com.day.cq.dam.similaritysearch.internal.workflow.process.AutoTagAssetProcess.execute(AutoTagAssetProcess.java:145) [com.day.cq.dam.cq-dam-similaritysearch:5.11.26]

  at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93) [com.day.cq.workflow.cq-workflow-impl:6.2.12]

  at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:194) [com.adobe.granite.workflow.core:2.0.168]

  at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:261) [com.adobe.granite.workflow.core:2.0.168]

  at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.10]

  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:293) [org.apache.sling.event:4.2.10]

  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.10]

  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:229) [org.apache.sling.event:4.2.10]

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

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

Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakState0001: Unresolved conflicts in /home/users/system/dam/dam-update-service/oauth

  at org.apache.jackrabbit.oak.plugins.commit.ConflictValidator.failOnMergeConflict(ConflictValidator.java:115) [org.apache.jackrabbit.oak-core:1.8.2]

  at org.apache.jackrabbit.oak.plugins.commit.ConflictValidator.propertyAdded(ConflictValidator.java:84) [org.apache.jackrabbit.oak-core:1.8.2]

  at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.propertyAdded(CompositeEditor.java:83) [org.apache.jackrabbit.oak-store-spi:1.8.2]

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.propertyAdded(EditorDiff.java:82) [org.apache.jackrabbit.oak-store-spi:1.8.2]

  at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareProperties(SegmentNodeState.java:628) [org.apache.jackrabbit.oak-segment-tar:1.8.2]

  at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:491) [org.apache.jackrabbit.oak-segment-tar:1.8.2]

1 Accepted Solution
berliant
Correct answer by
Employee
Employee

Can you verify that an "oauth" node exists under dam-update-service user?

1574745_pastedImage_2.png

You can also try to recreate a cloud service configuration. To delete an existing one, you can remove a relevant node under /etc/cloudservices/smarttagging/

View solution in original post

1 Reply
berliant
Correct answer by
Employee
Employee

Can you verify that an "oauth" node exists under dam-update-service user?

1574745_pastedImage_2.png

You can also try to recreate a cloud service configuration. To delete an existing one, you can remove a relevant node under /etc/cloudservices/smarttagging/

View solution in original post