我一直在尝试更改域名并遇到问题。我希望有人可以帮助我,我已经记录了我在下面介绍的步骤。
我从我们的DNS管理团队请求DNS资源。
.mike-cf.company.com规范名称= mike-cf.company.com。 姓名:mike-cf.company.com 地址:10.52.88.123
然后我使用-D开关安装:
bash< <(curl -s -k -B http://raw.github.com/cloudfoundry/vcap/master/dev_setup/bin/vcap_dev_setup -D mike-cf.company.com)
我注意到〜/ cloudfoundry / .deployments / devbox / config中的所有配置文件都没有更改,所以我使用sed命令更改了这些:
$ cd~ / cloudfoundry / .deployments / devbox / config $ sed -i's / .vcap.me / .newdomain.com / g'* .yml
我重新开始,事情看起来不错,我能够毫无问题地运行vmc目标,但我无法注册用户。
$ vmc target http://api.mike-cf.company.com/ 成功定位到[http://api.mike-cf.company.com]
$ vmc register --email mike@company.com --passwd密码 创建新用户:错误100:错误请求
在cloud_controller.log
中只有uaa.log中没有这个 [2012-09-25 09:06:46.712110] cc - pid = 20400 tid = 8ee9 fid = 4757 DEBUG - ---> async \ nrequest:post http://uaa.mike-cf.company.com/oauth/token \ nheaders:{“content-type”=>“application / x-www-form-urlencoded”,“accept”=>“application / json”,“authorization”= >“Basic Y2xvdWRfYudud,JvvGxxjpjbG91ZGNvbnRyb2xsZXJzZWNyZXQ =”} \ nbody:grant_type = client_credentials
[2012-09-25 09:06:46.718338] cc - pid = 20400 tid = 8ee9 fid = 4757 DEBUG - < --- \ nresponse:404 \ nheaders:{“SERVER”=>“nginx”,“ DATE“=>”Tue,25 Sep 2012 16:06:46 GMT“,”CONTENT_TYPE“=>”text / html“,”CONTENT_LENGTH“=>”162“,”CONNECTION“=>”关闭“ } \ nbody:\ r \ n404 Not Foundhttp://uaa.mike-cf.company.com:404 trace [“/home/mike/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180 /lib/ruby/gems/1.9.1/bundler/gems/uaa-dad29c9030f4/gem/lib/uaa/http.rb:56:in json_parse_reply'", "/home/mike/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/bundler/gems/uaa-dad29c9030f4/gem/lib/uaa/token_issuer.rb:157:in
request_token'“,”/ home / mike / cloudfoundry /。 deployments / devbox / deploy / rubies / ruby-1.9.2-p180 / lib / ruby / gems / 1.9.1 / bundler / gems / uaa-dad29c9030f4 / gem / lib / uaa / token_issuer.rb:128:in {{1 } access_token'“,”/ home / myke / cloudfoundry / cloud_controller / cloud_controller / app / model / aaa_token.rb:96:in client_credentials_grant'", "/home/mike/cloudfoundry/cloud_controller/cloud_controller/app/models/uaa_token.rb:80:in
create'“,”/ home / myke / cloudfoundry / .deployments / devbox /deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/actionpack-3.0.14/lib/action_controller/metal/implicit_render.rb:4:in user_account_instance'", "/home/mike/cloudfoundry/cloud_controller/cloud_controller/app/controllers/users_controller.rb:13:in
process_action '“,”/ home / mike / cloudfoundry /.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/actionpack-3.0.14/lib/action_controller/metal/rendering.rb:11:in { {1}}阻止在process_action'“,”/ home / mike /cloudfoundry / .deployments / devbox / deploy /rubies / ruby-1.9.2-p180 / lib / ruby / gems / 1.9.1 / gems / activesupport-3.0 .14 / lib / active_support / callbacks.rb:446:在`运行 _3844132275556875466__process_action_ 2824786929479189233 _callbacks'“]
[2012-09-25 09:06:46.896386] cc_events - pid = 20400 tid = 8ee9 fid = 4757 INFO - [2012-09-25 09:06:46 -0700,:USER,“N / A”,“ POST:/ users“,”mike@company.com“,:FAILED,”Bad request“]
答案 0 :(得分:1)
我发现了问题,我正在使用的vmc似乎存在问题。一旦我降级了VMC,我现在就可以连接了。
gem uninstall vmc
gem install --version'= 0.3.18'vmc
以下是引导我回答问题的主题 https://groups.google.com/a/cloudfoundry.org/forum/?fromgroups=#!topic/vcap-dev/enY2qKnSJWI
答案 1 :(得分:0)
是否可以查看uaa配置文件的内容?确保它具有为NATS消息总线指定的正确IP地址,该行应如下所示;
mbus: nats://nats:nats@192.168.1.10:4222/
如果该IP地址不正确,则需要更改。我认为它安装的服务器有静态IP地址吗?是在安装VCAP之前分配的吗?