Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Push-jobs is not getting installed #220

Open
AnamikaN opened this issue Jun 22, 2020 · 0 comments
Open

Push-jobs is not getting installed #220

AnamikaN opened this issue Jun 22, 2020 · 0 comments

Comments

@AnamikaN
Copy link

I am trying to run chef-client on one of the linux nodes and getting below error-

Installing Cookbook Gems:
Compiling Cookbooks...
[2020-06-21T16:42:35-07:00] WARN: Resource windows_user_privilege from the client is overriding the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
/Users/anadkarni/.chef/cache/cookbooks/push-jobs/libraries/helpers.rb:29: warning: URI.unescape is obsolete

================================================================================
Recipe Compile Error in /Users/anadkarni/.chef/cache/cookbooks/push-jobs/recipes/default.rb

NoMethodError

undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe

Cookbook Trace: (most recent call first)

/Users/anadkarni/.chef/cache/cookbooks/push-jobs/recipes/package.rb:52:in from_file' /Users/anadkarni/.chef/cache/cookbooks/push-jobs/recipes/install.rb:23:in from_file'
/Users/anadkarni/.chef/cache/cookbooks/push-jobs/recipes/default.rb:29:in `from_file'

Relevant File Content:

/Users/anadkarni/.chef/cache/cookbooks/push-jobs/recipes/package.rb:

45: Chef::Log.info("Neither ['push_jobs']['local_package_path'] nor ['push_jobs']['package_url'] and ['push_jobs']['package_checksum'] set. Chef Push Jobs client will be installed from downloads.chef.io.")
46: package_version = node['push_jobs']['package_version']
47: end
48:
49: #
50: # This uses packages.chef.io by default.
51: #
52>> chef_ingredient 'push-jobs-client' do
53: version package_version if package_version
54: package_source local_package_path if local_package_path
55: platform_version_compatibility_mode true
56: action :upgrade
57: end
58:

System Info:

chef_version=16.2.44
platform=centos
platform_version=7.7.1908
ruby=ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
program_name=/bin/chef-client
executable=/opt/chef/bin/chef-client

Running handlers:
[2020-06-21T16:42:36-07:00] ERROR: Running exception handlers
Running handlers complete
[2020-06-21T16:42:36-07:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 06 seconds
[2020-06-21T16:42:36-07:00] FATAL: Stacktrace dumped to /Users/anadkarni/.chef/cache/chef-stacktrace.out
[2020-06-21T16:42:36-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-06-21T16:42:36-07:00] FATAL: NoMethodError: undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant