ruby on rails - Amazon Beanstalk ebcli.objects.exceptions.ServiceError: Failed to deploy application -
creating application version archive "app-8dfd-161111_001943". uploading: [##################################################] 100% done... info: environment update starting. info: deploying new version instance(s). error: [instance: i-97f2b48f] command failed on instance. return code: 1 output: (truncated)...b:1:in `<top (required)>' /var/app/ondeck/config/environment.rb:5:in `<top (required)>' /opt/rubies/ruby-2.3.1/bin/bundle:23:in `load' /opt/rubies/ruby-2.3.1/bin/bundle:23:in `<main>' tasks: top => environment (see full trace running task --trace). hook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. more detail, check /var/log/eb-activity.log using console or eb cli. info: command execution completed on instances. summary: [successful: 0, failed: 1]. error: unsuccessful command execution on instance id(s) 'i-97f2b48f'. aborting operation. error: failed deploy application. traceback (most recent call last):
file "/usr/local/bin/eb", line 11, in load_entry_point('awsebcli==3.8.3', 'console_scripts', 'eb')()
file "/usr/local/lib/python2.7/dist-packages/ebcli/core/ebcore.py", line 150, in main app.run()
file "/usr/local/lib/python2.7/dist-packages/cement/core/foundation.py", line 797, in run return_val = self.controller._dispatch()
file "/usr/local/lib/python2.7/dist-packages/cement/core/controller.py", line 472, in _dispatch return func() file "/usr/local/lib/python2.7/dist-packages/cement/core/controller.py", line 478, in _dispatch return func()
file "/usr/local/lib/python2.7/dist-packages/ebcli/core/abstractcontroller.py", line 57, in default self.do_command()
file "/usr/local/lib/python2.7/dist-packages/ebcli/controllers/deploy.py", line 94, in do_command staged=self.staged, timeout=self.timeout, source=self.source)
file "/usr/local/lib/python2.7/dist-packages/ebcli/operations/deployops.py", line 45, in deploy can_abort=true)
file "/usr/local/lib/python2.7/dist-packages/ebcli/operations/commonops.py", line 91, in wait_for_success_events if _is_success_string(event.message):
file "/usr/local/lib/python2.7/dist-packages/ebcli/operations/commonops.py", line 264, in _is_success_string raise serviceerror(message)
ebcli.objects.exceptions.serviceerror: failed deploy application.
this error appears when deploy application eb (eb deploy). how deploy successfully?
it looks application failed deploy onto ec2 instance. should able detailed log of went wrong downloading logs , checking them.
you can logs eb cli so:
eb logs --all
the log file have deployment logs /var/log/eb-activity.log can find here after running above command:
/project-root/.elasticbeanstalk/logs/latest/i-xxxxxxx/var/log/eb-activity.log
the error logs of why instance failed delete should in log file.
Comments
Post a Comment