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

Bundler executable not available #77

Open
benwalsh opened this issue Nov 21, 2017 · 9 comments
Open

Bundler executable not available #77

benwalsh opened this issue Nov 21, 2017 · 9 comments

Comments

@benwalsh
Copy link

I'm having a problem with running bundler. The deploy completes deploy:symlink:linked_dirs and then fails on bundler:install:

 01 RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.4.2 $HOME/.rbenv/bin/rbenv exec bundle install --path /home/ubuntu/rails/<APPLICATION>/current/bin/bundle --without development test --deployment --quiet --binstubs
 01 rbenv: bundle: command not found

I've tried installing it manually with rbenv exec gem install bundler and rbenv rehash, but the executable bundle does not appear.

capistrano 3.10.0
capistrano-rbenv 2.1.3
capistrano-bundler 1.3.0
capistrano-rails 1.3.0
rails 4.2.10
rbenv 1.1.1

@will-in-wi
Copy link
Contributor

If you run RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.4.2 $HOME/.rbenv/bin/rbenv exec gem list | grep bundler, what's the output?

@benwalsh
Copy link
Author

The gem is there, but not the executable.

@will-in-wi
Copy link
Contributor

Shot in the dark, but does it work if you run RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.4.2 $HOME/.rbenv/bin/rbenv rehash ?

@maynardewm
Copy link

I'ma also having this issue. Bundler is there.

@will-in-wi
Copy link
Contributor

@maynardewm: Same exact output? Could you paste the error message?

@maynardewm
Copy link

maynardewm commented Apr 3, 2018

It's slightly different:

INFO [02658949] Running bundle exec puma -C /home/ubuntu/app_name/shared/puma.rb --daemon as ubuntu@54.68.177.131

 DEBUG [02658949] Command: cd /home/ubuntu/app_name/current && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.0" RACK_ENV="staging" ; bundle exec puma -C /home/ubuntu/app_name/shared/puma.rb --daemon )

 DEBUG [02658949] 	bash: bundle: command not found

Everything works up until this command. Which is weird because that means it's running bundle install....?

@will-in-wi
Copy link
Contributor

I think you have a different issue, and should probably open your own ticket.

Offhand, I'd guess that you are running something like execute 'puma -C .....' instead of execute :puma, '-C ......'. If that's the case, try the latter syntax. If that is not the case, open a new ticket, or better yet, open a Stack Overflow question, since this is more of a support issue than a bug.

@ngetahun
Copy link

I had the same problem. What worked for me was adding puma and pumactl to rbenv_map_bins. Hope this helps.

@LuisHCK
Copy link

LuisHCK commented May 14, 2020

I had the same problem. What worked for me was adding puma and pumactl to rbenv_map_bins. Hope this helps.

@ngetahun it worked perfectly for my case too. Thank you very much <3

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

No branches or pull requests

5 participants