404 error when trying to login to api.10.244.0.34.xip.io

470 views
Skip to first unread message

Anirban Kundu

unread,
Jan 27, 2015, 12:25:19 PM1/27/15
to vcap...@cloudfoundry.org
I get a 404 error when trying to login to api.10.244.0.34.xip.io. My vms seem to have started up fine. See outputs below. Any suggestions what might be going wrong?



SFO1212368294B:bosh-lite 212368294$ cf api --skip-ssl-validation http://api.10.244.0.34.xip.io

Setting api endpoint to http://api.10.244.0.34.xip.io...

FAILED

Server error, status code: 404, error code: 0, message: 

SFO1212368294B:bosh-lite 212368294$ 


----



SFO1212368294B:bosh-lite 212368294$ bosh status

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/lib in PATH, mode 040777

Config

             /Users/212368294/.bosh_config


Director

  Name       Bosh Lite Director

  URL        https://192.168.50.4:25555

  Version    1.2776.0 (00000000)

  User       admin

  UUID       35b3e645-7b07-435a-bfab-69f718e0e8ef

  CPI        vsphere

  dns        disabled

  compiled_package_cache enabled (provider: local)

  snapshots  enabled 


Deployment

  Manifest   /Users/212368294/Downloads/cf/bosh-lite/manifests/cf-manifest.yml

SFO1212368294B:bosh-lite 212368294$ bosh vms

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/lib in PATH, mode 040777

Deployment `cf-warden'


Director task 33


Task 33 done


+------------------------------------+---------+---------------+--------------+

| Job/index                          | State   | Resource Pool | IPs          |

+------------------------------------+---------+---------------+--------------+

| unknown/unknown                    | running | small_errand  | 10.244.0.178 |

| unknown/unknown                    | running | small_errand  | 10.244.0.182 |

| api_z1/0                           | running | large_z1      | 10.244.0.138 |

| etcd_z1/0                          | running | medium_z1     | 10.244.0.42  |

| ha_proxy_z1/0                      | running | router_z1     | 10.244.0.34  |

| hm9000_z1/0                        | running | medium_z1     | 10.244.0.142 |

| loggregator_trafficcontroller_z1/0 | running | small_z1      | 10.244.0.150 |

| loggregator_z1/0                   | running | medium_z1     | 10.244.0.146 |

| login_z1/0                         | running | medium_z1     | 10.244.0.134 |

| nats_z1/0                          | running | medium_z1     | 10.244.0.6   |

| postgres_z1/0                      | running | medium_z1     | 10.244.0.30  |

| router_z1/0                        | running | router_z1     | 10.244.0.22  |

| runner_z1/0                        | running | runner_z1     | 10.244.0.26  |

| uaa_z1/0                           | running | medium_z1     | 10.244.0.130 |

+------------------------------------+---------+---------------+--------------+


VMs total: 14

SFO1212368294B:bosh-lite 212368294$ bosh releases

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/lib in PATH, mode 040777


+------+----------+-------------+

| Name | Versions | Commit Hash |

+------+----------+-------------+

| cf   | 196*     | 3dbb4d00+   |

+------+----------+-------------+

(*) Currently deployed

(+) Uncommitted changes


Releases total: 1

SFO1212368294B:bosh-lite 212368294$ bosh deployments

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/lib in PATH, mode 040777


+-----------+------------+-------------------------------------------------+

| Name      | Release(s) | Stemcell(s)                                     |

+-----------+------------+-------------------------------------------------+

| cf-warden | cf/196     | bosh-warden-boshlite-ubuntu-trusty-go_agent/389 |

+-----------+------------+-------------------------------------------------+


Deployments total: 1

SFO1212368294B:bosh-lite 212368294$ bosh stemcells

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/lib in PATH, mode 040777


+---------------------------------------------+---------+--------------------------------------+

| Name                                        | Version | CID                                  |

+---------------------------------------------+---------+--------------------------------------+

| bosh-warden-boshlite-ubuntu-trusty-go_agent | 389*    | a7688168-3e90-4111-7142-84396d65275e |

+---------------------------------------------+---------+--------------------------------------+


(*) Currently in-use


Stemcells total: 1

SFO1212368294B:bosh-lite 212368294$ cf api --skip-ssl-validation http://api.10.244.0.34.xip.io

Setting api endpoint to http://api.10.244.0.34.xip.io...

FAILED

Server error, status code: 404, error code: 0, message: 

SFO1212368294B:bosh-lite 212368294$ 

Anirban Kundu

unread,
Jan 27, 2015, 12:52:22 PM1/27/15
to vcap...@cloudfoundry.org
BTW - I can bosh ssh to the api vm as well.

SFO1212368294B:bosh-lite 212368294$ bosh ssh

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/lib in PATH, mode 040777


Processing deployment manifest

------------------------------

1. ha_proxy_z1/0

2. nats_z1/0

3. etcd_z1/0

4. postgres_z1/0

5. uaa_z1/0

6. login_z1/0

7. api_z1/0

8. hm9000_z1/0

9. runner_z1/0

10. loggregator_z1/0

11. loggregator_trafficcontroller_z1/0

12. router_z1/0

13. acceptance_tests/0

14. smoke_tests/0

Choose an instance: 7


Processing deployment manifest

------------------------------


Processing deployment manifest

------------------------------

Enter password (use it to sudo on remote host): *****


Processing deployment manifest

------------------------------

Target deployment is `cf-warden'


Setting up ssh artifacts


Director task 34


Task 34 done

Starting interactive shell on job api_z1/0

Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64)


 * Documentation:  https://help.ubuntu.com/


The programs included with the Ubuntu system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.


Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by

applicable law.


To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.


bosh_z7ch9232h@1f713140-e5f3-4fe2-a29b-da1d4f6bd878:~$ hostname

1f713140-e5f3-4fe2-a29b-da1d4f6bd878

bosh_z7ch9232h@1f713140-e5f3-4fe2-a29b-da1d4f6bd878:~$ ifconfig

lo        Link encap:Local Loopback  

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:6229 errors:0 dropped:0 overruns:0 frame:0

          TX packets:6229 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:1061857 (1.0 MB)  TX bytes:1061857 (1.0 MB)


wf9f97jrp0t5-1 Link encap:Ethernet  HWaddr 12:37:c7:a5:f3:53  

          inet addr:10.244.0.138  Bcast:0.0.0.0  Mask:255.255.255.252

          inet6 addr: fe80::1037:c7ff:fea5:f353/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:479486 errors:0 dropped:0 overruns:0 frame:0

          TX packets:489489 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:2858543458 (2.8 GB)  TX bytes:2500387832 (2.5 GB)


bosh_z7ch9232h@1f713140-e5f3-4fe2-a29b-da1d4f6bd878:~$

James Bayer

unread,
Jan 28, 2015, 3:31:00 AM1/28/15
to vcap...@cloudfoundry.org
does your cloud controller think it's system domain is 10.244.0.34.xip.io ?

likely this is in your deployment manifest that you can download and inspect.

--
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/3edf35b9-9237-4a7a-a592-b75da0654c5c%40cloudfoundry.org.

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



--
Thank you,

James Bayer

Anirban Kundu

unread,
Jan 28, 2015, 2:30:30 PM1/28/15
to vcap...@cloudfoundry.org
Resolved this issue. The bosh-lite/manifests/cf-manifest.yml must not have the domain property as mentioned in the bosh-lite documentation. I removed it, did a make spiff, bosh upload and deploy. That seemed to work fine.

I'm now able to cf push apps. Although troubleshooting a separate issue with "Could not resolve host" even though apps says deployed.



SFO1212368294B:spring-boot-jersey 212368294$ cf apps

Getting apps in org GePredixInsight / space develop as admin...

OK


name          requested state   instances   memory   disk   urls   

spring-boot   started           1/1         256M     1G     spring-boot.192.168.50.4   

springpong    stopped           0/1         256M     1G     springpong.192.168.50.4   

SFO1212368294B:spring-boot-jersey 212368294$ curl spring-boot.192.168.50.4

curl: (6) Could not resolve host: spring-boot.192.168.50.4



On Tuesday, January 27, 2015 at 9:25:19 AM UTC-8, Anirban Kundu wrote:

James Bayer

unread,
Jan 29, 2015, 2:51:40 AM1/29/15
to vcap...@cloudfoundry.org
i think you need spring-boot.192.168.50.4.xip.io

where xip.io will resolve to the IP address of 192.168.50.4

did you set your system domain to 192.168.50.4.xip.io

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
Reply all
Reply to author
Forward
0 new messages