You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
We are trying to upgrade chef-client version and push job cookbook is not getting deployed.
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
NoMethodError
undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe
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:
Running handlers:
[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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We are trying to upgrade chef-client version and push job cookbook is not getting deployed.
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
NoMethodError
undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe
Cookbook Trace: (most recent call first)
/var/chef/cache/cookbooks/push-jobs/recipes/package.rb:52:in
from_file' /var/chef/cache/cookbooks/push-jobs/recipes/install.rb:23:in
from_file'/var/chef/cache/cookbooks/push-jobs/recipes/default.rb:29:in `from_file'
Relevant File Content:
/var/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.5.64
platform=centos
platform_version=7.5.1804
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:
[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
The text was updated successfully, but these errors were encountered: