cf target refused connection

427 views
Skip to first unread message

ng....@gmail.com

unread,
Jul 30, 2014, 12:39:03 AM7/30/14
to vcap...@cloudfoundry.org
Hi guys,

I already running a CF v.176 on AWS. All services is running. But I can't run cf target:

root@ip-10-0-68-31:/home/ubuntu# cf target api.174.129.39.229.xip.io --debug

Setting target to http://api.174.129.39.229.xip.io... FAILED

Target refused connection.


I'm sure no problem with Security Group because I opened all ports. And of course no proxy.

Could u tell me what's wrong?

Tao Deng

unread,
Jul 30, 2014, 12:53:19 AM7/30/14
to vcap...@cloudfoundry.org
Can you try 'cf api api.174.129.39.229.xip.io'?


--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/4cb9317d-72fb-44c9-beec-e339597d7669%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

ng....@gmail.com

unread,
Jul 30, 2014, 1:31:37 AM7/30/14
to vcap...@cloudfoundry.org, td...@pivotal.io
Hi Tao,

root@ip-10-0-68-31:/home/ubuntu# cf api api.174.129.39.229.xip.io

Unknown command 'api'. See 'help' for available commands.

Tao Deng

unread,
Jul 30, 2014, 2:09:04 AM7/30/14
to ng....@gmail.com, vcap...@cloudfoundry.org
Which cf version are you using? It seems that you are using old version of cf cli. Can you try to install latest cf cli and retry?

Nguyen Anh Tu

unread,
Jul 30, 2014, 2:45:07 AM7/30/14
to Tao Deng, vcap...@cloudfoundry.org
I'm using: cf 5.4.7 I installed it from gem: gem install cf. Yes let me try the lastest version.

Thanks,



--Tuna

Nguyen Anh Tu

unread,
Jul 30, 2014, 4:21:37 AM7/30/14
to vcap...@cloudfoundry.org, td...@pivotal.io, tu...@apache.org
Hi Tao,

I installed lastest version of CF. But:

Setting api endpoint to http://api.174.129.39.229.xip.io......
FAILED
connection refused

Daniel Mikusa

unread,
Jul 30, 2014, 8:41:04 AM7/30/14
to vcap...@cloudfoundry.org
On Wed, Jul 30, 2014 at 4:21 AM, Nguyen Anh Tu <ng....@gmail.com> wrote:
Hi Tao,

I installed lastest version of CF. But:

Setting api endpoint to http://api.174.129.39.229.xip.io......
FAILED
connection refused

You could run "CF_TRACE=true cf api http://api.174.129.39.229.xip.io".  It would show more about what's happening.

It's probably also worth making sure that you can send a request to the api.  What happens if you just run "curl http://api.174.129.39.229.xip.io/v2/info"?  If that doesn't work, you might have an network issue or something blocking the request.

Dan

 

Nguyen Anh Tu

unread,
Jul 30, 2014, 12:25:20 PM7/30/14
to vcap...@cloudfoundry.org

On Wed, Jul 30, 2014 at 7:41 PM, Daniel Mikusa <dmi...@pivotal.io> wrote:

Daniel,

I got this:

root@ip-10-0-68-31:/home/ubuntu# curl http://api.174.129.39.229.xip.io/v2/info

curl: (7) Failed to connect to api.174.129.39.229.xip.io port 80: Connection refused


I accessed to api job vm to see what ports are opened. I couldn't see port 80. Here is the list:

root@b40fbe3a-498b-49af-8799-3ddd465ac598:/var/vcap/bosh_ssh/bosh_4da34i594# netstat -antp

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name

tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      392/portmap     

tcp        0      0 10.238.245.237:8080     0.0.0.0:*               LISTEN      15305/gorouter  

tcp        0      0 127.0.0.1:33331         0.0.0.0:*               LISTEN      1327/ruby       

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1411/sshd       

tcp        0      0 0.0.0.0:53175           0.0.0.0:*               LISTEN      422/rpc.statd   

tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      777/exim4       

tcp        0      0 0.0.0.0:9022            0.0.0.0:*               LISTEN      15344/nginx.conf

tcp        0      0 10.238.245.237:33664    0.0.0.0:*               LISTEN      15131/ruby      

tcp        0      0 127.0.0.1:2822          0.0.0.0:*               LISTEN      1511/monit      

tcp        0      0 127.0.0.1:2825          0.0.0.0:*               LISTEN      1327/ruby       

tcp        0      0 127.0.0.1:33331         127.0.0.1:34538         ESTABLISHED 1327/ruby       

tcp        0      0 10.238.245.237:59850    50.17.193.43:4222       ESTABLISHED 1327/ruby       

tcp        0      0 10.238.245.237:53336    10.236.194.148:5524     ESTABLISHED 15131/ruby      

tcp        0      0 127.0.0.1:34538         127.0.0.1:33331         ESTABLISHED 15346/rsyslogd  

tcp        0      0 10.238.245.237:25947    10.236.194.148:5524     ESTABLISHED 15226/ruby      

tcp        0      0 10.238.245.237:25946    10.236.194.148:5524     ESTABLISHED 15182/ruby      

tcp        0      0 10.238.245.237:60855    10.236.194.148:4222     ESTABLISHED 15131/ruby      

tcp        0      0 10.238.245.237:53334    10.236.194.148:4222     ESTABLISHED 15305/gorouter  

tcp        0      0 10.238.245.237:60849    10.236.194.148:4222     ESTABLISHED 15131/ruby      

tcp        0      0 10.238.245.237:53346    10.236.194.148:4222     ESTABLISHED 15226/ruby      

tcp        0      0 10.238.245.237:22       10.151.27.176:40015     ESTABLISHED 25066/sshd: bosh_4d

tcp        0      0 10.238.245.237:53343    10.236.194.148:4222     ESTABLISHED 15182/ruby      

tcp6       0      0 :::8081                 :::*                    LISTEN      15305/gorouter  

tcp6       0      0 :::22                   :::*                    LISTEN      1411/sshd       

tcp6       0      0 ::1:25                  :::*                    LISTEN      777/exim4 


And I tried with port 8080:

root@ip-10-0-68-31:/home/ubuntu# curl http://api.174.129.39.229.xip.io:8080/v2/info

401 Unauthorized


Did I deploy CF incorrectly?

--Tuna
Reply all
Reply to author
Forward
0 new messages