SQL Prompt安裝不上(報錯:1603)

蜗牛的礼物發表於2024-07-19

一開始一直跟蹤服務看到是RedGate Client 執行不起來(報錯資訊程式碼是這個1603),

後面查詢到官網:https://productsupport.red-gate.com/hc/en-us/articles/360015772598-Redgate-Client-Service-fails-to-start

使用管理員執行CMD執行:
netsh http add iplisten 127.0.0.1

之後再安裝就可以了

官網原文:

Redgate Client Service fails to start
FollowNot yet followed by anyone
The Redgate Client Service is a Windows Service that is installed along with any Redgate client tool. Our tools will use the service in order to validate your licenses. In the first instance ensure you're on the latest version of the RCS, you can find the installer at the bottom of this page. 

In some cases, a Redgate tool may fail because the Redgate Client Service can't be installed or updated. You may see one of these messages:

'Redgate Client' (RedGateClient) failed to start. Verify that you have sufficient privileges to start system services.

'Redgate Client' (RedGateClient) failed to Stop. Verify that you have sufficient privileges to stop system services.

If you experience one of these errors, please try the following troubleshooting steps:

Open your Services panel. If the Redgate Client service already exists, right-click on the service and choose Stop. If the service fails to stop, manually stop the process by opening Task Manager > Details > sort by Name > locate Redgate.Client.Service.exe > right-click on it and choose End task.
Delete any file in C:\Program Files (x86)\Common Files\Red Gate\Shared Client that looks like ".rgupdate_bad_xxxx", and then try running the installer again.
Should that fail, run 'netsh http show iplisten' from a command prompt running as administrator and take a screenshot of what is listed (see below).
Check Event Viewer > Windows log > Application for any related errors.
Raise a support ticket and send over the screenshot, the Event Viewer errors, and the full service log files from C:\ProgramData\Red Gate\Shared Client\Log  
You may also be getting an error message that the Redgate Client Service won't start that's unrelated to an installation. This error message could mean a firewall rule may be preventing the local use of HTTP. Please open an administrative command prompt and try the following commands:

This first command shows if any rules are defined:

>netsh http show iplisten

If there are no rules, then by default all services are on the AllowList. However, if the default is changed or if there is at least one rule then it may be necessary to add an extra one.

What you may see is "::" as a rule after running the above command. This is a rule that likely would have been added by another app. (changes to these rules are not audited so it isn't possible to tell which app added it). If that is the case though then you will need to apply the rule below:

>netsh http add iplisten 127.0.0.1

Once added, please navigate to http://localhost:22221/redgate/status.html again to activate the license.

If this doesn't help, or if other non-RG services are affected then please raise a support ticket. The rule can be removed using the command below:

>netsh http delete iplisten 127.0.0.1

 

百度翻譯:

Redgate客戶端服務無法啟動
Follow還沒有人關注
Redgate客戶端服務是與任何Redgate客戶端工具一起安裝的Windows服務。我們的工具將使用該服務來驗證您的許可證。首先,確保您使用的是RCS的最新版本,您可以在本頁底部找到安裝程式。
在某些情況下,由於無法安裝或更新Redgate客戶端服務,Redgate工具可能會失敗。您可能會看到以下訊息之一:
“Redgate客戶端”(RedGateClient)啟動失敗。請驗證您是否有足夠的許可權啟動系統服務。
“Redgate客戶端”(RedGateClient)停止失敗。請驗證您是否有足夠的許可權停止系統服務。
如果您遇到這些錯誤之一,請嘗試以下故障排除步驟:
開啟“服務”皮膚。如果Redgate客戶端服務已存在,請右鍵單擊該服務並選擇停止。如果服務無法停止,請開啟“工作管理員”>“詳細資訊”>“按名稱排序”>“定位Redgate”手動停止程序。客戶。Service.exe>右鍵單擊它並選擇結束任務。
刪除C:\Program Files(x86)\Common Files\Red Gate\Shared Client中看起來像“.rgupdate_bad_xxxx”的任何檔案,然後再次嘗試執行安裝程式。
如果失敗,請從以管理員身份執行的命令提示符執行“netsh http show iplisten”,並對所列內容進行截圖(見下文)。
檢查事件檢視器>Windows日誌>應用程式是否有任何相關錯誤。
提交支援工單,並從C:\ProgramData\Red Gate\Shared Client\log傳送螢幕截圖、事件檢視器錯誤和完整的服務日誌檔案
您可能還會收到一條錯誤訊息,提示Redgate客戶端服務無法啟動,這與安裝無關。此錯誤訊息可能意味著防火牆規則可能阻止本地使用HTTP。請開啟管理命令提示符並嘗試以下命令:
第一個命令顯示是否定義了任何規則:
>netsh http顯示iplisten
如果沒有規則,則預設情況下所有服務都在AllowList上。但是,如果更改了預設值或至少有一條規則,則可能需要新增一條額外的規則。
執行上述命令後,您通常會看到“::”。這是另一個應用程式可能新增的規則。(對這些規則的更改不會經過稽核,因此無法分辨是哪個應用程式新增了這些更改)。如果是這樣的話,那麼您需要應用以下規則:
>netsh http新增iplisten 127.0.0.1
新增後,請導航到http://localhost:22221/redgate/status.html再次啟用許可證。
如果這沒有幫助,或者其他非RG服務受到影響,請提出支援票。可以使用以下命令刪除該規則:
>netsh http刪除iplisten 127.0.0.1

相關文章