由于repoinit错误,管道部署失败

由于buildImage.log中记录的错误,Adobe Experience Manager as a Cloud Service管道部署中的​ buildImage ​步骤经常出错,从而阻碍了部署过程。 本文深入探讨常见原因并提供解决方法。

描述 description

环境

Adobe Experience Manager作为Cloud Service

问题/症状

管道部署在buildImage步骤期间失败,并在buildImage.log中看到以下错误(或类似错误):

错误

Apache Sling Repository Startup Thread #1]  com.adobe.granite.repository.impl.SlingRepositoryManager Exception in a SlingRepositoryInitializer, SlingRepository service registration abortedjavax.jcr.RepositoryException: Applying repoinit operation failed despite retry; set loglevel to DEBUG to see all exceptions. Last exception message was: Failed to set ACL (javax.jcr.PathNotFoundException: Cannot set ACL on non-existent path <masked_path>) AclLine DENY {paths=[ <masked_path>] , privileges=[ jcr:all] }Caused by: org.apache.sling.jcr.repoinit.impl.RepoInitException: Failed to set ACL (javax.jcr.PathNotFoundException: Cannot set ACL on non-existent path <masked_path>) AclLine DENY {paths=[ <masked_path>] , privileges=[ jcr:all] }Caused by: javax.jcr.PathNotFoundException: Cannot set ACL on non-existent path <masked_path>

解决方法 resolution

要修复此错误,请在分配ACL之前在repoinit脚本中创建<masked_path>

使用此参考文档了解有关AEM as a Cloud Service新架构的更多信息。

原因:

运行repoinit脚本时,<masked_path>可能不存在于Golden Master(专门的发布节点)上。

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