簡體   English   中英

Bluemix Secure Gateway-Windows服務無法啟動,保持暫停狀態

[英]Bluemix Secure Gateway - Windows service fails to start, remains in paused status

作業系統:Windows 10

在安裝IBM Bluemix Secure Gateway Windows客戶端(ibm-securegateway-client-1.5.1 + client_windows.exe)的過程中,我檢查了Windows Service安裝選項:“如果您希望Secure Gateway Client以以下方式運行,請選中此選項:服務並自動重啟”。

檢查services.msc我看到“ IBM Bluemix安全網關服務”已注冊為客戶機,但是狀態為“已暫停”。 如果嘗試手動啟動它,則會看到提示:

“ Windows無法在本地計算機上啟動IBM Bluemix Secure Gateway Service服務。該服務未返回錯誤。這可能是Windows內部錯誤或內部服務錯誤。如果問題仍然存在,請與系統管理員聯系。”

按照https://new-console.eu-gb.bluemix.net/docs/services/SecureGateway/sg_053.html#sg_065上的文檔,我嘗試手動卸載Windows服務。

卸載可以正常使用:windowsService.cmd卸載

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client

C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client>windowsService.cmd uninstall

> ibm-bluemix-secure-gateway-client@1.5.1 uninstall-securegw-service C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client
> winser -x -r -s --name "IBM Bluemix Secure Gateway Service"

在嘗試安裝時,我看到以下輸出

C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client>windowsService.cmd install

> ibm-bluemix-secure-gateway-client@1.5.1 install-securegw-service C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client
> winser -i -a -s --name "IBM Bluemix Secure Gateway Service"

{ Error: Command failed: "C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client\node_modules\winser\bin\nssm64.exe" start "IBM Bluemix Secure Gateway Service"
I B M   B l u e m i x   S e c u r e   G a t e w a y   S e r v i c e :   U n e x p e c t e d   s t a t u s   S E R V I C E _ P A U S E D   i n   r e s p o n s e   t o   S T A R T   c o n t r o l .

    at ChildProcess.exithandler (child_process.js:207:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:852:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
  killed: false,
  code: 1,
  signal: null,
  cmd: '"C:\\Program Files (x86)\\Secure Gateway Client\\ibm\\securegateway\\client\\node_modules\\winser\\bin\\nssm64.exe" start "IBM Bluemix Secure Gateway Service" ' }

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files (x86)\\Secure Gateway Client\\ibm\\ibm-node-v6.2.1-win-x64\\node.exe" "C:\\Program Files (x86)\\Secure Gateway Client\\ibm\\ibm-node-v6.2.1-win-x64\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "install-securegw-service"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! ibm-bluemix-secure-gateway-client@1.5.1 install-securegw-service: `winser -i -a -s --name "IBM Bluemix Secure Gateway Service"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ibm-bluemix-secure-gateway-client@1.5.1 install-securegw-service script 'winser -i -a -s --name "IBM Bluemix Secure Gateway Service"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ibm-bluemix-secure-gateway-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     winser -i -a -s --name "IBM Bluemix Secure Gateway Service"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ibm-bluemix-secure-gateway-client
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ibm-bluemix-secure-gateway-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client\npm-debug.log

C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client>npm bugs ibm-bluemix-secure-gateway-client
'npm' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Secure Gateway Client\ibm\securegateway\client>

我沒有看到生成任何npm-debug.log文件。

日志信息並不能說明很多問題:

C:\\ Program Files(x86)\\ Secure Gateway Client \\ ibm \\ securegateway \\ client \\ logs

**************************************************************************************************************************************************************** 
****************************************************************Starting Windows Service************************************************************************ 
**************************************************************************************************************************************************************** 
****************************************************************Starting Windows Service************************************************************************ 
****************************************************************Windows Service stopped************************************************************************ 
*************************************************************************************************************************************************************** 
**************************************************************************************************************************************************************** 
****************************************************************Starting Windows Service************************************************************************ 
**************************************************************************************************************************************************************** 
****************************************************************Starting Windows Service************************************************************************ 

我試過將securegw_service.config剝離到最低限度(我認為),其中僅包含:

GATEWAY_ID=xxx
SECTOKEN=xxx

Windows 10的最新更新似乎導致安裝失敗。 我們已經在自己的系統上進行了確認,並且將尋找是否可以找到任何替代方法,直到找到正確的修復程序為止。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM