我目前有Ruby 2.1.1 Rails 4.0.3回購。我正試圖在我的EB環境中部署這個。一切似乎都工作正常,沒有錯誤拋出,當我運行:Elastic Beanstalk/ondeck沒有更新/當前仍然顯示404?
eb start
git aws.push
但如果我SSH到我的服務器,我看到我的/var/app/ondeck
還沒有更新我的git倉庫,即使我跑git aws.push --environment myenv
。
我看到我的儀表板當前的Git版本哈希當我aws.push,但回購代碼永遠不會到達服務器...
的另一個問題是,事實證明我的/ var /應用/電流仍然是空的。有任何想法嗎?
運行git aws.push
後,即得到記錄的唯一事情是:
2014-04-02 05:45:02,567 [INFO] (5874 MainThread) [clearStaleLogPublishingRecords.py-38] [root clearStaleLogPublishingRecords main] Clearing stale log publish records publish log task with batch id ef7dd76a-ba29-11e3-bf20-12313913dae2
2014-04-02 05:45:02,568 [INFO] (5874 MainThread) [clearStaleLogPublishingRecords.py-48] [root clearStaleLogPublishingRecords main] Successfully cleared stale log publishing records
2014-04-02 05:50:01,874 [INFO] (5887 MainThread) [publishLogs.py-61] [root publishLogs main] Starting publish log task with batch id a1e453b6-ba2a-11e3-86ba-12313913dae2
2014-04-02 05:50:01,991 [INFO] (5887 MainThread) [publishLogs.py-86] [root publishLogs main] Log publication is disabled
運行eb update
沒有得到後投入到日誌。
這也有助於說明問題:
https://forums.aws.amazon.com/thread.jspa?messageID=336101 https://forums.aws.amazon.com/thread.jspa?messageID=357003
不過,我有最新的命令行EB,並試圖從混帳回購拆卸頭,然後檢查了主機和推再次,仍然沒有運氣:(
也試過「上傳和部署」從控制面板中的zip版本,沒有得到更新。
2014-04-02 08:12:22,185 [ERROR] (1895 MainThread) [directoryHooksExecutor.py-34] [root directoryHooksExecutor error] Script failed with returncode 1
2014-04-02 08:12:22,246 [INFO] (1872 MainThread) [command.py-130] [root command execute] Command returned: (code: 1, stdout: Error occurred during build: Command hooks failed
, stderr: None)
2014-04-02 08:12:22,248 [DEBUG] (1872 MainThread) [commandWrapper.py-60] [root commandWrapper main] Command result: {'status': 'FAILURE', 'results': [{'status': 'FAILURE', 'config_sets': ['Infra-EmbeddedPreBuild', 'Hook-PreAppDeploy', 'Infra-EmbeddedPostBuild'], 'returncode': 1, 'events': [], 'msg': 'Error occurred during build: Command hooks failed\n'}], 'api_version': '1.0'}
值得檢查/var/log/eb-tools.log(或通過快照日誌)尋找線索。 – Shadwell
謝謝@Shadwell,我運行了這些命令,這就是我得到的...更新了我的問題。 –