【问题标题】:Error while deploying to Unicorn server with capistrano 3使用 capistrano 3 部署到 Unicorn 服务器时出错
【发布时间】:2014-09-01 11:30:59
【问题描述】:

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

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 进入这个盒子吗?

标签: ruby-on-rails-4 nginx capistrano unicorn


【解决方案1】:

rails 4.1 can't deploy via capistrano 3

服务器上似乎没有足够的 RAM。我刚刚将我的 RAM 从 512MB 增加到 1GB,我已经通过了这个 137 错误

【讨论】:

    【解决方案2】:

    我同意@iamthing 的回答。当我尝试在 Digital Ocean 中部署我的小型站点时,我遇到了同样的问题。为了跳过错误,我执行了以下这些步骤。

    1.安装htopcpu监控软件查看CPU的使用情况

    sudo apt-get install htop
    

    2.通过

    停止独角兽Web服务器进程
     ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9
    

    3.运行htop监控CPU使用率

    4.再次尝试部署

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多