我最近更新了我的环境configuration:运行Ruby 2.2(Passenger Standalone)的64位Amazon Linux 2015.03 v1.4.6。 在使用eb deploy部署我的应用程序之后,我现在在var / log / eb-commandprocessor.log中得到一个错误,指出:
[2016-01-07T01:45:48.109Z] INFO [2602] : Command processor returning results: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"(TRUNCATED)...e ']'\n+ bundle install\nDon't run Bundler as root. Bundler can ask for sudo if it is needed, and\ninstalling your bundle as root will break this application for all non-root\nusers on this machine.\n Your Ruby version is 2.2.3, but your Gemfile specified 2.2.2. \n Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI","returncode":18,"events":[]}],"truncated":"true"} [2016-01-07T01:45:48.110Z] ERROR [2602] : exit (SystemExit) at /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.1.0/gems/beanstalk-core-1.7/bin/command-processor:50:in `exit' from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.1.0/gems/beanstalk-core-1.7/bin/command-processor:50:in `<top (required)>' from /opt/elasticbeanstalk/lib/ruby/bin/command-processor:23:in `load' from /opt/elasticbeanstalk/lib/ruby/bin/command-processor:23:in `<main>'
活动日志并没有给我更多的东西:
Your Ruby version is 2.2.3, but your Gemfile specified 2.2.2
我已经更新了我的Gemfile,以确保它正在使用2.2.3并检查我的应用程序是否有任何其他对2.2.2的引用。 我检查了我的git提交并下载了应用程序的zip文件,它们都声明为2.2.3。
每次我部署应用程序,我得到相同的错误…即使我完全删除我的gemfile的内容。 如果我进入/ var / app / ondeck并检查gemfile,那么我可以看到它出于某种原因被列为2.2.2,但编辑该文件什么也不做。
任何人有任何想法如何解决这个问题? 我只是想让应用程序工作,我不关心它使用的是什么ruby版本。
你重新运行bundler install ? 您可能没有在Gemfile.lock更新它。