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或Package Manager)。
— 在待命節點上存取這些端點時,會出現「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存取許可權。