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. 回溯(最近一次调用):
文件"/usr/local/bin/eb",第11行,在load_entry_point中(‘awsebcli==3.8.3’,‘控制台_script’,'eb')() 文件"/usr/local/lib/python2.7/dist-packages/ebcli/core/ebcore.py",第150行,在主app.run()中 文件"/usr/local/lib/python2.7/dist-packages/cement/core/foundation.py",第797行,运行return_val = self.controller._dispatch() 文件"/usr/local/lib/python2.7/dist-packages/cement/core/controller.py",第472行,_dispatch返回func()文件"/usr/local/lib/python2.7/dist-packages/cement/core/controller.py",第478行,_dispatch返回func() 文件"/usr/local/lib/python2.7/dist-packages/ebcli/core/abstractcontroller.py",第57行,默认情况下是self.do_command() 文件"/usr/local/lib/python2.7/dist-packages/ebcli/controllers/deploy.py",第94行,do_command staged=self.staged,timeout=self.timeout,source=self.source) 文件"/usr/local/lib/python2.7/dist-packages/ebcli/operations/deployops.py",第45行,在部署can_abort=True中) 文件"/usr/local/lib/python2.7/dist-packages/ebcli/operations/commonops.py",第91行,在wait_for_success_events if _is_success_string(event.message)中: 文件"/usr/local/lib/python2.7/dist-packages/ebcli/operations/commonops.py",第264行,在_is_success_string raise (消息)中 ebcli.objects.exceptions.ServiceError:部署应用程序失败。
当我将应用程序部署到eb (eb部署)时,会出现此错误。我如何成功地部署它?
发布于 2017-02-03 00:09:29
您的应用程序似乎未能部署到EC2实例。通过下载日志并检查日志,您应该能够获得详细的日志记录。
您可以使用EB CLI获取日志,如下所示:
eb logs --all
具有部署日志的日志文件将是/var/log/eb-activity.log,在运行上述命令之后,您可以在这里找到该文件:
/PROJECT-ROOT/.elasticbeanstalk/logs/latest/i-xxxxxxx/var/log/eb-activity.log
您的实例未能删除的错误日志应该在此日志文件中。
https://stackoverflow.com/questions/40538331
复制相似问题