Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rurounijones
Last active December 18, 2015 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurounijones/5771208 to your computer and use it in GitHub Desktop.
Save rurounijones/5771208 to your computer and use it in GitHub Desktop.
yum error in Chef wrapper cookbook
tarting Chef Client, version 11.4.4
[2013-06-17T02:12:45+00:00] INFO: *** Chef 11.4.4 ***
[2013-06-17T02:12:45+00:00] DEBUG: Building node object for
connector-dev
[2013-06-17T02:12:45+00:00] DEBUG: Extracting run list from JSON attributes
provided on command line
[2013-06-17T02:12:45+00:00] INFO: Setting the run_list to
["recipe[connector::default]"] from JSON
[2013-06-17T02:12:45+00:00] DEBUG: Applying attributes from json file
[2013-06-17T02:12:45+00:00] DEBUG: Platform is centos version 6.4
[2013-06-17T02:12:45+00:00] INFO: Run List is
[recipe[connector::default]]
[2013-06-17T02:12:45+00:00] INFO: Run List expands to
[connector::default]
[2013-06-17T02:12:45+00:00] INFO: Starting Chef Run for connector-dev
[2013-06-17T02:12:45+00:00] INFO: Running start handlers
[2013-06-17T02:12:45+00:00] INFO: Start handlers complete.
[2013-06-17T02:12:45+00:00] DEBUG: No chefignore file found at
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/chefignore no files will be ignored
Compiling Cookbooks...
[2013-06-17T02:12:46+00:00] DEBUG: Cookbooks to compile: ["omnibus_updater",
:"connector"]
[2013-06-17T02:12:46+00:00] DEBUG: Loading cookbook omnibus_updater's library
file:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus_updater/libraries/
omnibus_checker.rb
[2013-06-17T02:12:46+00:00] DEBUG: Loading cookbook omnibus_updater's library
file:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus_updater/libraries/omnitrucker.
rb
[2013-06-17T02:12:46+00:00] DEBUG: Node connector-dev loading
cookbook omnibus_updater's attribute file
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus_updater/attributes/default.rb
[2013-06-17T02:12:46+00:00] DEBUG: Loading Attribute omnibus_updater::default
[2013-06-17T02:12:46+00:00] DEBUG: Node connector-dev loading
cookbook connector's attribute file
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/attributes/
default.rb
[2013-06-17T02:12:46+00:00] DEBUG: Loading Attribute
connector::default
[2013-06-17T02:12:46+00:00] DEBUG: Loading Attribute yum::epel
[2013-06-17T02:12:46+00:00] DEBUG: Loading Recipe connector::default
via include_recipe
[2013-06-17T02:12:46+00:00] DEBUG: Found recipe default in cookbook
connector
[2013-06-17T02:12:46+00:00] DEBUG: Loading Recipe torquebox-web-server::default
via include_recipe
[2013-06-17T02:12:46+00:00] DEBUG: Found recipe default in cookbook
torquebox-web-server
[2013-06-17T02:12:46+00:00] DEBUG: Loading Recipe selinux::disabled via
include_recipe
[2013-06-17T02:12:46+00:00] DEBUG: Found recipe disabled in cookbook selinux
[2013-06-17T02:12:46+00:00] DEBUG: Loading Recipe torquebox-web-server::iptables
via include_recipe
[2013-06-17T02:12:46+00:00] DEBUG: Found recipe iptables in cookbook
torquebox-web-server
[2013-06-17T02:12:46+00:00] DEBUG: Loading Recipe yum::yum via include_recipe
[2013-06-17T02:12:46+00:00] DEBUG: Found recipe yum in cookbook yum
[2013-06-17T02:12:46+00:00] DEBUG: Loading Recipe yum::epel via include_recipe
[2013-06-17T02:12:46+00:00] DEBUG: Found recipe epel in cookbook yum
[2013-06-17T02:12:46+00:00] DEBUG: filtered backtrace of compile error:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/
recipes/default.rb:17:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/
recipes/default.rb:11:in `from_file'
[2013-06-17T02:12:46+00:00] DEBUG: filtered backtrace of compile error:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/
recipes/default.rb:17:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/
recipes/default.rb:11:in `from_file'
[2013-06-17T02:12:46+00:00] DEBUG: backtrace entry for compile error:
'/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file''
[2013-06-17T02:12:46+00:00] DEBUG: Line number of compile error: '22'
================================================================================
Recipe Compile Error in
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb
================================================================================
NameError
---------
Cannot find a resource for yum_key on centos version 6.4
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/recipes/default.
rb:17:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb:11:in `from_file'
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:
15: #
16: # Unless required by applicable law or agreed to in writing, software
17: # distributed under the License is distributed on an "AS IS" BASIS,
18: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19: # See the License for the specific language governing permissions and
20: # limitations under the License.
21:
22>> yum_key node['yum']['epel']['key'] do
23: url node['yum']['epel']['key_url']
24: action :add
25: end
26:
27: yum_repository "epel" do
28: description "Extra Packages for Enterprise Linux"
29: key node['yum']['epel']['key']
30: url node['yum']['epel']['baseurl']
31: mirrorlist node['yum']['epel']['url']
[2013-06-17T02:12:46+00:00] DEBUG: Re-raising exception: NameError - Cannot find
a resource for yum_key on centos version 6.4
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
resource_platform_map.rb:126:in `get'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:761
:in `resource_for_platform'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:778
:in `resource_for_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/recipe.rb:
55:in `method_missing'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/recipes/default.
rb:17:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb:11:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:139:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:74:in `compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
86:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:224:
in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:467:
in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:
in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
190:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:239:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
73:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in
`<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
[2013-06-17T02:12:46+00:00] ERROR: Running exception handlers
[2013-06-17T02:12:46+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-06-17T02:12:46+00:00] FATAL: Stacktrace dumped to
/tmp/vagrant-chef-1/chef-stacktrace.out
[2013-06-17T02:12:46+00:00] DEBUG: NameError: Cannot find a resource for yum_key
on centos version 6.4
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
resource_platform_map.rb:126:in `get'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:761
:in `resource_for_platform'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:778
:in `resource_for_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/recipe.rb:
55:in `method_missing'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/recipes/default.
rb:17:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb:11:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:139:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:74:in `compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
86:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:224:
in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:467:
in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:
in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
190:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:239:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
73:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in
`<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
[2013-06-17T02:12:46+00:00] FATAL: NameError: Cannot find a resource for yum_key
on centos version 6.4
tarting Chef Client, version 11.4.4
[2013-06-14T00:24:12+00:00] INFO: *** Chef 11.4.4 ***
[2013-06-14T00:24:12+00:00] DEBUG: Building node object for
connector-dev
[2013-06-14T00:24:12+00:00] DEBUG: Extracting run list from JSON attributes
provided on command line
[2013-06-14T00:24:12+00:00] INFO: Setting the run_list to
["recipe[connector::default]"] from JSON
[2013-06-14T00:24:12+00:00] DEBUG: Applying attributes from json file
[2013-06-14T00:24:12+00:00] DEBUG: Platform is centos version 6.4
[2013-06-14T00:24:12+00:00] INFO: Run List is
[recipe[connector::default]]
[2013-06-14T00:24:12+00:00] INFO: Run List expands to
[connector::default]
[2013-06-14T00:24:12+00:00] INFO: Starting Chef Run for connector-dev
[2013-06-14T00:24:12+00:00] INFO: Running start handlers
[2013-06-14T00:24:12+00:00] INFO: Start handlers complete.
[2013-06-14T00:24:12+00:00] DEBUG: No chefignore file found at
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/chefignore no files will be ignored
Compiling Cookbooks...
[2013-06-14T00:24:12+00:00] DEBUG: Cookbooks to compile: ["omnibus_updater",
:"connector"]
[2013-06-14T00:24:12+00:00] DEBUG: Loading cookbook omnibus_updater's library
file:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus_updater/libraries/
omnibus_checker.rb
[2013-06-14T00:24:12+00:00] DEBUG: Loading cookbook omnibus_updater's library
file:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus_updater/libraries/omnitrucker.
rb
[2013-06-14T00:24:12+00:00] DEBUG: Node connector-dev loading
cookbook omnibus_updater's attribute file
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus_updater/attributes/default.rb
[2013-06-14T00:24:12+00:00] DEBUG: Loading Attribute omnibus_updater::default
[2013-06-14T00:24:12+00:00] DEBUG: Node connector-dev loading
cookbook connector's attribute file
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/attributes/
default.rb
[2013-06-14T00:24:12+00:00] DEBUG: Loading Attribute
connector::default
[2013-06-14T00:24:12+00:00] DEBUG: Loading Recipe connector::default
via include_recipe
[2013-06-14T00:24:12+00:00] DEBUG: Found recipe default in cookbook
connector
[2013-06-14T00:24:12+00:00] DEBUG: Loading Recipe torquebox-web-server::default
via include_recipe
[2013-06-14T00:24:12+00:00] DEBUG: Found recipe default in cookbook
torquebox-web-server
[2013-06-14T00:24:12+00:00] DEBUG: Loading Recipe omnibus_updater::default via
include_recipe
[2013-06-14T00:24:12+00:00] DEBUG: Found recipe default in cookbook
omnibus_updater
[2013-06-14T00:24:12+00:00] DEBUG: Loading Recipe omnibus_updater::downloader
via include_recipe
[2013-06-14T00:24:12+00:00] DEBUG: Found recipe downloader in cookbook
omnibus_updater
[2013-06-14T00:24:13+00:00] INFO: Omnibus Updater remote path:
http://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.4.4-2.el6.
x86_64.rpm
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe
omnibus_updater::old_package_cleaner via include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: Found recipe old_package_cleaner in cookbook
omnibus_updater
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe omnibus_updater::installer via
include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: Found recipe installer in cookbook
omnibus_updater
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe omnibus_updater via
include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: I am not loading omnibus_updater, because I
have already seen it.
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe
omnibus_updater::old_package_cleaner via include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: I am not loading
omnibus_updater::old_package_cleaner, because I have already seen it.
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe selinux::disabled via
include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: Found recipe disabled in cookbook selinux
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe torquebox-web-server::iptables
via include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: Found recipe iptables in cookbook
torquebox-web-server
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe yum::yum via include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: Found recipe yum in cookbook yum
[2013-06-14T00:24:13+00:00] DEBUG: Loading Recipe yum::epel via include_recipe
[2013-06-14T00:24:13+00:00] DEBUG: Found recipe epel in cookbook yum
[2013-06-14T00:24:13+00:00] DEBUG: filtered backtrace of compile error:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/
recipes/default.rb:13:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/
recipes/default.rb:11:in `from_file'
[2013-06-14T00:24:13+00:00] DEBUG: filtered backtrace of compile error:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/
recipes/default.rb:13:in
`from_file',/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/
recipes/default.rb:11:in `from_file'
[2013-06-14T00:24:13+00:00] DEBUG: backtrace entry for compile error:
'/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file''
[2013-06-14T00:24:13+00:00] DEBUG: Line number of compile error: '22'
================================================================================
Recipe Compile Error in
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in
`from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/recipes/default.
rb:13:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb:11:in `from_file'
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:
15: #
16: # Unless required by applicable law or agreed to in writing, software
17: # distributed under the License is distributed on an "AS IS" BASIS,
18: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19: # See the License for the specific language governing permissions and
20: # limitations under the License.
21:
22>> yum_key node['yum']['epel']['key'] do
23: url node['yum']['epel']['key_url']
24: action :add
25: end
26:
27: yum_repository "epel" do
28: description "Extra Packages for Enterprise Linux"
29: key node['yum']['epel']['key']
30: url node['yum']['epel']['baseurl']
31: mirrorlist node['yum']['epel']['url']
[2013-06-14T00:24:13+00:00] DEBUG: Re-raising exception: NoMethodError -
undefined method `[]' for nil:NilClass
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/recipes/default.
rb:13:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb:11:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:139:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:74:in `compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
86:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:224:
in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:467:
in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:
in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
190:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:239:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
73:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in
`<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
[2013-06-14T00:24:13+00:00] ERROR: Running exception handlers
[2013-06-14T00:24:13+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-06-14T00:24:13+00:00] FATAL: Stacktrace dumped to
/tmp/vagrant-chef-1/chef-stacktrace.out
[2013-06-14T00:24:13+00:00] DEBUG: NoMethodError: undefined method `[]' for
nil:NilClass
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/torquebox-web-server/recipes/default.
rb:13:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/
include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.
rb:11:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file
.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/
cookbook_version.rb:346:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:139:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:137:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/
cookbook_compiler.rb:74:in `compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:
86:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:224:
in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:467:
in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:
in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
190:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:239:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/
solo.rb:231:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:
73:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in
`<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
[2013-06-14T00:24:13+00:00] FATAL: NoMethodError: undefined method `[]' for
nil:NilClass
[2013-06-13T03:52:00+00:00] INFO: *** Chef 11.4.4 ***
[2013-06-13T03:52:01+00:00] INFO: Setting the run_list to ["recipe[connector::default]"] from JSON
[2013-06-13T03:52:01+00:00] INFO: Run List is [recipe[connector::default]]
[2013-06-13T03:52:01+00:00] INFO: Run List expands to [connector::default]
[2013-06-13T03:52:01+00:00] INFO: Starting Chef Run for connector-dev
[2013-06-13T03:52:01+00:00] INFO: Running start handlers
[2013-06-13T03:52:01+00:00] INFO: Start handlers complete.
[2013-06-13T03:52:01+00:00] INFO: Omnibus Updater remote path: http://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.4.4-2.el6.x86_64.rpm
================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:22:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/base-web-server/recipes/default.rb:13:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/connector/recipes/default.rb:11:in `from_file'
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/recipes/epel.rb:
15: #
16: # Unless required by applicable law or agreed to in writing, software
17: # distributed under the License is distributed on an "AS IS" BASIS,
18: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19: # See the License for the specific language governing permissions and
20: # limitations under the License.
21:
22>> yum_key node['yum']['epel']['key'] do
23: url node['yum']['epel']['key_url']
24: action :add
25: end
26:
27: yum_repository "epel" do
28: description "Extra Packages for Enterprise Linux"
29: key node['yum']['epel']['key']
30: url node['yum']['epel']['baseurl']
31: mirrorlist node['yum']['epel']['url']
[2013-06-13T03:52:02+00:00] ERROR: Running exception handlers
[2013-06-13T03:52:02+00:00] ERROR: Exception handlers complete
[2013-06-13T03:52:02+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-06-13T03:52:02+00:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment