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

The command chef shell-init bash fails in 3.0 #1579

Closed
p8 opened this issue May 14, 2018 · 4 comments
Closed

The command chef shell-init bash fails in 3.0 #1579

p8 opened this issue May 14, 2018 · 4 comments

Comments

@p8
Copy link

p8 commented May 14, 2018

Description

The command chef shell-init bash fails in version 3.0 of chef-dk

ChefDK Version

3.0.29-1

Platform Version

Ubuntu trusty but others fail as well.

Replication Case

The following build fails with this version of chef-dk it works with version 2.5.8-1:
https://travis-ci.org/chef-cookbooks/mysql/jobs/378399410

Stacktrace

Traceback (most recent call last):
	3: from /usr/bin/chef:261:in `<main>'
	2: from /opt/chefdk/embedded/lib/ruby/2.5.0/rubygems/specification.rb:1055:in `find_by_name'
	1: from /opt/chefdk/embedded/lib/ruby/2.5.0/rubygems/dependency.rb:322:in `to_spec'
/opt/chefdk/embedded/lib/ruby/2.5.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'chef-dk' (>= 0) among 37 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/travis/.rvm/gems/ruby-2.4.1:/home/travis/.rvm/gems/ruby-2.4.1@global', execute `gem env` for more information
0.06s$ chef --version
Traceback (most recent call last):
	3: from /usr/bin/chef:261:in `<main>'
	2: from /opt/chefdk/embedded/lib/ruby/2.5.0/rubygems/specification.rb:1055:in `find_by_name'
	1: from /opt/chefdk/embedded/lib/ruby/2.5.0/rubygems/dependency.rb:322:in `to_spec'
/opt/chefdk/embedded/lib/ruby/2.5.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'chef-dk' (>= 0) among 37 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/travis/.rvm/gems/ruby-2.4.1:/home/travis/.rvm/gems/ruby-2.4.1@global', execute `gem env` for more information

NOTE: CHEFDK BUGS ONLY

This issue tracker is for the code contained within this repo -- chefdk.

@p8 p8 mentioned this issue May 14, 2018
4 tasks
@coderanger
Copy link
Contributor

As noted in the error message, you both installed ChefDK and have RVM active, so RVM is "winning" on Ruby paths. Disable RVM or otherwise point it at ChefDK's Ruby environment.

@lamont-granquist
Copy link
Contributor

@p8
Copy link
Author

p8 commented May 15, 2018

Thanks! Builds are fixed now.

@lock
Copy link

lock bot commented Jul 14, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 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

3 participants