Ошибка версии Ruby при развертывании приложения на AWS Elastic Beanstalk - PullRequest
0 голосов
/ 09 мая 2018

Я пытаюсь развернуть приложение Ruby on Rails на AWS Elastic Beanstalk. Я получаю следующую ошибку -

ERROR: [Instance: <Instance ID>] Command failed on instance. Return code: 18 Output: (TRUNCATED)...e ']'
+ bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Your Ruby version is 2.4.3, but your Gemfile specified 2.3.3.
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.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) '<Instance ID>'. Aborting the operation.
ERROR: Failed to deploy application.

После того, как я получил эту ошибку, я удалил номер версии ruby ​​из Gemfile, но все равно получал эту ошибку.

После этого я развернул приложение в новой среде Beanstalk, не упоминая версию Ruby в Gemfile. Но я все еще получаю ту же ошибку.

...