2016-06-29 9 views
0

Mein deploy bis zum sidekiq:start gut geht:Capistrano deploy nicht auf sidekiq Start

00:18 sidekiq:start 
     01 sidekiq --index 0 --pidfile /home/user/cap/shared/tmp/pids/sidekiq-0.pid --environment production --logfile /home/user/cap/shared/log/sidekiq.log --concurrency 4 --daemon 
     01 /usr/bin/env: sidekiq: No such file or directory 
(Backtrace restricted to imported tasks) 
cap aborted! 
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: sidekiq exit status: 127 
sidekiq stdout: Nothing written 
sidekiq stderr: /usr/bin/env: sidekiq: No such file or directory 

SSHKit::Command::Failed: sidekiq exit status: 127 
sidekiq stdout: Nothing written 
sidekiq stderr: /usr/bin/env: sidekiq: No such file or directory 

Tasks: TOP => sidekiq:start 
(See full trace by running task with --trace) 
The deploy has failed with an error: Exception while executing as [email protected]: sidekiq exit status: 127 
sidekiq stdout: Nothing written 
sidekiq stderr: /usr/bin/env: sidekiq: No such file or directory 

** DEPLOY FAILED 
** Refer to log/capistrano.log for details. Here are the last 20 lines: 

DEBUG [c0e43b64] Command: if test ! -d /home/user/cap/releases/20160629062112; then echo "Directory does not exist '/home/user/cap/releases/20160629062112'" 1>&2; false; fi 
DEBUG [c0e43b64] Finished in 0.079 seconds with exit status 0 (successful). 
DEBUG [2c3323b9] Running /usr/bin/env [ -f /home/user/cap/shared/tmp/pids/sidekiq-0.pid ] as [email protected] 
DEBUG [2c3323b9] Command: cd /home/user/cap/releases/20160629062112 && (export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.0" ; /usr/bin/env [ -f /home/user/cap/shared/tmp/pids/sidekiq-0.pid ]) 
DEBUG [2c3323b9] Finished in 0.083 seconds with exit status 1 (failed). 
    INFO [6813e38f] Running /usr/bin/env ln -s /home/user/cap/releases/20160629062112 /home/user/cap/releases/current as [email protected] 
DEBUG [6813e38f] Command: (export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.0" ; /usr/bin/env ln -s /home/user/cap/releases/20160629062112 /home/user/cap/releases/current) 
    INFO [6813e38f] Finished in 0.080 seconds with exit status 0 (successful). 
    INFO [6d1d7708] Running /usr/bin/env mv /home/user/cap/releases/current /home/user/cap as [email protected] 
DEBUG [6d1d7708] Command: (export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.0" ; /usr/bin/env mv /home/user/cap/releases/current /home/user/cap) 
    INFO [6d1d7708] Finished in 0.080 seconds with exit status 0 (successful). 
DEBUG [0dbc1637] Running if test ! -d /home/user/cap/releases/20160629062112; then echo "Directory does not exist '/home/user/cap/releases/20160629062112'" 1>&2; false; fi as [email protected]… 
DEBUG [0dbc1637] Command: if test ! -d /home/user/cap/releases/20160629062112; then echo "Directory does not exist '/home/user/cap/releases/20160629062112'" 1>&2; false; fi 
DEBUG [0dbc1637] Finished in 0.079 seconds with exit status 0 (successful). 
DEBUG [6b62769e] Running /usr/bin/env [ -f /home/user/cap/shared/tmp/pids/sidekiq-0.pid ] as [email protected] 
DEBUG [6b62769e] Command: cd /home/user/cap/releases/20160629062112 && (export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.0" ; /usr/bin/env [ -f /home/user/cap/shared/tmp/pids/sidekiq-0.pid ]) 
DEBUG [6b62769e] Finished in 0.081 seconds with exit status 1 (failed). 
    INFO [eaed2dfc] Running /usr/bin/env sidekiq --index 0 --pidfile /home/user/cap/shared/tmp/pids/sidekiq-0.pid --environment production --logfile /home/user/cap/shared/log/sidekiq.log --concurrency … 
DEBUG [eaed2dfc] Command: cd /home/user/cap/releases/20160629062112 && (export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.0" ; /usr/bin/env sidekiq --index 0 --pidfile /home/user/cap/shared/tmp/p… 
DEBUG [eaed2dfc] /usr/bin/env: sidekiq: No such file or directory 

Hat jemand Hinweise haben, was los ist, was es für in /usr/bin/env und Mail Frage sucht: Wie löse ich das?

+0

Dies könnte Ihnen helfen, überprüfen Sie die Ruby-Datei http://StackOverflow.com/questions/19716131/usr-bin-env-ruby-no-such-file-or-directory-using-capistrano-3-capistrano-rben –

+0

kann es einige Datei verwenden/usr/bin/env: sidekiq, so dass es '#!/Usr/bin/env sidekiq'? –

+0

@RajarshiDas hey, danke für den Link! Aber fand die Lösung dort nicht .. –

Antwort

3

Sieht aus wie Sie rbenv verwenden. Hast du auch das Capistrano-Support-Juwel dabei?

https://github.com/capistrano/rbenv

Werfen Sie auch einen Blick in this bug report - könnte hilfreich sein!

+1

ja. es ist leider keine Antwort. –

+1

Haben Sie diesen Fehlerbericht schon gesehen? https://github.com/seuros/capistrano-sidekiq/issues/147 – kirrmann

+0

cool! der Bugreport hat es für capistrano-sidekiq getan! aber deploy jetzt scheitert an capistrano-sidekiq/monit - weißt du vielleicht warum? –

Verwandte Themen