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,


Amit Kumar Gupta
 

Any reason you're targetting api.10.244.0.22.xip.io and not
https://api.bosh-lite.com?

On Sat, Mar 19, 2016 at 8:17 AM, Wayne Ha <wayne.h.ha(a)gmail.com> wrote:

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,


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

Amit,

You are right, if I use the default bosh-lite-v231.yml which uses api.bosh-lite.com then the cf domains command works.

But now I am adding the changes for v231 into boshlite-devbox.yml based on v226 which uses api.10.244.0.22.xip.io then the cf domains command fails.

Can I continue using api.10.244.0.22.xip.io?

Thanks,


Amit Kumar Gupta
 

I'm not sure what you mean by "adding changes which uses
api.10.244.0.22.xip.io". Why not use api.bosh-lite.com?

Also, I don't know anything ever used api.10.244.0.22.xip.io. The previous
domain was api.10.244.0.34.xip.io (34, not 22).

Best,
Amit

On Sat, Mar 19, 2016 at 9:06 PM, Wayne Ha <wayne.h.ha(a)gmail.com> wrote:

Amit,

You are right, if I use the default bosh-lite-v231.yml which uses
api.bosh-lite.com then the cf domains command works.

But now I am adding the changes for v231 into boshlite-devbox.yml based on
v226 which uses api.10.244.0.22.xip.io then the cf domains command fails.

Can I continue using api.10.244.0.22.xip.io?

Thanks,


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

Amit,

Thanks for your help. I tried api.bosh-lite.com and it works fine:

admin(a)CT-Test-v231:~$ ping -c 1 api.bosh-lite.com
PING api.bosh-lite.com (10.244.0.34) 56(84) bytes of data.
64 bytes from 10.244.0.34: icmp_seq=1 ttl=63 time=0.664 ms
--- api.bosh-lite.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.664/0.664/0.664/0.000 ms

Thanks,