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

push job cookbook is not getting deployed #225

Open
AnamikaN opened this issue Mar 19, 2021 · 0 comments
Open

push job cookbook is not getting deployed #225

AnamikaN opened this issue Mar 19, 2021 · 0 comments

Comments

@AnamikaN
Copy link

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

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