0

capistrano を使用して新しいコードを Amazon EC2 インスタンスにデプロイしようとしましたが、突然、次のエラーが発生しました。

servers: ["IP"]
[IP] executing command
*** [err :: IP] cat:
*** [err :: IP] /home/deployer/fileto/current/tmp/pids/unicorn.pid
*** [err :: IP] : No such file or directory
*** [err :: IP]
*** [err :: IP] sh: 1: kill:
*** [err :: IP] Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
*** [err :: IP] kill -l [exitstatus]
*** [err :: IP]
    command finished in 371ms
failed: "sh -c 'kill -s USR2 `cat /home/deployer/project_name/current/tmp/pids/unicorn.pid`'" on IP

2 時間前にコードを正常にデプロイしましたが、今試してみると、このエラー メッセージが表示されます。

2 時間前にすべてが正常に機能していた場合、インスタンスとデプロイ プロセス全体に何が起こったのでしょうか?

編集:実行すると

kill -s USR2cat /home/deployer/fileto/current/tmp/pids/unicorn.pid

私は得る

cat: /home/deployer/fileto/current/tmp/pids/unicorn.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
4

1 に答える 1

0

これは、デプロイを停止する必要があるエラー状態ですか? || を追加できます。kill コマンドの末尾に true を追加するか、タスクに :on_error => continue を追加するか、kill コマンドの前に [ -d /home/deployer/fileto/current/tmp/pids/unicorn.pid ] をプレフィックスとして追加します。

于 2013-10-03T02:10:42.237 に答える