一昨日まで自動デプロイができていたのですがなぜか突然できなくなってしまいました。
原因を調べようとログを確認してもディレクトリがないとしか表示されません。
こういった場合どのようにすればよろしいのでしょうか??
以下がターミナル上のエラーログとなります。
長文で申し訳ございません。
00:49 unicorn:start 01 $HOME/.rbenv/bin/rbenv exec bundle exec unicorn -c /var/www/ourblog/current/config/unicorn.rb -E deployment -D 01 master failed to start, check stderr log for details <Thread:0x00007fa62b3d1b38@/Users/username/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true): /Users/username/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sshkit-1.21.2/lib/sshkit/command.rb:97:in `exit_status=': bundle exit status: 1 (SSHKit::Command::Failed) bundle stdout: Nothing written bundle stderr: master failed to start, check stderr log for details 1: from /Users/username/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute' /Users/tadajunichi/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as ec2-user@35.74.224.200: bundle exit status: 1 (SSHKit::Runner::ExecuteError) bundle stdout: Nothing written bundle stderr: master failed to start, check stderr log for details (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as ec2-user@35.74.224.200: bundle exit status: 1 bundle stdout: Nothing written bundle stderr: master failed to start, check stderr log for details Caused by: SSHKit::Command::Failed: bundle exit status: 1 bundle stdout: Nothing written bundle stderr: master failed to start, check stderr log for details Tasks: TOP => unicorn:start (See full trace by running task with --trace) The deploy has failed with an error: Exception while executing as ec2-user@35.74.224.200: bundle exit status: 1 bundle stdout: Nothing written bundle stderr: master failed to start, check stderr log for details ** DEPLOY FAILED ** Refer to log/capistrano.log for details. Here are the last 20 lines: DEBUG [28d58efc] Finished in 0.219 seconds with exit status 0 (successful). INFO [3cefdf5a] Running $HOME/.rbenv/bin/rbenv exec bundle exec rake db:migrate as ec2-user@35.74.224.200 DEBUG [3cefdf5a] Command: cd /var/www/ourblog/releases/20210831154915 && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" RAILS_ENV="production" ; $HOME/.rbenv/bin/rbenv exec bundle exec rake db:migrate ) INFO [3cefdf5a] Finished in 1.725 seconds with exit status 0 (successful). INFO [2d910640] Running /usr/bin/env ln -s /var/www/ourblog/releases/20210831154915 /var/www/ourblog/releases/current as ec2-user@35.74.224.200 DEBUG [2d910640] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" ; /usr/bin/env ln -s /var/www/ourblog/releases/20210831154915 /var/www/ourblog/releases/current ) INFO [2d910640] Finished in 0.269 seconds with exit status 0 (successful). INFO [fc602d46] Running /usr/bin/env mv /var/www/ourblog/releases/current /var/www/ourblog as ec2-user@35.74.224.200 DEBUG [fc602d46] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" ; /usr/bin/env mv /var/www/ourblog/releases/current /var/www/ourblog ) INFO [fc602d46] Finished in 0.277 seconds with exit status 0 (successful). DEBUG [3a836daa] Running if test ! -d /var/www/ourblog/current; then echo "Directory does not exist '/var/www/ourblog/current'" 1>&2; false; fi as ec2-user@35.74.224.200 DEBUG [3a836daa] Command: if test ! -d /var/www/ourblog/current; then echo "Directory does not exist '/var/www/ourblog/current'" 1>&2; false; fi DEBUG [3a836daa] Finished in 0.327 seconds with exit status 0 (successful). DEBUG [0307d644] Running [ -e /var/www/ourblog/shared/tmp/pids/unicorn.pid ] && kill -0 `cat /var/www/ourblog/shared/tmp/pids/unicorn.pid` as ec2-user@35.74.224.200 DEBUG [0307d644] Command: [ -e /var/www/ourblog/shared/tmp/pids/unicorn.pid ] && kill -0 `cat /var/www/ourblog/shared/tmp/pids/unicorn.pid` DEBUG [0307d644] bash: 0 行: kill: (4523) - No such process DEBUG [0307d644] Finished in 0.252 seconds with exit status 1 (failed). INFO [eace74ea] Running $HOME/.rbenv/bin/rbenv exec bundle exec unicorn -c /var/www/ourblog/current/config/unicorn.rb -E deployment -D as ec2-user@35.74.224.200 DEBUG [eace74ea] Command: cd /var/www/ourblog/current && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" RAILS_ENV="production" ; $HOME/.rbenv/bin/rbenv exec bundle exec unicorn -c /var/www/ourblog/current/config/unicorn.rb -E deployment -D ) DEBUG [eace74ea] master failed to start, check stderr log for details
調べてみるとunicornのバージョンを設定したりすると良いなどいろいろ策はあるそうなのですが、複数いろんな策があるみたいなのでどのようにしたら良いのか全くわからずに困っております。
どなたかご教授いただけると幸いです。
あなたの回答
tips
プレビュー