chef-cli
chef-cli copied to clipboard
Failure running `chef update` exit code 255
Version:
Latest
Environment:
MacOS (potentially Windows as well but need to verify)
Scenario:
We have an issue where running chef update exits the command with the output:
$ chef update
Attributes already up to date
Building policy frontend
Expanded run list: recipe[base], recipe[frontend], recipe[sigsci], recipe[audit]
Caching Cookbooks...
Installing base 1.0.19
[1] 76153 killed chef update
Steps to Reproduce:
TBA
Expected Result:
Regenerate the Policyfile.lock.json with the updated cookbooks/policies.
Actual Result:
The command is killed/exits with error code 255.
Reported by @jtimberman @tmonk42
Given a Policyfile.rb:
name "app"
default_source :supermarket
run_list "apache2"
And given the following chef-workstation version:
% chef -v
Chef Workstation version: 0.15.10
Chef Infra Client version: 15.7.32
Chef InSpec version: 4.18.51
Chef CLI version: 2.0.0
Test Kitchen version: 2.3.4
Cookstyle version: 5.20.0
Running chef install yields:
% chef install
Building policy app
Expanded run list: recipe[apache2]
Caching Cookbooks...
Installing apache2 8.0.2
% echo $?
255