Creating application version archive "app-8dfd-161111_001943".
Uploading: [##################################################] 100% Done...
INFO: Environment update is starting.
INFO: Deploying new version to 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 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.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) 'i-97f2b48f'. Aborting the operation.
ERROR: Failed to deploy application.
追踪(最近一次呼叫最后一次):
文件&#34; / usr / local / bin / eb&#34;,第11行,in load_entry_point(&#39; awsebcli == 3.8.3&#39;,&#39; console_scripts&#39;,&#39; eb&#39;)()
文件&#34; /usr/local/lib/python2.7/dist-packages/ebcli/core/ebcore.py" ;,第150行,主要 app.run()
文件&#34; /usr/local/lib/python2.7/dist-packages/cement/core/foundation.py" ;,第797行,在运行中 return_val = self.controller._dispatch()
文件&#34; /usr/local/lib/python2.7/dist-packages/cement/core/controller.py",第472行,在_dispatch中 return func() 文件&#34; /usr/local/lib/python2.7/dist-packages/cement/core/controller.py" ;,第478行,在_dispatch中 return func()
File&#34; /usr/local/lib/python2.7/dist-packages/ebcli/core/abstractcontroller.py" ;,第57行,默认情况下 self.do_command()
文件&#34; /usr/local/lib/python2.7/dist-packages/ebcli/controllers/deploy.py",第94行,在do_command中 staged = self.staged,timeout = self.timeout,source = self.source)
文件&#34; /usr/local/lib/python2.7/dist-packages/ebcli/operations/deployops.py",第45行,部署 can_abort = TRUE)
文件&#34; /usr/local/lib/python2.7/dist-packages/ebcli/operations/commonops.py",第91行,在wait_for_success_events中 if _is_success_string(event.message):
文件&#34; /usr/local/lib/python2.7/dist-packages/ebcli/operations/commonops.py" ;,第264行,在_is_success_string中 引发ServiceError(消息)
ebcli.objects.exceptions.ServiceError:无法部署应用程序。
将应用程序部署到eb(eb deploy)时出现此错误。如何成功部署?
答案 0 :(得分:0)
您的应用程序看起来无法部署到EC2实例上。您应该能够通过下载日志并检查日志来详细记录出现的问题。
您可以使用EB CLI获取日志,如下所示:
eb logs --all
将具有部署日志的日志文件将是/var/log/eb-activity.log
,您可以在运行上述命令后在此处找到该文件:
/PROJECT-ROOT/.elasticbeanstalk/logs/latest/i-xxxxxxx/var/log/eb-activity.log
您的实例无法删除的错误日志应位于此日志文件中。