BOSH CLI command failed with "http: server gave HTTP response to HTTPS client"
search cancel

BOSH CLI command failed with "http: server gave HTTP response to HTTPS client"

book

Article ID: 293781

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

The BOSH environment was set properly, but any BOSH CLI would fail like below example.
++ bosh deployments --column=name
Fetching info:
  Performing request GET 'https://x.x.x.x:25555/info':
    Performing GET request:
      Retry: Get "https://x.x.x.x:25555/info": http: server gave HTTP response to HTTPS client
Exit code 1

The commands were run on a Jumpbox node. While running same commands on Ops Manager VM, there was no any problem.

It's found there was HTTP proxy settings on Jumpbox node for accessing external resource. However BOSH director instance stayed internally and no proxy needed to access it. 

Environment

Product Version: 2.10

Resolution

Setup NO_RPOXY environment on Jumpbox node to exclude BOSH director from using proxy. For example,
$ export NO_PROXY=<BOSH_DIRECTOR IP>