我一直在尝试更改域并且遇到了问题。我希望有人可以在这里帮助我,我已经记录了我在下面经历的步骤。
我向我们的 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 password 创建新用户:错误 100:错误请求
uaa.log 中没有条目,只有 cloud_controller.log 中的这个
[2012-09-25 09:06:46.712110] cc - pid=20400 tid=8ee9 fid=4757 调试 -- ---> 异步\n请求:发布http://uaa.mike-cf.company.com/oauth /token \nheaders: {"content-type"=>"application/x-www-form-urlencoded", "accept"=>"application/json", "authorization"=>"Basic Y2xvdWRfY29udHJvbGxlcjpjbG91ZGNvbnRyb2xsZXJzZWNyZXQ="}\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"=>"2012 年 9 月 25 日星期二 16:06:46 GMT", "CONTENT_TYPE"=>"text/html", "CONTENT_LENGTH"=>"162", "CONNECTION"=>"close"}\nbody : \r\n404 未找到http://uaa.mike-cf。company.com: 404 跟踪 ["/home/mike/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/bundler/gems/uaa-dad29c9030f4/宝石/lib/uaa/http.rb:56:injson_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 client_credentials_grant'", "/home/mike/cloudfoundry/cloud_controller/cloud_controller/app/models/uaa_token.rb:80:in
access_token'", "/home/mike/cloudfoundry/cloud_controller/cloud_controller/app/models/uaa_token.rb:96:in user_account_instance'", "/home/mike/cloudfoundry/cloud_controller/cloud_controller/app/controllers/users_controller.rb:13:in
create'", "/home/mike/cloudfoundry/.部署/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 send_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/abstract_controller/base.rb:150: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/渲染.rb:11:inprocess_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/abstract_controller/callbacks.rb:18:in
阻止 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:in ` run _3844132275556875466__process_action_ 2824786929479189233 _callbacks'"] [2012-09-25 09:06:46.896386] cc_events-pid=20400 tid75=8ee91fid=4 09:06:46 -0700, :USER, "N/A", "POST:/users", "mike@company.com", :FAILED, "Bad request"]