Connection refused -

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


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

admin(a)CT-Test-v231:~$ cf login -a -u admin -p admin --skip-ssl-validation
API endpoint:
Warning: Insecure http API endpoint detected: secure https API endpoints are recommended
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: (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 fetching domains.
Server error, status code: 500, error code: 10001, message: An unknown error occurred.

I found this in the cloud_controller_ng.log:

,"message":"Request failed: 500: {\"code\"=>10001
, \"description\"=>\"Connection refused - connect(2) for \\\"\\\" port 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'\"

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


Join { to automatically receive all group messages.