问题1:VMC无法登陆
问题描述如下:大致情况就是,我可以注册,但是在登陆过程中出现了404错误。
- root@arch3:~/cloudfoundry/vcap/dev_setup/bin# vmc target api.vcap.me
- Successfully targeted to [http://api.vcap.me]
- root@arch3:~/cloudfoundry/vcap/dev_setup/bin# vmc register
- Email: y...@...com
- Password: ***
- Verify Password: ***
- Creating New User: OK
- Attempting login to [http://api.vcap.me]
- Problem with login to 'http://api.vcap.me', 404: entity not found or
- inaccessible, try again or register for an account.
解决方法:这个问题我找到的答案就是-将vmc重0.3.21版本降级到0.3.18版本,为什么会这样,我就不明白了。
问题2:部署的应用无法启动:
问题描述如下:这个是从网上copy下来的,当时情况是我执行vmc push hello,然后在Staging Application的时候出现了下面的这个错误。
- root@Ubuntu:/home/cloudfoundry# vmc start hello
- Staging Application: .............Error (JSON 504):<html><head><title>504 Gatewa...
- root@ubuntu:/home/cloudfoundry# vmc update hello
- Uploading Application:
- Checking for available resources: ok
- Processing resources: ok
- Packing application: ok
- Uploading (706K): ok
- Error (JSON 504):<html>
- <head><title>504 Gatewa...
解决方法:这个东西我在网上没有找到答案,然后我们返回看我们开始部署的时候是怎么写的配置文件:
- ---
- deployment:
- name: "rest"
- jobs:
- install:
- - nats_server
- - cloud_controller:
- builtin_services:
- - redis
- - mongodb
- - mysql
- - router
- - health_manager
- - ccdb
- - redis_node:
- index: "0"
- - redis_gateway
- - mysql_gateway
- - mongodb_node:
- index: "0"
- - mongodb_gateway
问题就是在于,新的CF已经将stager(打包)这个功能从原有的Cloud Controller中剥离开了。
所以我们需要做的事情就很简单了,重新装一次rest,只是这次记得将stager给添加上就可以了。
- vm@vm:~/test$ vim /home/vm/cloudfoundry/vcap/dev_setup/deployments/sample/multihos
- t_mysql/rest.yml
- ---
- deployment:
- name: "rest"
- jobs:
- install:
- - nats_server
- - cloud_controller:
- builtin_services:
- - redis
- - mongodb
- - mysql
- - router
- - stager
- - health_manager
- - ccdb
- - redis_node:
- index: "0"
- - redis_gateway
- - mysql_gateway
- - mongodb_node:
- index: "0"
- - mongodb_gateway
然后再试试看
vm@vm:~/cloudfoundry/vcap/dev_setup$ vmc start hello
Staging Application 'hello': OK
