Connection refused - api.10.244.0.22.xip.io:443


Wayne Ha <wayne.h.ha@...>
 

Hi,

I am trying CF v231 and am able to run cf login with a warning:

admin(a)CT-Test-v231:~$ cf login -a api.10.244.0.22.xip.io -u admin -p admin --skip-ssl-validation
API endpoint: api.10.244.0.22.xip.io
Warning: Insecure http API endpoint detected: secure https API endpoints are recommended
Authenticating...
OK
Select an org (or press enter to skip):
1. admin
2. org
3. cats-org
Org> 2
Targeted org org
Targeted space org_dev
API endpoint: http://api.10.244.0.22.xip.io (API version: 2.51.0)
User: admin
Org: org
Space: org_dev

But the cf domains command failed:

admin(a)CT-Test-v231:~$ cf domains
Getting domains in org org as admin...
FAILED
Failed fetching domains.
Server error, status code: 500, error code: 10001, message: An unknown error occurred.

I found this in the cloud_controller_ng.log:

{"timestamp":1458396949.2190628
,"message":"Request failed: 500: {\"code\"=>10001
, \"description\"=>\"Connection refused - connect(2) for \\\"api.10.244.0.22.xip.io\\\" port 443 (api.10.244.0.22.xip.io:443)\"
, \"error_code\"=>\"CF-ECONNREFUSED\"
, \"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.2.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:597:in `initialize'\"
, \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.2.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:597:in `new'\"
, \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.2.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:597:in `create_socket'\"
etc...

Is there a way I can get this command not to connect to port 443 (https) and use port 8080 (http) instead?

Thanks,

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.