###前提・実現したいこと
Amazon Elastic BeanstalkでNodeのプロセスを管理しているのですが、
検証環境(最新のコードがデプロイされている環境A)で成功していたものをステージング環境(以前のコードがデプロイされている環境B)にデプロイしようとしたところ、ヘルスが低下または重大の状態になってしまいます。
環境のバージョン等は揃っているはずですし、検証環境では正常にデプロイ・更新できています。
何か原因だったり、どこを調べればいいのかなど、アタリの付け方を教えていただけないでしょうか。
追記
環境を再構成してからデプロイしなおすと成功することが多いです。
しかし、そもそもなぜ失敗するのでしょうか?
EBSって結構動作不安定なものなんでしょうか?
###発生している問題・エラーメッセージ
Node: 4.2.3
プロキシサーバー: None
###補足情報(言語/FW/ツール等のバージョンなど)
- npm prestartコマンドでRDSのバックアップとリストア、babelによるコンパイルを行っている。
- 下記エラーメッセージ
2016-03-06 16:08:15 UTC+0900 ERROR During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. 2016-03-06 16:08:15 UTC+0900 ERROR Failed to deploy application. 2016-03-06 16:08:15 UTC+0900 ERROR Unsuccessful command execution on instance id(s) 'i-3b55619e'. Aborting the operation. 2016-03-06 16:08:14 UTC+0900 ERROR [Instance: i-3b55619e] Command failed on instance. Return code: 1 Output: (TRUNCATED)...yfile('%s/npm-debug.log' % app_path, '/var/log/nodejs/npm-debug.log') File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: '/tmp/deployment/application/npm-debug.log'. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI. 2016-03-06 16:08:12 UTC+0900 ERROR Failed to run npm install. Snapshot logs for more details. 2016-03-06 15:52:15 UTC+0900 ERROR During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. 2016-03-06 15:52:14 UTC+0900 ERROR Failed to deploy application. 2016-03-06 15:52:14 UTC+0900 ERROR Unsuccessful command execution on instance id(s) 'i-3b55619e'. Aborting the operation.
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。