Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stove does not follow symlinks for login credential files #120

Open
majormoses opened this issue Sep 12, 2017 · 1 comment
Open

Stove does not follow symlinks for login credential files #120

majormoses opened this issue Sep 12, 2017 · 1 comment

Comments

@majormoses
Copy link

Here is the output detailing the error:

$ bundle exec stove stove --no-git
E: Stove experienced an error!
E: ChefAPI::Error::HTTPUnauthorizedRequest
E: The Chef Server requires authorization. Please ensure you have specified the correct client name and private key. If this error continues, please verify the given client has the proper permissions on the Chef Server.

    {"error_code"=>"AUTHENTICATION_FAILED", "error_messages"=>["Authentication failed due to an invalid public/private key pair. If you have changed your keys recently try logging out and logging back in to Supermarket."]}

E: /home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/chef-api-0.7.1/lib/chef-api/connection.rb:428:in `error'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/chef-api-0.7.1/lib/chef-api/connection.rb:297:in `block in request'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/2.2.0/net/http.rb:853:in `start'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/chef-api-0.7.1/lib/chef-api/connection.rb:283:in `request'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/chef-api-0.7.1/lib/chef-api/connection.rb:125:in `post'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/community.rb:54:in `upload'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/mixins/instanceable.rb:20:in `method_missing'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/community.rb:15:in `block in <class:Community>'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/base.rb:12:in `instance_eval'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/base.rb:12:in `block in run'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/base.rb:44:in `call'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/base.rb:44:in `block in run_actions'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/base.rb:43:in `each'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/base.rb:43:in `run_actions'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/plugins/base.rb:33:in `run'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/runner.rb:30:in `run_plugin'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/runner.rb:18:in `run'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/lib/stove/cli.rb:75:in `execute!'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/stove-5.2.0/bin/stove:4:in `<top (required)>'
/home/babrams/.rbenv/versions/2.2.5/bin/stove:23:in `load'
/home/babrams/.rbenv/versions/2.2.5/bin/stove:23:in `<top (required)>'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `load'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in `run'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in `exec'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in `dispatch'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in `start'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/exe/bundle:35:in `block in <top (required)>'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
/home/babrams/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/exe/bundle:27:in `<top (required)>'
/home/babrams/.rbenv/versions/2.2.5/bin/bundle:23:in `load'
/home/babrams/.rbenv/versions/2.2.5/bin/bundle:23:in `<main>'
The latest bundler is 1.16.0.pre.2, but you are currently running 1.15.1.
To update, run `gem install bundler --pre`

After playing around it was fixed after moving it to a location not in a symlinked dir (chefvm).
create new dir that is not a symlink:

$ mkdir ~/chef

copy over the key to the new location:

$ cp ~/.chef/majormoses.pem ~/chef/

try logging in again:

$ bundle exec stove login --username majormoses --key ~/chef/majormoses.pem Successfully saved config to `/home/babrams/.stove'!

push now:

$ bundle exec stove stove --no-gitThe latest bundler is 1.16.0.pre.2, but you are currently running 1.15.1.
To update, run `gem install bundler --pre`
@tyler-ball
Copy link

Sounds like we're forgetting to expand a path somewhere. Thank you for the bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants