Created
May 24, 2013 19:47
-
-
Save tas50/5646038 to your computer and use it in GitHub Desktop.
apt failure on chef 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling Cookbooks... | |
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/apt/resources/preference.rb | |
================================================================================ | |
ArgumentError | |
------------- | |
wrong number of arguments (2 for 1) | |
Cookbook Trace: | |
--------------- | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:in `const_defined?' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:in `build_from_file' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:208:in `load_lwrp_resource' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:193:in `load_lwrps_from_cookbook' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:192:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:192:in `load_lwrps_from_cookbook' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:120:in `compile_lwrps' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:119:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:119:in `compile_lwrps' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:72:in `compile' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context.rb:86:in `load' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:224:in `setup_run_context' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:467:in `do_run' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:200:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:190:in `run_chef_client' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/client.rb:297:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/client.rb:290:in `loop' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/client.rb:290:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:73:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/chef-client:26 | |
/usr/bin/chef-client:23:in `load' | |
/usr/bin/chef-client:23 | |
Relevant File Content: | |
---------------------- | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb: | |
35: | |
36: # Evaluates the LWRP resource file and instantiates a new Resource class. | |
37: def self.build_from_file(cookbook_name, filename, run_context) | |
38: rname = filename_to_qualified_string(cookbook_name, filename) | |
39: | |
40: # Add log entry if we override an existing light-weight resource. | |
41: class_name = convert_to_class_name(rname) | |
42>> if Resource.const_defined?(class_name, false) | |
43: old_class = Resource.send(:remove_const, class_name) | |
44: # CHEF-3432 -- Chef::Resource keeps a list of subclasses; need to | |
45: # remove old ones from the list when replacing. | |
46: resource_classes.delete(old_class) | |
47: Chef::Log.info("#{class_name} light-weight resource already initialized -- overriding!") | |
48: end | |
49: | |
50: resource_class = Class.new(self) | |
51: | |
Chef Client failed. 0 resources updated | |
[[email protected] ~]$ sudo chef-client | |
Starting Chef Client, version 11.4.4 | |
resolving cookbooks for run list: ["common", "timezone", "hosts", "sssd_ldap", "sudo", "resolve", "chef-cron", "chef-cron::service", "ulimit::nofiles", "users", "screen", "ntp", "rsync", "rsyslog", "fail2ban", "nslcd::nanny", "motd", "collectd", "collectd::base_plugins", "collectd::graphite", "zabbix", "cornerstone_agent", "node::set_datacenter", "node::set_stage4", "drives::mount_stage4_drives", "postfix", "java", "standalone", "statemachine::mediaworkflow"] | |
Synchronizing Cookbooks: | |
- python | |
- timezone | |
- ark | |
- statemachine | |
- sssd_ldap | |
- sudo | |
- screen | |
- cornerstone_agent | |
- ntp | |
- swap | |
- yum | |
- rsync | |
- runit | |
- apache2 | |
- nslcd | |
- standalone | |
- git | |
- collectd | |
- resolve | |
- rsyslog | |
- notifier | |
- fail2ban | |
- zabbix | |
- postfix | |
- drives | |
- chef-cron | |
- build-essential | |
- apt | |
- java | |
- users | |
- ulimit | |
- hosts | |
- node | |
- motd | |
- common | |
Compiling Cookbooks... | |
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/apt/resources/preference.rb | |
================================================================================ | |
ArgumentError | |
------------- | |
wrong number of arguments (2 for 1) | |
Cookbook Trace: | |
--------------- | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:in `const_defined?' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:in `build_from_file' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:208:in `load_lwrp_resource' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:193:in `load_lwrps_from_cookbook' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:192:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:192:in `load_lwrps_from_cookbook' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:120:in `compile_lwrps' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:119:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:119:in `compile_lwrps' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:72:in `compile' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context.rb:86:in `load' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:224:in `setup_run_context' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:467:in `do_run' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:200:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:190:in `run_chef_client' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/client.rb:297:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/client.rb:290:in `loop' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/client.rb:290:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:73:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/chef-client:26 | |
/usr/bin/chef-client:23:in `load' | |
/usr/bin/chef-client:23 | |
Relevant File Content: | |
---------------------- | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb: | |
35: | |
36: # Evaluates the LWRP resource file and instantiates a new Resource class. | |
37: def self.build_from_file(cookbook_name, filename, run_context) | |
38: rname = filename_to_qualified_string(cookbook_name, filename) | |
39: | |
40: # Add log entry if we override an existing light-weight resource. | |
41: class_name = convert_to_class_name(rname) | |
42>> if Resource.const_defined?(class_name, false) | |
43: old_class = Resource.send(:remove_const, class_name) | |
44: # CHEF-3432 -- Chef::Resource keeps a list of subclasses; need to | |
45: # remove old ones from the list when replacing. | |
46: resource_classes.delete(old_class) | |
47: Chef::Log.info("#{class_name} light-weight resource already initialized -- overriding!") | |
48: end | |
49: | |
50: resource_class = Class.new(self) | |
51: | |
Chef Client failed. 0 resources updated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment