表題の件でエラーが解消出来ず困っています。
全く糸口が見つからず、、ヒントをいただけませんでしょうか。足りない情報などありましたらご指示ください。
怪しいと思っている所
この部分で kill が上手く動いていないように見えます。何故かこれ以降にオプションが表示されているからです。
00:08 unicorn:start 01 /usr/local/rbenv/bin/rbenv exec bundle exec unicorn -c /var/www/a… ✔ 01 app@**.**.**.** 0.103s unicorn restarting... 02 kill -s USR2 `cat /var/www/app/current/tmp/pids/unicorn.pid`
調査したこと・実施したこと
https://teratail.com/questions/147833
上記の情報の通りファイルの存在を確認して実施しましたが、同様のエラーが発生しました。
また、権限が無い可能性を考えchmod 777 に切り替えて実施するも同様のエラーでした。(上手くいかないので664に戻しています。)
https://teratail.com/questions/169573
こちらの情報ではaws側のpidファイルを削除すると上手くいくとありましたので実施した所、
no such file エラーになりました。(上手くいかないので今は復元しています。)
発生している問題・エラーメッセージ
[中略] 00:07 deploy:symlink:release 01 ln -s /var/www/app/releases/20190227020313 /var/www/app/r… ✔ 01 app@**.**.**.** 0.104s 02 mv /var/www/app/releases/current /var/www/app ✔ 02 app@**.**.**.** 0.105s 00:08 unicorn:start 01 /usr/local/rbenv/bin/rbenv exec bundle exec unicorn -c /var/www/a… ✔ 01 app@**.**.**.** 0.103s unicorn restarting... 02 kill -s USR2 `cat /var/www/app/current/tmp/pids/unicorn.pid` 02 02 Usage: 02 kill [options] <pid|name> [...] 02 02 オプション: 02 -a, --all do not restrict the name-to-pid conversio… 02 with the same uid as the present process 02 -s, --signal <sig> send specified signal 02 -q, --queue <sig> use sigqueue(2) rather than kill(2) 02 -p, --pid print pids without signaling them 02 -l, --list [=<signal>] list signal names, or convert one to a na… 02 -L, --table list signal names and numbers 02 02 -h, --help display this help and exit 02 -V, --version output version information and exit 02 02 For more details see kill(1). #<Thread:0x00007f87da05fd98@/Users/myoujinamae/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/sshkit-1.18.0/lib/sshkit/runners/parallel.rb:10 run>terminated with exception (report_on_exception is true): Traceback (most recent call last): 1: from /Users/myoujinamae/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/sshkit-1.18.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute' /Users/myoujinamae/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/sshkit-1.18.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as app@**.**.**.**: kill exit status: 1 (SSHKit::Runner::ExecuteError) kill stdout: Nothing written kill stderr: Usage: kill [options] <pid|name> [...] オプション: -a, --all do not restrict the name-to-pid conversion to processes with the same uid as the present process -s, --signal <sig> send specified signal -q, --queue <sig> use sigqueue(2) rather than kill(2) -p, --pid print pids without signaling them -l, --list [=<signal>] list signal names, or convert one to a name -L, --table list signal names and numbers -h, --help display this help and exit -V, --version output version information and exit For more details see kill(1). (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as app@**.**.**.**: kill exit status: 1 kill stdout: Nothing written kill stderr: Usage: kill [options] <pid|name> [...] [中略] INFO unicorn restarting... INFO [0ccb1ac9] Running /usr/bin/env kill -s USR2 `cat /var/www/app/current/tmp/pids/unicorn.pid` as app@**.**.**.**
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。