我有通过Capistrano部署rails应用程序的问题,下面是部署过程的日志。
DEBUG [9d92ed37] Command: cd /var/www/PROJECT-NAME/releases/20160408041814 && /usr/local/rvm/bin/rvm ruby-2.2.1 do bundle install --path /var/www/PROJECT-NAME/shared/bundle --without development test --deployment --quiet
DEBUG [9d92ed37] bash: line 1: 2027 Killed /usr/local/rvm/bin/rvm ruby-2.2.1 do bundle install --path /var/www/PROJECT-NAME/shared/bundle --without development test --deployment --quiet
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as root@X.X.X.X: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: bash: line 1: 2027 Killed /usr/local/rvm/bin/rvm ruby-2.2.1 do bundle install --path /var/www/PROJECT-NAME/shared/bundle --without development test --deployment --quiet
SSHKit::Command::Failed: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: bash: line 1: 2027 Killed /usr/local/rvm/bin/rvm ruby-2.2.1 do bundle install --path /var/www/PROJECT-NAME/shared/bundle --without development test --deployment --quiet
Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as root@X.X.X.X: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: bash: line 1: 2027 Killed /usr/local/rvm/bin/rvm ruby-2.2.1 do bundle install --path /var/www/PROJECT-NAME/shared/bundle --without development test --deployment --quiet
dipak@Dipak:/dipak/sites/PROJECT-NAMEs-Latest$
无法理解这是什么解决方案。在它工作正常但突然之间它给了我错误。
如果存储有问题,那么我有很多空间。
Filesystem Size Used Avail Use% Mounted on
udev 230M 0 230M 0% /dev
tmpfs 49M 616K 49M 2% /run
/dev/vda1 20G 8.4G 11G 46% /
tmpfs 245M 4.0K 245M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 245M 0 245M 0% /sys/fs/cgroup
tmpfs 49M 0 49M 0% /run/user/0
答案 0 :(得分:0)
您可以为Linux服务器添加2GB的交换内存 当capistrano运行时,我使用htop进行查看ram,在我的4GB内存服务器中,这已经完全用完了。所以,我添加了2GB的交换和capistrano使用该网站。 https://hk.godaddy.com/en/help/add-memory-swap-centos-17328