bx cf logs 在切换区域时给出 "Error dialing traffic controller server"
bx cf logs gives "Error dialing traffic controller server" when switching region
我需要一个脚本来收集必须通过 bx login -a
在区域之间切换的日志。我正在使用 bluemix cli,以便我可以使用 api 密钥登录。
但是当我切换区域时 bx cf logs app_name
变得混乱。
[Ops]$ bx cf logs AppName
Invoking 'cf logs AppName'...
FAILED
Error dialing traffic controller server: websocket: bad handshake.
Please ask your Cloud Foundry Operator to check the platform configuration (traffic controller is wss://doppler.eu-gb.bluemix.net:443).
[Ops]$ bx api
API endpoint: https://api.ng.bluemix.net (API version: 2.54.0)
看看我的 api 是 ng 但多普勒是英国的 eu-gb。如果我 运行 cf logs
在英国地区,它确实可以正常工作。
版本:
[Ops]$ bx --version
bx version 0.5.4+ae22935-2017-05-18T03:55:55+00:00
[Ops]$ bx update
Checking for updates...
No update required. Your CLI is already up-to-date.
[Ops]$ bx cf --version
Invoking 'cf --version'...
cf version 6.18.0+b22884b9c-2017-02-27
我发现 this 并认为至少相关,但请注意它已在 CF 6.26 中修复并且嵌入到 bx 版本中的是 6.18。
任何解决方法? Logout/Login 和 -a 对我没有帮助。由于我需要通过 apikey.
登录,所以我不想直接使用 cf
Bluemix CLI 嵌入了版本为 6.18 的 CF CLI,'bx app logs' 实际上调用了 'cf logs',正如您从消息中看到的那样。此嵌入式 CF CLI 需要升级。
解决方法是将 cf cli 二进制文件复制到 /usr/local/Bluemix/cfcli
我需要一个脚本来收集必须通过 bx login -a
在区域之间切换的日志。我正在使用 bluemix cli,以便我可以使用 api 密钥登录。
但是当我切换区域时 bx cf logs app_name
变得混乱。
[Ops]$ bx cf logs AppName
Invoking 'cf logs AppName'...
FAILED
Error dialing traffic controller server: websocket: bad handshake.
Please ask your Cloud Foundry Operator to check the platform configuration (traffic controller is wss://doppler.eu-gb.bluemix.net:443).
[Ops]$ bx api
API endpoint: https://api.ng.bluemix.net (API version: 2.54.0)
看看我的 api 是 ng 但多普勒是英国的 eu-gb。如果我 运行 cf logs
在英国地区,它确实可以正常工作。
版本:
[Ops]$ bx --version
bx version 0.5.4+ae22935-2017-05-18T03:55:55+00:00
[Ops]$ bx update
Checking for updates...
No update required. Your CLI is already up-to-date.
[Ops]$ bx cf --version
Invoking 'cf --version'...
cf version 6.18.0+b22884b9c-2017-02-27
我发现 this 并认为至少相关,但请注意它已在 CF 6.26 中修复并且嵌入到 bx 版本中的是 6.18。
任何解决方法? Logout/Login 和 -a 对我没有帮助。由于我需要通过 apikey.
登录,所以我不想直接使用 cfBluemix CLI 嵌入了版本为 6.18 的 CF CLI,'bx app logs' 实际上调用了 'cf logs',正如您从消息中看到的那样。此嵌入式 CF CLI 需要升级。
解决方法是将 cf cli 二进制文件复制到 /usr/local/Bluemix/cfcli