Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Certain knife operations result in exception on chef/encrypted_data_bag_item/check_encrypted #238

Closed
jtimberman opened this issue Nov 14, 2014 · 2 comments

Comments

@jtimberman
Copy link
Contributor

I'm using ChefDK 0.3.4, with chef shell-init for my shell (zsh). When I run knife commands, I get a LoadError exception.

% chef --version
Chef Development Kit Version: 0.3.4

% knife --version
Chef: 11.16.4

% which knife
/opt/chefdk/bin/knife
% knife help
/opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `require': cannot load such file -- chef/encrypted_data_bag_item/check_encrypted (LoadError)
    from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
    from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:39:in `require'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.0.rc.0/lib/chef/knife/data_bag_secret_options.rb:21:in `<top (required)>'
    from /opt/chefdk/embedded/apps/chef/lib/chef/knife/core/subcommand_loader.rb:34:in `load'
    from /opt/chefdk/embedded/apps/chef/lib/chef/knife/core/subcommand_loader.rb:34:in `block in load_commands'
    from /opt/chefdk/embedded/apps/chef/lib/chef/knife/core/subcommand_loader.rb:34:in `each'
    from /opt/chefdk/embedded/apps/chef/lib/chef/knife/core/subcommand_loader.rb:34:in `load_commands'
    from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:120:in `load_commands'
    from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:168:in `run'
    from /opt/chefdk/embedded/apps/chef/lib/chef/application/knife.rb:139:in `run'
    from /opt/chefdk/embedded/apps/chef/bin/knife:25:in `<top (required)>'
    from /opt/chefdk/bin/knife:33:in `load'
    from /opt/chefdk/bin/knife:33:in `<main>'

Other things failing with knife: -h, search subcommand, role subcommands, etc.

@tyler-ball
Copy link
Contributor

Closing as a dup of #227 - update your chef DK to 0.3.5

@jtimberman
Copy link
Contributor Author

Woo. Thanks, as @danielsdeleo knows, I'm bad at searching for existing issues. Of course that one was closed when I opened this 🍨

All's well now. Thanks!

ksubrama pushed a commit that referenced this issue Jan 11, 2016
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants