使用Capistrano 3部署到Unicorn服务器时出现错误

3

我在部署到服务器时遇到了以下错误。

DEBUG[50057f85] Command: cd /home/deploy/my_project/releases/20140901110633 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec bundle install --binstubs /home/deploy/my_project/shared/bin --path /home/deploy/my_project/shared/bundle --without development test --deployment --quiet )
DEBUG[50057f85]     bash: line 1:  5953 Killed                  ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec bundle install --binstubs /home/deploy/my_project/shared/bin --path /home/deploy/my_project/shared/bundle --without development test --deployment --quiet )
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host xxx.xxx.xxx.xxx: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: Nothing written

SSHKit::Command::Failed: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: Nothing written

Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host 107.170.240.115: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: Nothing written

急需帮助!!

这是需要翻译的内容。

听起来你的SSH连接出了问题。你能够通过SSH登录到这个服务器吗? - CDub
2个回答

6

3

我同意@iamthing的答案。当我试图在Digital Ocean上部署我的小站点时,我遇到了同样的问题。为了跳过这个错误,我按照以下步骤进行操作。

1.安装htop CPU监控软件以检查CPU使用情况。

sudo apt-get install htop

2.通过以下方式停止独角兽web服务器进程

 ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9

3. 运行 htop 监控 CPU 使用率

4. 再次尝试部署


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接