I am trying to bootstrap new node on chef and i am getting below error for push-jobs-
Starting Chef Infra Client, version 16.2.44
resolving cookbooks for run list: ["cpe_base", "cs_confluent_kafka_connect", "push-jobs"]
Synchronizing Cookbooks:
ntp (3.5.6)
chocolatey (1.2.1)
windows (6.0.0)
java (4.1.0)
homebrew (5.0.8)
chef_client_updater (3.2.4)
ulimit (1.0.0)
yum-epel (3.3.0)
cs_confluent_kafka_connect (1.0.0)
runit (4.0.4)
push-jobs (5.3.0)
cs_crowdstrike_agent (0.1.0)
packagecloud (1.0.0)
chef-ingredient (3.1.2)
cs_confluent_kafka (2.2.2)
cpe_base (2.2.0)
Installing Cookbook Gems:
Compiling Cookbooks...
[2020-06-18T15:13:54-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
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:
[2020-06-18T15:13:56-07:00] ERROR: Running exception handlers
Running handlers complete
[2020-06-18T15:13:56-07:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 04 seconds
[2020-06-18T15:13:56-07:00] FATAL: Stacktrace dumped to /Users/anadkarni/.chef/cache/chef-stacktrace.out
[2020-06-18T15:13:56-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-06-18T15:13:56-07:00] FATAL: NoMethodError: undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe
It looks like it is asking me to upgrade my cookbook. When i am trying to upgrade the push- jobs cookbook, i am getting below error-
OSXANADKMBP15:cookbooks anadkarni$ knife cookbook upload push-jobs
ERROR: Chef::Exceptions::CookbookMergingError: Cookbook merging is no longer supported, the cookbook named push-jobs can only appear once in the cookbook_path
OSXANADKMBP15:cookbooks anadkarni$ knife cookbook upload push-jobs --force
ERROR: Chef::Exceptions::CookbookMergingError: Cookbook merging is no longer supported, the cookbook named push-jobs can only appear once in the cookbook_path
If i delete the cookbook on chef server and upload upgraded version, do i have to setup push-job client on all nodes again?
I am trying to bootstrap new node on chef and i am getting below error for push-jobs-
Starting Chef Infra Client, version 16.2.44 resolving cookbooks for run list: ["cpe_base", "cs_confluent_kafka_connect", "push-jobs"] Synchronizing Cookbooks:
================================================================================ 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-18T15:13:56-07:00] ERROR: Running exception handlers Running handlers complete [2020-06-18T15:13:56-07:00] ERROR: Exception handlers complete Chef Infra Client failed. 0 resources updated in 04 seconds [2020-06-18T15:13:56-07:00] FATAL: Stacktrace dumped to /Users/anadkarni/.chef/cache/chef-stacktrace.out [2020-06-18T15:13:56-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2020-06-18T15:13:56-07:00] FATAL: NoMethodError: undefined method `chef_ingredient' for cookbook: push-jobs, recipe: package :Chef::Recipe
It looks like it is asking me to upgrade my cookbook. When i am trying to upgrade the push- jobs cookbook, i am getting below error-
OSXANADKMBP15:cookbooks anadkarni$ knife cookbook upload push-jobs ERROR: Chef::Exceptions::CookbookMergingError: Cookbook merging is no longer supported, the cookbook named push-jobs can only appear once in the cookbook_path OSXANADKMBP15:cookbooks anadkarni$ knife cookbook upload push-jobs --force ERROR: Chef::Exceptions::CookbookMergingError: Cookbook merging is no longer supported, the cookbook named push-jobs can only appear once in the cookbook_path
If i delete the cookbook on chef server and upload upgraded version, do i have to setup push-job client on all nodes again?
any suggestions?