bx cf日志显示“错误拨号流量控制器服务器”切换区域时 [英] bx cf logs gives "Error dialing traffic controller server" when switching region

查看:118
本文介绍了bx cf日志显示“错误拨号流量控制器服务器”切换区域时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个脚本来收集日志,该日志必须通过 bx登录-a 在区域之间切换。我正在使用bluemix cli,以便可以使用apikey登录。

I need a script to collect logs which must switch between regions via a bx login -a. I'm using the bluemix cli so that I can login using an apikey.

但是当我切换区域时, bx cf日志app_name 变得很麻烦。

But when I switch regions the bx cf logs app_name goes haywire.

[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日志,它确实可以正常工作。

See how my api is ng but the doppler is the UK's eu-gb. If I run cf logs in UK region it does work fine.

版本:

[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

我发现,并认为至少相关,但请注意,该问题已在CF 6.26中修复,并且在bx版本中嵌入为6.18。

I found this and reckon at least related but note it's fixed in CF 6.26 and the embedded in bx version is 6.18.

任何解决方法?使用-a退出/登录对我没有帮助。由于我需要通过apikey登录,因此我不想直接使用cf。

Any workaround? Logout/Login with -a doesn't help me. I don't want to use cf directly due to my requirement to login via apikey.

推荐答案

Bluemix CLI嵌入了带有从消息中可以看到,在版本6.18中, bx应用程序日志实际上调用了 cf日志。此嵌入式CF CLI需要进行升级。

Bluemix CLI embedded a CF CLI with version 6.18, 'bx app logs' actually invokes 'cf logs' as you can see from the messages. This embedded CF CLI needs to be upgraded.

一种解决方法是将cf cli二进制文件复制到/ usr / local / Bluemix / cfcli

A workaround is to just copy the cf cli binary to /usr/local/Bluemix/cfcli

这篇关于bx cf日志显示“错误拨号流量控制器服务器”切换区域时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆