Skip to content

chef-shell errors with "undefined method `delete'" #15330

@ramereth

Description

@ramereth

Description

Running chef-shell results in the following error:

$ chef-shell 
/opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-18.8.11/lib/chef/shell.rb:61:in `start': undefined method `delete' for nil:NilClass (NoMethodError)
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-bin-18.8.11/bin/chef-shell:31:in `<top (required)>'
	from /usr/bin/chef-shell:455:in `load'
	from /usr/bin/chef-shell:455:in `<main>'

I know this works with Chef Infra Client so I don't think this a problem with that repo.

Chef Workstation Version

Chef Workstation version: 25.9.1094
Chef Habitat version: 1.6.1243
Test Kitchen version: 3.9.0
Cookstyle version: 7.32.8
Chef Infra Client version: 18.8.11
Chef InSpec version: 5.22.95
Chef CLI version: 5.6.21

Platform Version

This was tested on AlmaLinux 9 but it happens on any platform.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions