从查找器运行secgw.command,得到了许多NPM错误
警告/错误的开始:

端

找不到日志文件:

我安装了log4js (npm安装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发布于 2017-10-03 15:27:24
tar.unpack untar error可能意味着软件包没有正确下载,因此无法解压缩(见本国家预防机制问题)。尝试运行npm cache clean (可能需要sudo),然后再次运行secgw.command脚本。
确保您可以通过sgmanager.<region>.bluemix.net (基于您的Bluemix区域)向区域服务器发送以下内容之一:
ngeu-gbeu-deau-syd例如,如果您正在使用德国区域,成功的telnet连接应该如下所示:
$ telnet sgmanager.eu-de.bluemix.net 443
Trying 169.50.24.140...
Connected to eu-de.bluemix.net.对于要连接的网关,它将在网关信息面板中的安全网关仪表板上指定一个节点。确保您还可以在端口9000上将该服务器名发送到该服务器名。例如,具有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.承载安全网关客户端的机器必须能够访问区域服务器和您的网关所在的服务器,才能成功连接。
当试图连接安全网关客户端时,ENOTFOUND意味着一个网络问题,导致运行客户端的主机无法解析sgmanager.<region>.bluemix.net或特定网关节点的地址,并导致上述一个或两个telnet命令失败。
https://stackoverflow.com/questions/46502272
复制相似问题