A
A
Alexander Petrov2016-12-27 13:11:40
Ruby on Rails
Alexander Petrov, 2016-12-27 13:11:40

Why is the site not deploying?

I post the site through capistrano. At the startup stage, unicorn writes something like this. Tell me what he wants from me?

00:40 application:start
      01 cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E …
      01 /home/app/.rvm/scripts/set: line 19: exec: bundle: not found
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D exit status: 127
cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D stdout: Nothing written
cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D stderr: /home/app/.rvm/scripts/set: line 19: exec: bundle: not found

SSHKit::Command::Failed: cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D exit status: 127
cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D stdout: Nothing written
cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D stderr: /home/app/.rvm/scripts/set: line 19: exec: bundle: not found

Tasks: TOP => application:start
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as [email protected]: cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D exit status: 127
cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D stdout: Nothing written
cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/config/unicorn.rb -E production -D stderr: /home/app/.rvm/scripts/set: line 19: exec: bundle: not found

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

 DEBUG [1c03022d] Command: /usr/bin/env ln -s /home/app/project/lesson-web/releases/20161227093925 /home/app/project/lesson-web/releases/current
  INFO [1c03022d] Finished in 0.153 seconds with exit status 0 (successful).
  INFO [369ef24d] Running /usr/bin/env mv /home/app/project/lesson-web/releases/current /home/app/project/lesson-web as [email protected]
 DEBUG [369ef24d] Command: /usr/bin/env mv /home/app/project/lesson-web/releases/current /home/app/project/lesson-web
  INFO [369ef24d] Finished in 0.169 seconds with exit status 0 (successful).
 DEBUG [e1b2254b] Running /usr/bin/env ls -xtr /home/app/project/lesson-web/releases as [email protected]
 DEBUG [e1b2254b] Command: /usr/bin/env ls -xtr /home/app/project/lesson-web/releases
 DEBUG [e1b2254b] 	20161227090536	20161227091231	20161227091829	20161227092446	20161227092551
20161227093925
 DEBUG [e1b2254b] Finished in 0.161 seconds with exit status 0 (successful).
  INFO Keeping 5 of 6 deployed releases on 78.155.219.102
  INFO [e1a094fd] Running /usr/bin/env rm -rf /home/app/project/lesson-web/releases/20161227090536 as [email protected]
 DEBUG [e1a094fd] Command: /usr/bin/env rm -rf /home/app/project/lesson-web/releases/20161227090536
  INFO [e1a094fd] Finished in 0.220 seconds with exit status 0 (successful).
  INFO [d0ba67b2] Running if [ -f /home/app/project/lesson-web/shared/run/unicorn.pid ] && [ -e /proc/$(cat /home/app/project/lesson-web/shared/run/unicorn.pid) ]; then kill -9 `ca…
 DEBUG [d0ba67b2] Command: if [ -f /home/app/project/lesson-web/shared/run/unicorn.pid ] && [ -e /proc/$(cat /home/app/project/lesson-web/shared/run/unicorn.pid) ]; then kill -9 `c…
  INFO [d0ba67b2] Finished in 0.168 seconds with exit status 0 (successful).
  INFO [0e1d2be6] Running cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/conf…
 DEBUG [0e1d2be6] Command: cd /home/app/project/lesson-web/releases/20161227093925 && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/app/project/lesson-web/shared/con…
 DEBUG [0e1d2be6] 	/home/app/.rvm/scripts/set: line 19: exec: bundle: not found
You have new mail in /var/mail/aleksandrpetrov

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dexdev, 2017-01-10
@Mirkom63

gem install bundler on server

@
@mgyk, 2016-12-27
_

bundle: not found
capistrano did not find the bundler, check if the bundler is installed for the current version of ruby

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question