运行eb create时的amazon beanstack策略问题

时间:2015-10-02 21:30:13

标签: ruby-on-rails amazon-ec2

跑完之后       eb创建projectname以将我的rails项目部署到amazon 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.

我认为这与政策有关?有更简单的方法来设置策略权限吗?

1 个答案:

答案 0 :(得分:0)

这不是政策错误,而是您的配置问题。根据您发布的错误,此部分

  

(TRUNCATED)... ndeck / config / environment.rb:5:在`&#39; Gem :: LoadError:sqlite3不是捆绑包的一部分。将其添加到Gemfile。

表示您的database.yml配置错误(因为它默认为SQLite),或者您没有安装sqlite3 gem。