Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm cloud 在Mac上安装安全网关失败_Ibm Cloud_Secure Gateway - Fatal编程技术网

Ibm cloud 在Mac上安装安全网关失败

Ibm cloud 在Mac上安装安全网关失败,ibm-cloud,secure-gateway,Ibm Cloud,Secure Gateway,从Finder运行secgw.command并获得许多NPM错误 警告/错误的开始: 结束 找不到日志文件: 我安装了log4js npm安装了log4js-g,但仍然出现错误 npm缓存清理没有帮助 将ibm目录复制到其他地方并使用sudo 日志级别增加的输出: MacBook-Pro-3:client jps$ node lib/secgwclient.js <gateway> -t <token> [2017-10-14 13:33:37.290] [

从Finder运行secgw.command并获得许多NPM错误

警告/错误的开始:

结束

找不到日志文件:

我安装了log4js npm安装了log4js-g,但仍然出现错误

npm缓存清理没有帮助

将ibm目录复制到其他地方并使用sudo

日志级别增加的输出:

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> 
再次尝试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错误可能意味着包没有正确下载,因此无法解包。尝试运行npm cache clean可能需要sudo,然后再次运行secgw.command脚本

确保您可以基于Bluemix region sgmanager对区域服务器进行telnet。.Bluemix.net,其中是以下内容之一:

美国南部:ng 联合王国:欧盟gb 德国:欧盟 悉尼:AuSyd 例如,如果您使用的是德国地区,成功的telnet连接应如下所示:

$ telnet sgmanager.eu-de.bluemix.net 443
Trying 169.50.24.140...
Connected to eu-de.bluemix.net.
对于您尝试连接到的网关,它将在网关信息面板的安全网关仪表板上指定一个节点。确保您也可以在端口9000上远程登录到该服务器名称。例如,具有节点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..bluemix.net或特定网关节点的地址,并将导致上述一个或两个telnet命令失败。

尝试npm cache clean:相同错误。复制了ibm目录somwhere else并运行sudo./secgw.command:no untar errors,但有一个secgw error:error]Client ID 36322响应代码为:ENOTFOUND,消息为:getaddrinfo。网关是在Bluemix中启用的,但是用红环标记的应该是绿色的,我假设.ENOTFOUND意味着您的机器无法解析SG服务器的主机名。您是否能够telnet sgmanager..bluemix.net 443美国南部、英国、悉尼和法兰克福的bluemix地区ng、eu gb、au syd或eu de在哪里。增加日志级别以进行调试或跟踪也将记录它正在调用的日志。请添加telnet和ping结果。建议如何增加loglevelcorrection:今天可以对美国南部、GB、法兰克福、telnet 443进行ping,但对在法兰克福运行SG服务的任何人仍不起作用。我已更新了我的答案,并提供了telnet预期的更具体结果。要增加日志级别,您必须导航到securegateway/client目录并尝试运行node lib/secgwclient.js-t-l TRACE来手动启动客户端
$ telnet sgmanager.eu-de.bluemix.net 443
Trying 169.50.24.140...
Connected to eu-de.bluemix.net.
$ 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.