排除 CLEAR Engine 錯誤

2022/10/13 |

症狀

CLEAR Engine 服務無法啟動。

原因

多種原因會導致 CLEAR Engine 無法啟動。這個文章描述了 CLEAR Engine 啟動錯誤的常見原因及解決方式。

解決方式

  • Windows Logs > Application 中,有一個來自 SkyAnalyzer Engine 的錯誤:

      Service cannot be started. InvalidStorageException: CLEAR Engine license could not be verified because system time is not within the expected range.
    

    收到這個錯誤是因為 license store 毀損。常見的原因是系統時間被調整了,但硬體或網路設定的變更也可能造成 license store 毀損。

    依照以下步驟重新初始化 license store:

    1. 以系統管理者身分開啟 Windows PowerShell,並輸入以下命令:

       Remove-Item "C:\ProgramData\Lucent Sky\CLEAR"
       ."C:\ProgramData\Lucent Sky\CLEAR Engine\Maintenance\Current\SkyAnalyzer.Engine.Installer.exe" -I
       Start-Service "CLEAR Engine"
      
    2. 一個對話框會出現並確認 license store 已初始化完成。
    3. 使用 Web UI 或安裝程式來啟用產品金鑰。
  • Windows Logs > Application 中,有一個來自 SkyAnalyzer Engine 的錯誤:

      Service cannot be started. System.Exception: Storage is offline. It is likely caused by another node in the cluster is currently in maintenance.
    

    收到這個錯誤是因為儲存體離線。當 CLEAR Engine 在進行維護時,儲存體會被離線。如果此 CLEAR Engine 實體屬於一個叢集,那可能是叢集中的另一個節點正在進行更新。

    若此 CLEAR Engine 是一個獨立的實體,或你確認儲存體可安全的上線,依照以下步驟將儲存體上線:

    1. 以系統管理者身分開啟 Windows PowerShell,並輸入以下命令:

       Remove-Item ((Select-Xml -Path "C:\Program Files\Lucent Sky\CLEAR Engine\SkyAnalyzer.config" -XPath "skyAnalyzer/add[@key='StorageRoot']").Node.value + "\storage_offline")
       Start-Service "CLEAR Engine"
      
  • Windows Logs > Application 中,有一個來自 SkyAnalyzer Engine 的錯誤:

      Service cannot be started. System.Data.DataException: An exception occurred while initializing the database.
    

    此外,在 SQL Server 的 Windows Logs > Application 中,有一個來自 MSSQLSERVERMSSQL$SQLEXPRESS 的錯誤:

      SQL Server is not ready to accept new client connections. Wait a few minutes before trying again. 
    

    收到這個錯誤是因為 CLEAR Engine 在 SQL Server 準備好以前就已啟動。這通常發生在 CLEAR Engine 和 SQL Server 安裝在同一個伺服器,而該伺服器在工作量大時重新開機。

    當 SQL Server 準備好之後,手動啟動 CLEAR Engine 服務。若此錯誤經常發生,考慮將 CLEAR Engine 的啟動類型由自動改為自動(延遲啟動)