brint / wordpress-cookbook

Development repository for Opscode Cookbook wordpress
https://supermarket.chef.io/cookbooks/wordpress
Apache License 2.0
80 stars 174 forks source link

Cookbook bootstrap NoMethodError: undefined method `property' for #<Class:0x000000035301a8> #77

Open SnufflesC137 opened 7 years ago

SnufflesC137 commented 7 years ago

I went through the default.rb and the templates and they all seem to be in order but no matter what, I cannot bootstrap/install the cookbook in ubuntu (vagrant-ubuntu-trusty-64 3.13.0-133-generic) or Centos 7 (3.10.0-693.el7.x86_64) using Chef 13.5.3-1

Any help is appreciated

Thanks

192.168.128.34 [2017-10-16T06:31:58+00:00] ERROR: Running exception handlers 192.168.128.34 [2017-10-16T06:31:58+00:00] ERROR: Exception handlers complete 192.168.128.34 [2017-10-16T06:31:58+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out 192.168.128.34 Chef Client failed. 0 resources updated 192.168.128.34 [2017-10-16T06:31:58+00:00] ERROR: undefined method `property' for # 192.168.128.34 [2017-10-16T06:31:58+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

chef-stacktrace.out

Generated at 2017-10-16 06:23:50 +0000 NoMethodError: undefined method property' for #<Class:0x000000035301a8> /var/chef/cache/cookbooks/rsyslog/resources/file_input.rb:19:inclass_from_file' /usr/lib/ruby/vendor_ruby/chef/mixin/from_file.rb:42:in class_eval' /usr/lib/ruby/vendor_ruby/chef/mixin/from_file.rb:42:inclass_from_file' /usr/lib/ruby/vendor_ruby/chef/resource/lwrp_base.rb:54:in build_from_file' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:208:inload_lwrp_resource' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:193:in block in load_lwrps_from_cookbook' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:192:ineach' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:192:in load_lwrps_from_cookbook' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:120:inblock in compile_lwrps' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:119:in each' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:119:incompile_lwrps' /usr/lib/ruby/vendor_ruby/chef/run_context/cookbook_compiler.rb:72:in compile' /usr/lib/ruby/vendor_ruby/chef/run_context.rb:86:inload' /usr/lib/ruby/vendor_ruby/chef/client.rb:250:in setup_run_context' /usr/lib/ruby/vendor_ruby/chef/client.rb:498:indo_run' /usr/lib/ruby/vendor_ruby/chef/client.rb:199:in block in run' /usr/lib/ruby/vendor_ruby/chef/client.rb:193:infork' /usr/lib/ruby/vendor_ruby/chef/client.rb:193:in run' /usr/lib/ruby/vendor_ruby/chef/application.rb:208:inrun_chef_client' /usr/lib/ruby/vendor_ruby/chef/application/client.rb:312:in block in run_application' /usr/lib/ruby/vendor_ruby/chef/application/client.rb:304:inloop' /usr/lib/ruby/vendor_ruby/chef/application/client.rb:304:in run_application' /usr/lib/ruby/vendor_ruby/chef/application.rb:66:inrun' /usr/bin/chef-client:25:in `

'

HerbertBodner commented 7 years ago

@SnufflesC137 I had the same issue when using kitchen test. The problem is that this cookbook is outdated and only works with chef 12. So I configured kitchen to use chef 12 by specifying following in the .kitchen.yml:

driver_config:
  require_chef_omnibus: "12"

HTH