capistrano-shoryuken icon indicating copy to clipboard operation
capistrano-shoryuken copied to clipboard

bundler: failed to load command: shoryuken

Open bismark64 opened this issue 8 years ago • 4 comments

First of all, thanks for this gem! I'm getting an error when running capistrano:

bundler: failed to load command: shoryuken (..../bundle/ruby/2.2.0/bin/shoryuken)
SignalException: SIGHUP
  ..../bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies/autoload.rb:26:in `<module:Autoload>'
  ..../bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies/autoload.rb:25:in `<module:ActiveSupport>'
  ..../bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies/autoload.rb:3:in `<top (required)>'
  ..../bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support.rb:25:in `require'
  ..../bundle/ruby/2.2.0/gems/activesupport-4.2.7.1/lib/active_support.rb:25:in `<top (required)>'
  ..../bundle/ruby/2.2.0/gems/railties-4.2.7.1/lib/rails.rb:5:in `require'
  ..../bundle/ruby/2.2.0/gems/railties-4.2.7.1/lib/rails.rb:5:in `<top (required)>'
  ..../bundle/ruby/2.2.0/gems/shoryuken-2.0.11/lib/shoryuken/environment_loader.rb:85:in `require'
  ..../bundle/ruby/2.2.0/gems/shoryuken-2.0.11/lib/shoryuken/environment_loader.rb:85:in `load_rails'
  ..../bundle/ruby/2.2.0/gems/shoryuken-2.0.11/lib/shoryuken/environment_loader.rb:18:in `load'
  ..../bundle/ruby/2.2.0/gems/shoryuken-2.0.11/lib/shoryuken/environment_loader.rb:6:in `load'
  ..../bundle/ruby/2.2.0/gems/shoryuken-2.0.11/lib/shoryuken/cli.rb:37:in `run'
  ..../bundle/ruby/2.2.0/gems/shoryuken-2.0.11/bin/shoryuken:6:in `<top (required)>'
  ..../bundle/ruby/2.2.0/bin/shoryuken:23:in `load'
  ..../bundle/ruby/2.2.0/bin/shoryuken:23:in `<top (required)>'

This is only happening when using --daemon, without it it works. What am I missing?

bismark64 avatar Sep 08 '16 17:09 bismark64

I have the exact same problem.

johnmcauley avatar Jan 23 '17 14:01 johnmcauley

bundler: failed to load command: shoryuken (/home/alkimiideploy/shared/bundle/ruby/2.3.0/bin/shoryuken) SignalException: SIGQUIT /home/alkimiideploy/shared/bundle/ruby/2.3.0/gems/shoryuken-2.0.11/lib/shoryuken/cli.rb:54:in select' /home/alkimiideploy/shared/bundle/ruby/2.3.0/gems/shoryuken-2.0.11/lib/shoryuken/cli.rb:54:in run' /home/alkimiideploy/shared/bundle/ruby/2.3.0/gems/shoryuken-2.0.11/bin/shoryuken:6:in <top (required)>' /home/alkimiideploy/shared/bundle/ruby/2.3.0/bin/shoryuken:23:in load' /home/alkimiideploy/shared/bundle/ruby/2.3.0/bin/shoryuken:23:in `<top (required)>' 2017-01-23T14:41:49Z 5559 TID-1gi7eo ERROR:

johnmcauley avatar Jan 23 '17 14:01 johnmcauley

It would fail for me too if I launch it via capistrano as a part of Rails deployment.

It works though if SSH in mainly launch: RAILS_ENV=production bundle exec shoryuken --daemon --pidfile 'path_to_pid_file' --logfile 'path_to_log_file' --config 'path_to_config_file' --queue tescrawlers --rails -c 5

marzhaev avatar Jan 23 '17 15:01 marzhaev

@bismark64 Pls check your options :pty in your deploy file. Set it to false if it is being true, then try again. I guess the process has been terminated before command completed. Ref: https://github.com/rbenv/rbenv/wiki/Unix-shell-initialization

manhdaovan avatar Mar 17 '17 07:03 manhdaovan