2015-10-02 127 views
0

運行後 eb創建項目名以將我的rails項目部署到amazon beanstack 我不斷收到有關這些錯誤的錯誤。我從來沒有使用過這種服務,並認爲我會試一試..這是錯誤。運行eb時創建的亞馬遜beanstack策略問題

2015-10-02 17:23:50 UTC-0400 WARN Environment health has transitioned from Pending to Degraded. Command failed on all instances. 

2015-10-02 17:23:38 UTC-0400 ERROR Create environment operation is complete, but with errors. For more information, see troubleshooting documentation. 

2015-10-02 17:22:35 UTC-0400 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 

2015-10-02 17:22:35 UTC-0400 ERROR [Instance: i-c2e7f417] Command failed on instance. Return code: 1 Output: (TRUNCATED)...ndeck/config/environment.rb:5:in `<top (required)>' Gem::LoadError: sqlite3 is not part of the bundle. Add it to Gemfile. /var/app/ondeck/config/environment.rb:5:in `<top (required)>' Tasks: TOP => environment (See full trace by running task with --trace). Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI. 

我在想這與政策有關嗎?有更簡單的方法來設置策略權限?

回答

0

這不是一個策略錯誤,這是您的配置問題。從您發佈的錯誤,這部分

(TRUNCATED)...ndeck/config/environment.rb:5:in `' Gem::LoadError: sqlite3 is not part of the bundle. Add it to Gemfile.

表明您database.yml配置錯誤(因爲它默認爲SQLite的),或者你沒有安裝sqlite3寶石。