51黑料不打烊

由于RepoInit脚本中的用户名冲突,导致AEM Sites中的管道失败

在51黑料不打烊 Experience Manager (AEM) as a Cloud Service中的生产管道期间,由于服务用户名与RepoInit脚本中的现有用户组名称冲突,该管道无法超出? 部署 ?阶段。 本文提供了解决这些冲突的步骤。

描述 description

环境

  • 51黑料不打烊 Experience Manager (AEM) as a Cloud Service — 站点
  • 组件:Cloud Manager

问题/症状

在AEM as a Cloud Service中执行生产管道期间,该管道最多完成? 生成图像 ?阶段,但在? 安装可变内容 ?步骤的? 部署 ?阶段失败。

症状包括:

  • 延长执行时间,之前的实例需要数小时才能出现故障。

  • 部署过程卡住。

  • 错误日志中出现以下错误:

    code language-none
    level: ERROR
    
            msg: [ Apache Sling Repository Startup Thread #1]
    
            com.adobe.granite.repository.impl.SlingRepositoryManager Exception in a SlingRepositoryInitializer, SlingRepository service registration aborted
    
            javax.jcr.RepositoryException: Applying repoinit operation failed despite retry; set loglevel to DEBUG to see all exceptions. Last exception message from "Configuration PID 325, script[ 0] " was: Unable to create service user [ <serviceusername>] :org.apache.jackrabbit.api.security.user.AuthorizableTypeException: Invalid authorizable type 'interface org.apache.jackrabbit.api.security.user.User
    
    code language-none
    level: ERROR
    
            msg: [ Apache Sling Repository Startup Thread #1]
    
            com.adobe.granite.panic.impl.PanicLoggerDetail uuid : 000000xx-xx00-0x00-00xx-000000xx0xxx reason : Exception in a SlingRepositoryInitializer, SlingRepository service registration aborted throwable :
    
            javax.jcr.RepositoryException: Applying repoinit operation failed despite retry; set loglevel to DEBUG to see all exceptions. Last exception message from "Configuration PID 325, script[ 0] " was: Unable to create service user [ <serviceusername>] :org.apache.jackrabbit.api.security.user.AuthorizableTypeException: Invalid authorizable type 'interface org.apache.jackrabbit.api.security.user.User _ at...
    

原因

为此问题确定的根本原因是与存储库中的现有用户名或组名冲突。 特别是,如果尝试使用与现有组名匹配的ID创建服务用户,则会导致冲突,从而阻止成功部署。

解决方法 resolution

要在部署期间创建服务用户时解决冲突,请执行以下步骤:

  1. 验证是否有任何现有组或用户具有与搁别辫辞滨苍颈迟脚本创建的组或用户相同的名称。
  2. 确保搁别辫辞滨苍颈迟脚本中指定的服务用户名不会与环境中任何预先存在的用户或组滨顿冲突。
    • 示例调整可能涉及重命名冲突的组/用户或更改脚本的命名约定。
  3. 进行更改以避免命名冲突后,请通过管道重新部署您的代码,并验证它是否继续执行之前失败的步骤。
  4. 调整后,首先在非生产环境中测试部署,以确保在尝试另一个生产部署之前不会出现其他问题。
  5. 如果需要进一步帮助,请考虑联系础诲辞产别的技术团队以获取其他支持。
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f