cloudfoundry/vcap — Issue #163: running vcap_dev_setup, returns Re-raising exception: TypeError - can't convert nil into String
Author: boy-jer
Created: 2012-01-10 16:39:56+00:00
State: open

I am on Ubuntu 11.04 running chef 0.10.8. When i try to install cloundfoundry the ccdb cookbook, makes chef to raise the exception show below

Re-raising exception: TypeError - can't convert nil into String
/home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb:6:in `join'

The abridged stacktrace is below. pls how can i resolve this.

$ bin/vcap_dev_setup
Checking web connectivity.
/home/dav29/.rbenv/shims/chef-solo

Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
Cloning into 'vcap'...
remote: Counting objects: 5651, done.
Resolving deltas: 100% (3017/3017), done.
Submodule 'java' (https://github.com/cloudfoundry/vcap-java.git) registered for path 'java'
Submodule 'services' (https://github.com/cloudfoundry/vcap-services.git) registered for path 'services'
Submodule 'tests' (https://github.com/cloudfoundry/vcap-tests.git) registered for path 'tests'
remote: Counting objects: 1496, done.
remote: Compressing objects: 100% (643/643), done.
Cloning into 'tests'...

Installing deployment devbox, cloudfoundry home dir is /home/dav29/cloudfoundry
[Tue, 10 Jan 2012 15:55:11 +0000] INFO: *** Chef 0.10.8 ***
[Tue, 10 Jan 2012 15:55:24 +0000] DEBUG: Platform is ubuntu version 11.04

[Tue, 10 Jan 2012 15:55:24 +0000] INFO: Run List expands to [deployment, essentials, ruby, nats_server, cloudfoundry, nginx, router, postgresql, ccdb, ruby::ruby18, cloud_controller, health_manager, dea, redis, redis::node, mysql, mysql::node, mongodb, mongodb::node, neo4j, neo4j::node, redis::gateway, mysql::gateway, mongodb::gateway, neo4j::gateway]

[Tue, 10 Jan 2012 15:55:24 +0000] DEBUG: No chefignore file found at /home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/chefignore no files will be ignored
[Tue, 10 Jan 2012 15:55:25 +0000] DEBUG: Loading cookbook cloudfoundry's library file: /home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/cloudfoundry/libraries/cloudfoundry.rb

[Tue, 10 Jan 2012 15:55:25 +0000] DEBUG: Node dav.localdomain loading cookbook ccdb's attribute file /home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb
[Tue, 10 Jan 2012 15:55:25 +0000] ERROR: Running exception handlers
[Tue, 10 Jan 2012 15:55:25 +0000] ERROR: Exception handlers complete
[Tue, 10 Jan 2012 15:55:25 +0000] DEBUG: Re-raising exception: TypeError - can't convert nil into String
/home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb:6:in `join'
/home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb:6:in `from_file'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/mixin/from_file.rb:30:in `from_file'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:655:in `block (2 levels) in load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:653:in `each'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:653:in `block in load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:652:in `each'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:652:in `load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:101:in `load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:60:in `load'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:195:in `setup_run_context'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:159:in `run'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:192:in `block in run_application'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:183:in `loop'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:183:in `run_application'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:in `run'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-solo:25:in `'
/usr/bin/chef-solo:19:in `load'
/usr/bin/chef-solo:19:in `

'
[Tue, 10 Jan 2012 15:55:26 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[Tue, 10 Jan 2012 15:55:26 +0000] DEBUG: TypeError: can't convert nil into String
/home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb:6:in `join'
/home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb:6:in `from_file'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/mixin/from_file.rb:30:in `from_file'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:655:in `block (2 levels) in load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:653:in `each'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:653:in `block in load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:652:in `each'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:652:in `load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:101:in `load_attributes'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/run_context.rb:60:in `load'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:195:in `setup_run_context'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:159:in `run'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:192:in `block in run_application'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:183:in `loop'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:183:in `run_application'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:in `run'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-solo:25:in `'
/usr/bin/chef-solo:19:in `load'
/usr/bin/chef-solo:19:in `

'
[Tue, 10 Jan 2012 15:55:26 +0000] FATAL: TypeError: can't convert nil into String