AEM 6.5 TarMK冷备用: HTTP 503 AuthenticationSupport服务缺少错误
✨ 此内容是AI生成的,可能不准确。 生成AI术语
本文介绍为什么AEM 6.5 TarMK冷备用节点上出现“AuthenticationSupport service missing(缺少AuthenticationSupport服务)”HTTP 503错误,并提供验证正确备用配置和操作的步骤。
描述 description
环境
- 内部部署的Adobe Experience Manager (AEM) 6.5
- TarMK冷备用架构
症状
在AEM 6.5中设置TarMK冷备用并将crx-quickstart目录从主目录同步到备用目录(使用备用运行模式)时,在备用实例上访问/aem/start.html会导致HTTP 503错误:
HTTP ERROR 503
Problem accessing /aem/start.html. Reason: AuthenticationSupport service missing. Cannot authenticate request.
错误日志也可能显示:
*ERROR* org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
*ERROR* org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.
在将主设备同步到备用设备并将运行模式更新为“备用”后,会发生这种情况。
原因
TarMK冷备用节点上出现HTTP 503“AuthenticationSupport service missing”错误,因为该备用节点并非旨在为普通的AEM端点提供服务。 只能访问OSGi Web控制台进行管理。 这可以确保数据一致性,并防止用户访问只读、仅同步的节点。
解决方法 resolution
请按照以下步骤解决问题。
-
了解预期的待机行为:
— 在AEM TarMK冷备用体系结构中,备用节点仅用于内容同步,不提供普通AEM端点(如“/aem/start.html”、Sites、CRXDE或包管理器)。
— 在备用节点上访问这些端点时,会出现“AuthenticationSupport服务缺失”的HTTP 503错误。
2. 验证备用节点的运行状况:
— 访问位于“http(s)://<host>:<port>/system/console”的OSGi Web控制台。
— 确认可在备用节点上访问“/system/console”。
— 验证“/system/console/status-slingsettings”处的运行模式是否包含“standby”(如果适用,“crx3”、“crx3tar”)。
— 检查“error.log”以成功获取备用同步启动消息,如“StandbyStartedService与<host>:8023’.
的备用同步 — 查看:
的备用JMX MBean (‘org.apache.jackrabbit.oak:type=“Standby”’)
-
Running = true -
Status = running -
SecondsSinceLastSuccess不是-1 -
在初始同步期间检查
tarmk-coldstandby.log的区段传输活动。
3. 确保正确的待机设置:— 仅在停止主服务器后将完整安装复制到备用服务器。
— 配置单独的文件系统支持的“install.standby”配置。
— 启动具有运行模式的备用实例: ‘standby,crx3,crx3tar’ (如适用)。
— 仅使用“standby”运行模式是不够的;请确保所有必需的运行模式都存在。
4. 将待机模式升级为主模式(如果需要):
— 要测试故障转移,请停止或隔离主节点。
— 在“crx-quickstart/conf/sling.properties”中将备用节点的运行模式从“standby”更新为“primary”。
— 启动节点并验证是否还原了正常AEM访问。