Push Jobs Client Install Error Ubuntu Trusty

Sean Horn -

If you see the following error on Ubuntu Trusty 14.04, it's because the push jobs client cannot currently be installed on Trusty. You will need to instead install on Precise - 12.04

 

You will see the following error during an attempted run of the push-jobs cookbook's default recipe on Ubuntu 14.04

 

[2015-12-30T23:07:38+00:00] DEBUG: backtrace entry for compile error: '/var/chef/cache/cookbooks/chef-ingredient/resources/ingredient_config.rb:26:in `class_from_file''
[2015-12-30T23:07:38+00:00] DEBUG: Line number of compile error: '26'

================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/chef-ingredient/resources/ingredient_config.rb
================================================================================

NoMethodError
-------------
undefined method `property' for #<Class:0x000000024828b0>

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/chef-ingredient/resources/ingredient_config.rb:26:in `class_from_file'

Relevant File Content:
----------------------
/var/chef/cache/cookbooks/chef-ingredient/resources/ingredient_config.rb:

19: include ChefIngredientCookbook::Helpers
20:
21: resource_name :ingredient_config
22:
23: actions :render, :add
24: default_action :render
25:
26>> property :product_name, String, name_property: true
27: property :sensitive, [TrueClass, FalseClass], default: false
28: property :config, String, default: nil
29:
30: action :render do
31: target_config = ingredient_config_file
32: return if target_config.nil?
33:
34: directory ::File.dirname(target_config) do
35: recursive true

[2015-12-30T23:07:38+00:00] DEBUG: Re-raising exception: NoMethodError - undefined method `property' for #<Class:0x000000024828b0>
/var/chef/cache/cookbooks/chef-ingredient/resources/ingredient_config.rb:26:in `class_from_file'
/opt/chef/embedded/apps/chef/lib/chef/mixin/from_file.rb:42:in `class_eval'
/opt/chef/embedded/apps/chef/lib/chef/mixin/from_file.rb:42:in `class_from_file'
/opt/chef/embedded/apps/chef/lib/chef/resource/lwrp_base.rb:58:in `build_from_file'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:220:in `load_lwrp_resource'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:205:in `block in load_lwrps_from_cookbook'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:204:in `each'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:204:in `load_lwrps_from_cookbook'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:121:in `block in compile_lwrps'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:120:in `each'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:120:in `compile_lwrps'
/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:73:in `compile'
/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:97:in `load'
/opt/chef/embedded/apps/chef/lib/chef/policy_builder/expand_node_object.rb:87:in `setup_run_context'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:486:in `setup_run_context'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:266:in `run'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:270:in `block in fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:258:in `fork'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:258:in `fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:224:in `block in run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:39:in `with_server_connectivity'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:212:in `run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:402:in `block in interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `loop'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `run_application'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:60:in `run'
/opt/chef/embedded/apps/chef/bin/chef-client:26:in `<top (required)>'
/usr/bin/chef-client:55:in `load'
/usr/bin/chef-client:55:in `<main>'

Have more questions? Submit a request

Comments

Powered by Zendesk