Search code examples
linuxloggingcommand-line-interfaceibm-cloudcloud-foundry

Bluemix CLI on Linux - websocket: bad handshake


I'm able to push and execute a Java sample application under a Bluemix account but when running the log command through the CLI prompt I receive an error message as shown below:

 cf logs myapp-myname --recent
Connected, dumping recent logs for app myapp-myname in org [email protected] / space dev as [email protected]...

FAILED
websocket: bad handshake

My local platform the runs the CLI is Linux, see the currently installed version:

cf -version
cf version 6.1.2-6a013ca

When accessing the log records through the web console dashboard, all log information is shown correctly.


Solution

  • The error you are seeing is because you are using an old version of Cloud Foundry CLI. This version is not supported in Bluemix.

    Please use the link below to get a more recent version:

    https://github.com/cloudfoundry/cli/releases