ruby-on-rails 亚马逊Beanstalk ebcli.对象.异常.服务错误:部署应用程序失败

cgfeq70w  于 2023-03-09  发布在  Ruby
关注(0)|答案(1)|浏览(115)
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行,位于加载入口点('awsebcli == 3.8.3','控制台脚本','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_瓦尔= self.controller._dispatch()
文件“/usr/local/lib/python2.7/dist-packages/cement/core/controller.py“,第472行,在_调度返回函数()中文件“/usr/local/lib/python2.7/dist-packages/cement/core/控制器. py”,第478行,在_调度返回函数()中
文件“/usr/local/lib/python2.7/dist-packages/ebcli/core/abstractcontroller.py“,第57行,默认为self.do命令()
文件“/usr/local/lib/python2.7/dist-packages/ebcli/controllers/deploy.py“中的第94行,执行的命令staged=自身.staged,超时=自身.超时,源=自身.源)
文件“/usr/local/lib/python2.7/分发包/ebcli/操作/deployops.py“,第45行,在部署中可以中止=True)
文件“/usr/local/lib/python2.7/dist-packages/ebcli/operations/commonops.py“,第91行,在等待成功事件的条件是成功字符串(事件消息)中:
文件“/usr/local/lib/python2.7/分发包/ebcli/操作/commonops.py“,第264行,在_is_success_string中引发服务错误(消息)
ebcli.objects.exceptions.ServiceError:未能部署应用程序。
当我把我的应用程序部署到eb(eb deploy)时出现这个错误。我如何成功地部署这个错误?

zzoitvuj

zzoitvuj1#

看起来您的应用程序未能部署到EC2示例上。您应该能够通过下载日志并检查它们来获取错误的详细日志。
您可以使用EB CLI获取日志,如下所示:
eb logs --all
包含部署日志的日志文件是/var/log/eb-activity.log,运行上述命令后,您可以在此处找到该文件:
/PROJECT-ROOT/.elasticbeanstalk/logs/latest/i-xxxxxxx/var/log/eb-activity.log
此日志文件中应包含示例删除失败原因的错误日志。

相关问题