chef-boneyard / opscode-pushy-server

Chef Push Jobs Server
https://docs.chef.io/push_jobs.html
Apache License 2.0
16 stars 10 forks source link

push jobs error #219

Open AnamikaN opened 4 years ago

AnamikaN commented 4 years ago

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:infrom_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?