自定义标记的智能标记训练失败

如果您在自定义标记的智能标记培训中遇到问题,请删除旧版云配置。 旧版云配置会干扰现成的集成,导致SimilaritySearchException错误,从而导致培训失败。

描述 description

环境

Adobe Experience Manager as a Cloud Service

问题/症状

按照[ 1]中的步骤启用智能标记(智能内容服务)  并在AEM中创建AIO项目以及旧版云配置。

完成智能标记集成后,请尝试为自定义标记[ 2]创建智能标记训练,但每次训练均失败,日志中出现错误[ 3]

[ 1]  图像的自定义智能标记

[ 2]  为自定义标记训练模型

[ 3]

ERROR[ sling-threadpool-39aa0b87-e4ff-4521-b2c7-fce7134e4e4d-(apache-sling-job-thread-pool)-34-Granite Workflow External Process Polling Queue(com/adobe/granite/workflow/external/polling/event)]  com.day.cq.dam.similaritysearch.internal.workflow.process.DoTrainingProcess Error while checking for training status for jobId <b></b><b></b>*
com.day.cq.dam.similaritysearch.internal.SimilaritySearchException: com.day.cq.dam.similaritysearch.internal.SimilaritySearchException: Service returned an error: HTTP/1.1 403 Forbidden
at com.day.cq.dam.similaritysearch.internal.impl.SCSTrainingClientImpl.hasFinishedTraining(SCSTrainingClientImpl.java:203) [ com.day.cq.dam.cq-dam-similaritysearch:5.13.64]
at com.day.cq.dam.similaritysearch.internal.workflow.process.DoTrainingProcess.hasFinished(DoTrainingProcess.java:95) [ com.day.cq.dam.cq-dam-similaritysearch:5.13.64]
at com.day.cq.workflow.compatibility.CQWorkflowExtProcessProxy.hasFinished(CQWorkflowExtProcessProxy.java:82) [ com.day.cq.workflow.cq-workflow-impl:6.3.18]
at com.adobe.granite.workflow.core.util.WEPProxyHolder.hasFinished(WEPProxyHolder.java:46) [ com.adobe.granite.workflow.core:2.1.100]
at com.adobe.granite.workflow.core.job.ExternalProcessPollingHandler.process(ExternalProcessPollingHandler.java:119) [ com.adobe.granite.workflow.core:2.1.100]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [ org.apache.sling.event:4.3.8]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [ org.apache.sling.event:4.3.8]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [ org.apache.sling.event:4.3.8]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [ org.apache.sling.event:4.3.8]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.day.cq.dam.similaritysearch.internal.SimilaritySearchException: Service returned an error: HTTP/1.1 403 Forbidden

解决方法 resolution

要将AEM与智能内容集成,您遵循的文档适用于本地AEM版本6.5。

对于AEM as a Cloud Service,无需手动配置集成(创建AIO项目和旧版云配置)。 对于AEMaaCS,它可开箱即用,无需手动添加任何云配置。

删除旧版云配置后,自定义标记的智能培训应成功完成。

RCA:

用户创建的旧版云配置干扰了OOTB集成,导致SimilaritySearchException错误,并导致培训失败。

旧版云配置位于/etc/cloudconfigs下。 在生产环境中,无权访问crx/de以直接将其删除。 因此,在AEMaaCS中,对于生产环境,必须通过部署删除旧版云配置。

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f