簡體   English   中英

使用capistrano 3部署到Unicorn服務器時出錯

[英]Error while deploying to Unicorn server with capistrano 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

需要快速幫助!

rails 4.1無法通過capistrano 3進行部署

看起來服務器上沒有足夠的RAM。 我剛剛將RAM從512MB增加到1GB,我已經通過了這個137錯誤

我同意@iamthing的回答。 當我嘗試在Digital Ocean中部署我的小網站時,我遇到了同樣的問題。 我已完成以下步驟以跳過錯誤。

1.安裝htop cpu監控軟件以檢查CPU使用情況

sudo apt-get install htop

2.停止獨角獸網絡服務器進程

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

3.運行htop以監控CPU使用情況

4.嘗試再次部署它

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM