We are trying to upgrade chef-client version and push job cookbook is not getting deployed. It seems that i might need to upgrade the cookbook.
chef-client version - chef-16.5.64-1.el7.x86_64
[2021-03-19T08:53:41-07:00] WARN: Resource windows_user_privilege built into Chef Infra Client is being overridden by the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
/var/chef/cache/cookbooks/push-jobs/libraries/helpers.rb:29: warning: URI.unescape is obsolete
Recipe Compile Error in /var/chef/cache/cookbooks/push-jobs/recipes/default.rb
undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe
Cookbook Trace: (most recent call first)
from_file' /var/chef/cache/cookbooks/push-jobs/recipes/install.rb:23:in from_file'
Relevant File Content:
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']
50: # This uses packages.chef.io by default.
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
ruby=ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
[2021-03-19T08:53:43-07:00] ERROR: Running exception handlers
Running handlers complete
[2021-03-19T08:53:43-07:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 07 seconds
[2021-03-19T08:53:43-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2021-03-19T08:53:43-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-03-19T08:53:43-07:00] FATAL: NoMethodError: undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe