SQL Server 升級失敗並傳回錯誤 17182
本文可協助您針對安裝 Microsoft SQL Server 累積更新 (CU) 或 Service Pack (SP) 時所發生的錯誤 17182 進行疑難解答。 執行資料庫升級文本時發生錯誤。
徵兆
當您為 SQL Server 套用 CU 或 SP 時,安裝程式會報告下列錯誤:
等候 Database Engine 復原控制代碼失敗。 請檢查 SQL Server 錯誤記錄檔以了解潛在原因。
當您檢查 SQL Server 錯誤記錄檔時,您會注意到如下的錯誤:
2019-04-27 00:49:59.53 spid13s Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
2019-04-27 00:49:59.53 spid13s Error: 17182, Severity: 16, State: 1.
2019-04-27 00:49:59.53 spid13s TDSSNIClient initialization failed with error 0x80090331, status code 0x80. Reason: Unable to initialize SSL support. The client and server cannot communicate, because they do not possess a common algorithm.
2019-04-27 00:49:59.53 spid13s Error: 17182, Severity: 16, State: 1.
2019-04-27 00:49:59.53 spid13s TDSSNIClient initialization failed with error 0x80090331, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. The client and server cannot communicate, because they do not possess a common algorithm.
2019-04-27 00:49:59.53 spid13s Error: 17826, Severity: 18, State: 3.
2019-04-27 00:49:59.53 spid13s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2019-04-27 00:49:59.53 spid13s Error: 17120, Severity: 16, State: 1.
2019-04-27 00:49:59.53 spid13s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
原因
如果伺服器上停用 TLS 1.0,而且您嘗試安裝 Microsoft sql Server 2012 或 2014 的組建,但不包含啟用 TLS 1.2 支援的修正程式,就會發生此問題。 如需此問題的詳細資訊,請參閱KB3135769 - FIX:當您在已啟用 TLS 1.2 的伺服器上安裝 SQL Server 2012 或 SQL Server 2014 時發生錯誤(microsoft.com)。
解決方法
若要解決 17182 錯誤,請遵循下列步驟:
要求系統管理員使用下列任一方法,暫時在用戶端和伺服器計算機上啟用 TLS 1.0 或 TLS 1.1:
- IIS 密碼編譯 (Schannel 區段) 以驗證並變更目前的 TLS 設定
- 每個 Schannel 特定登錄機碼的登錄編輯器
如需詳細資料,請參閱 TLS 1.2 升級工作流程和升級至 TLS 1.2 之後的 SSL 錯誤。
重新啟動 SQL Server 服務。
執行 SQL Server 2012 或 2014 安裝程式,並將 SQL Server 版本更新為支援 TLS 1.2 的組建。 如需新增 TLS 1.2 支援更新的詳細資訊,請參閱 KB KB3052404 - FIX:您無法使用傳輸層安全性通訊協定 1.2 版連線到執行 SQL Server 2014 或 SQL Server 2012 (microsoft.com) 的伺服器。
停用 TLS 1.0 或 TLS 1.1。
重新啟動 SQL Server 服務。