# How to upgrade push-jobs cookbook

**URL:** <https://discourse.chef.io/t/how-to-upgrade-push-jobs-cookbook/19685>\
**Category:** Chef Infra (archive)\
**Created:** [March 19, 2021, 4:20pm UTC](https://discourse.chef.io/t/how-to-upgrade-push-jobs-cookbook/19685 "2021-03-19T16:20:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anadkarni](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anadkarni](https://discourse.chef.io/u/anadkarni)\
**Post date:** [March 19, 2021, 4:20pm UTC](https://discourse.chef.io/t/how-to-upgrade-push-jobs-cookbook/19685/1 "2021-03-19T16:20:07Z")

</div>

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

## 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](http://downloads.chef.io).")  
46: package\_version = node['push\_jobs']['package\_version']  
47: end  
48:  
49: #  
50: # This uses [packages.chef.io](http://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

---

<div class="post-metadata">

**Author:** ![bennyvasquez](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bennyvasquez/32/2559_2.png) [@bennyvasquez](https://discourse.chef.io/u/bennyvasquez)\
**Post date:** [March 19, 2021, 5:38pm UTC](https://discourse.chef.io/t/how-to-upgrade-push-jobs-cookbook/19685/2 "2021-03-19T17:38:25Z")

</div>

[push-jobs](https://blog.chef.io/new-chef-automate-functionality-and-end-of-life-impacts) were deprecated in the middle of last year, and hit end of life in December. Too, [the cookbook](https://github.com/chef-boneyard/push-jobs-cookbook) has been moved to the boneyard. Your best option for a replacement right now is [chef-run](https://docs.chef.io/workstation/chef_run/). Sorry I don't have better news, but let us know if we can help with anything else!

---

<div class="post-metadata">

**Author:** ![anadkarni](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anadkarni](https://discourse.chef.io/u/anadkarni)\
**Post date:** [March 19, 2021, 5:45pm UTC](https://discourse.chef.io/t/how-to-upgrade-push-jobs-cookbook/19685/3 "2021-03-19T17:45:26Z")

</div>

Thanks for your quick response!!

What is the alternative of push-jobs? The idea of using push jobs was to perform job without ssh-ing into machine.

should we completely stop using push-jobs?

Regards,  
Anamika

---

<div class="post-metadata">

**Author:** ![bennyvasquez](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bennyvasquez/32/2559_2.png) [@bennyvasquez](https://discourse.chef.io/u/bennyvasquez)\
**Post date:** [March 19, 2021, 8:44pm UTC](https://discourse.chef.io/t/how-to-upgrade-push-jobs-cookbook/19685/4 "2021-03-19T20:44:58Z")

</div>

Yeah, unfortunately, there's no 1:1 replacement. chef-run is the best option.
