OS保持暫停狀態:WINDOWS 10Bluemix安全網關 - Windows服務無法啓動,
在安裝過程中IBM Bluemix的安全網關的Windows客戶端(IBM-securegateway-客戶1.5.1 + client_windows.exe) ,我檢查了Windows服務安裝選項: 「如果您希望Secure Gateway Client作爲服務運行並自動重新啓動,請檢查此選項」。
檢查services.msc我看到「IBM Bluemix Secure Gateway Service」已註冊爲客戶端,但狀態爲「已暫停」。 如果我嘗試手動啓動它,我看到一個提示:。
「Windows無法啓動IBM Bluemix安全網關服務 服務本地計算機上的服務未返回一個錯誤這 可能是一個內部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
> [email protected] 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
> [email protected] 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! [email protected] 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 [email protected] 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)的\安全網關的客戶端\ IBM \ securegateway \客戶端\日誌
****************************************************************************************************************************************************************
****************************************************************Starting Windows Service************************************************************************
****************************************************************************************************************************************************************
****************************************************************Starting Windows Service************************************************************************
****************************************************************Windows Service stopped************************************************************************
***************************************************************************************************************************************************************
****************************************************************************************************************************************************************
****************************************************************Starting Windows Service************************************************************************
****************************************************************************************************************************************************************
****************************************************************Starting Windows Service************************************************************************
我試圖剝離securegw_service的.config回裸最小的(我認爲),只包含:
GATEWAY_ID=xxx
SECTOKEN=xxx