我正在尝试在GCP(Google云平台)上安装PCF(Pivotal Cloud Foundry)作为POC的一部分。
我一直在关注docs的指示。不幸的是,我遇到了一个路障,我的Elastic Runtime安装失败并出现以下错误。
Director task 224 Started preparing deployment > Preparing deployment. Done (00:00:02)
Error 100: Unable to render instance groups for deployment. Errors are:
- Unable to render jobs for instance group 'uaa'. Errors are:
- Unable to render templates for job 'uaa'. Errors are:
- Error filling in template 'uaa.yml.erb' (line 77: undefined method `address' for nil:NilClass)
- Unable to render jobs for instance group 'cloud_controller'. Errors are:
- Unable to render templates for job 'cloud_controller_ng'. Errors are:
- Error filling in template 'cloud_controller_api.yml.erb' (line 204: undefined method `address' for nil:NilClass)
- Unable to render jobs for instance group 'clock_global'. Errors are:
- Unable to render templates for job 'cloud_controller_clock'. Errors are:
- Error filling in template 'cloud_controller_clock.yml.erb' (line 178: undefined method `address' for nil:NilClass)
- Unable to render jobs for instance group 'cloud_controller_worker'. Errors are:
- Unable to render templates for job 'cloud_controller_worker'. Errors are:
- Error filling in template 'cloud_controller_worker.yml.erb' (line 171: undefined method `address' for nil:NilClass)
Task 224 error
For a more detailed error report, run: bosh task 224 --debug
===== 2017-08-07 18:22:09 UTC Finished "bundle exec bosh -n deploy"; Duration: 86s; Exit Status: 1
弹性运行时版本:1.11.6-build.4
我尝试在调试模式下运行此任务,据我所知,看起来syslog_forwarder
是罪魁祸首。这是堆栈跟踪:
D, [2017-08-07 18:21:22 #31053] [task:224] DEBUG -- DirectorJobRunner: Extracting job syslog_forwarder
D, [2017-08-07 18:21:22 #31053] [task:224] DEBUG -- DirectorJobRunner: #<NoMethodError: undefined method `address' for nil:NilClass>
D, [2017-08-07 18:21:22 #31053] [task:224] DEBUG -- DirectorJobRunner: Error filling in template 'uaa.yml.erb' (line 77: undefined method `address' for nil:NilClass)
uaa/uaa.yml.erb:77:in `block (2 levels) in get_binding'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-template-0.0.0/lib/bosh/template/evaluation_context.rb:135:in `if_link'
uaa/uaa.yml.erb:76:in `block in get_binding'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-template-0.0.0/lib/bosh/template/evaluation_context.rb:175:in `else'
uaa/uaa.yml.erb:75:in `get_binding'
/var/vcap/packages/ruby/lib/ruby/2.3.0/erb.rb:864:in `eval'
/var/vcap/packages/ruby/lib/ruby/2.3.0/erb.rb:864:in `result'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/source_erb.rb:20:in `block in render'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/source_erb.rb:19:in `synchronize'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/source_erb.rb:19:in `render'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/job_template_renderer.rb:37:in `block in render'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/job_template_renderer.rb:33:in `map'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/job_template_renderer.rb:33:in `render'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/job_instance_renderer.rb:21:in `block in render'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/job_instance_renderer.rb:17:in `map'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-core-0.0.0/lib/bosh/director/core/templates/job_instance_renderer.rb:17:in `render'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/job_renderer.rb:40:in `render_job_instance'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/job_renderer.rb:20:in `block in render_job_instances'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/job_renderer.rb:20:in `each'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/job_renderer.rb:20:in `render_job_instances'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/update_deployment.rb:225:in `block in render_instance_groups_templates'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/update_deployment.rb:223:in `each'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/update_deployment.rb:223:in `render_instance_groups_templates'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/update_deployment.rb:211:in `render_templates_and_snapshot_errand_variables'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/update_deployment.rb:94:in `block in perform'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/lock_helper.rb:13:in `block in with_deployment_lock'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/lock.rb:79:in `lock'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/lock_helper.rb:13:in `with_deployment_lock'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/update_deployment.rb:59:in `perform'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/job_runner.rb:106:in `perform_job'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/job_runner.rb:30:in `block in run'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh_common-0.0.0/lib/common/thread_formatter.rb:49:in `with_thread_name'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/job_runner.rb:30:in `run'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/base_job.rb:10:in `perform'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/db_job.rb:32:in `block in perform'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-0.0.0/lib/bosh/director/jobs/db_job.rb:80:in `block (3 levels) in run'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/eventmachine-1.0.4/lib/eventmachine.rb:1046:in `block in spawn_threadpool'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
cloud_controller_api.yml.erb
,cloud_controller_clock.yml.erb
和cloud_controller_worker.yml.erb
我已经浏览过互联网,但是,找不到任何有用的信息,因为我们还没有与Pivotal签订任何支持合同,他们的工程师将无法提供帮助。
如果有人能指出我正确的方向,我真的很感激。
我在发布此内容时正在下载1.11.7-build.5
,并会在尝试后提供更新。
更新:与1.11.7-build.5
完全相同的结果。
答案 0 :(得分:0)
显然,旧版本(确切地说1.10.21
)提供了更好的错误消息。
事实证明,当您在Internal Databases - MySQL and Postgres
中选择Pivotal Elastic Runtime -> Settings -> Databases
选项时会发生此错误。
我将我的选择更改为Internal Databases - MySQL
并修正了错误。