簡體   English   中英

在Mac上安裝Secure Gateway失敗

[英]Installation of Secure Gateway on Mac fails

從Finder運行secgw.command並收到許多NPM錯誤

警告/錯誤開始: 在此處輸入圖片說明

結束 在此處輸入圖片說明

找不到日志文件: 在此處輸入圖片說明

我安裝了log4js(npm install log4js -g),仍然出現錯誤。

npm cache clean沒有幫助。

ibm目錄復制到其他地方並使用sudo

MacBook-Pro:ibm jps$ cd Desk*
MacBook-Pro:ibm jps$ cd ibm
MacBook-Pro:ibm jps$ sudo ./secgw.command

在此處輸入圖片說明

在此處輸入圖片說明

輸出日志級別增加:

MacBook-Pro-3:client jps$ node lib/secgwclient.js <gateway> -t <token>
    [2017-10-14 13:33:37.290] [INFO] (Client ID 22481) No password provided. The UI will not require a password for access
    [2017-10-14 13:33:37.313] [WARN] (Client ID 22481) UI Server started. The UI is not currently password protected
    [2017-10-14 13:33:37.313] [INFO] (Client ID 22481) Visit localhost:9003/dashboard to view the UI.
    cli> [2017-10-14 13:33:37.750] [INFO] (Client ID 22482) Setting log level to TRACE
    [2017-10-14 13:33:37.755] [DEBUG] (Client ID 22482) The Secure Gateway client will fetch its configuration from https://sgmanager.eu-de/.bluemix.net/sgconfig/QqiJp83bfu4_prod_eu-de/
    [2017-10-14 13:33:37.862] [INFO] (Client ID 22483) Setting log level to INFO
    [2017-10-14 13:33:37.870] [ERROR] (Client ID 22482) The response is code: ENOTFOUND, message: getaddrinfo
    cli> [2017-10-14 13:33:37.872] [INFO] (Client ID 22482) Process exiting without errors due to user or server request
    [2017-10-14 13:33:38.422] [ERROR] (Client ID 22483) The Secure Gateway tunnel connection had an error
    cli> [2017-10-14 13:33:38.425] [INFO] (Client ID 22483) Process exiting without errors due to user or server request
    cli> 

Telnet到德國:已連接,但未提示用戶

Peters-MacBook-2784:~ jps$ telnet sgmanager.eu-de.bluemix.net 443
Trying 169.50.12.140...
Connected to eu-de.bluemix.net.
Escape character is '^]'.

再次嘗試secgw.command:

[2017-10-14 22:07:43.205] [INFO] (Client ID 27049) No password provided. The UI will not require a password for access
[2017-10-14 22:07:43.216] [ERROR] (Client ID 27049) Unable to establish UI on port 9003.  Is this port already in use?
cli> [2017-10-14 22:07:43.497] [INFO] (Client ID 27050) Setting log level to INFO
[2017-10-14 22:07:43.537] [ERROR] (Client ID 27050) The response is code: ENOTFOUND, message: getaddrinfo
cli> [2017-10-14 22:07:43.539] [INFO] (Client ID 27050) Process exiting without errors due to user or server request

tar.unpack untar error可能意味着軟件包未正確下載,因此無法解壓縮( 請參閱此npm問題 )。 嘗試運行npm cache clean (可能需要sudo),然后再次運行secgw.command腳本。

確保您可以遠程登錄區域服務器(基於您的Bluemix區域) sgmanager.<region>.bluemix.net ,其中以下之一:

  • 美國南部: ng
  • 英國: eu-gb
  • 德國: eu-de
  • 悉尼: au-syd

例如,如果您使用的是德國地區,則成功的telnet連接應如下所示:

$ telnet sgmanager.eu-de.bluemix.net 443
Trying 169.50.24.140...
Connected to eu-de.bluemix.net.

對於您嘗試連接的網關,它將在網關信息面板的安全網關儀表板上指定一個節點。 確保您也可以在端口9000上telnet到該服務器名稱。 例如,具有Node cap-eu-de-prd-sg-bm-01.integration.ibmcloud.com的網關將具有以下成功的telnet:

$ telnet cap-eu-de-prd-sg-bm-01.integration.ibmcloud.com 9000
Trying 159.122.71.68...
Connected to cap-eu-de-prd-sg-bm-01.integration.ibmcloud.com.

托管Secure Gateway Client的計算機必須能夠同時訪問區域服務器和網關所托管的服務器,才能成功連接。

嘗試連接安全網關客戶端時, ENOTFOUND暗示網絡問題,導致運行客戶端的主機無法解析sgmanager.<region>.bluemix.net或特定網關節點的地址,並可能導致或以上兩個telnet命令均失敗。

暫無
暫無

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

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