popularity question answers views user  
0
TypeError - can't convert nil into String

I am on Ubuntu 11.04 running chef 0.10.8. While trying to install vmware’s cloud-foundry using chef cookbooks, one particular cookbook whose link is shown below, makes chef to throw the exception TypeError – can’t convert nil into String :

https://github.com/cloudfoundry/vcap/blob/master/dev_setup/cookbooks/ccdb/attributes/default.rb

The full stack trace of the exception is shown below. Please how do i resolve, TypeError – can’t convert nil into String.

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:infrom_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:infrom_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:ineach' /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:ineach' /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:inload_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:insetup_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:inblock 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:inrun_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<top (required)>‘ /usr/bin/chef-solo:19:in load' /usr/bin/chef-solo:19:in<main>’ [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:infrom_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:infrom_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:ineach' /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:ineach' /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:inload_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:insetup_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:inblock 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:inrun_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<top (required)>‘ /usr/bin/chef-solo:19:in load' /usr/bin/chef-solo:19:in<main>’ [Tue, 10 Jan 2012 15:55:26 +0000] FATAL: TypeError: can’t convert nil into String

more →
1 272