AWS Elasticbeanstalk部署烧瓶应用程序中的错误

时间:2020-07-01 04:08:13

标签: python amazon-web-services flask amazon-elastic-beanstalk

我正在使用具有Requirements.txt文件的EB CLI部署Flask应用。

$('.js-header-anchor').on('click', function(e){
   target = $(this).attr('href');
   if ($('.page-template-template-donation-projet').length ) {}
   else if( $('.home').length ){
       pos = $(target).offset().top;
       $('html, body').animate({scrollTop: pos}, 500);
   }else{
   window.location.href = window.location.origin + ‘/’ + window.location.href.split(‘/’)[3] + ‘/’ + target;
            }
            e.preventDefault();
        });

应用程序已正确上传到服务器上,但运行状况为“严重”。
我遇到以下错误。

  • 在仪表板中
eb init
eb open flask-env
  • 在日志中
Command failed on all instances.
ELB health is failing or not available for all instances

Application deployment failed at 2020-07-01T03:49:21Z with exit status 1 and error: Engine execution has encountered an error.
Instance ELB health state has been "OutOfService" for 14 minutes: Instance has failed at least the UnhealthyThreshold number of health checks consecutively.

我还部署了多个应用程序,但它们也给出了相同的错误

1 个答案:

答案 0 :(得分:0)

删除您的require.txt文件并重新生成,但这一次将您的require.txt文件另存为UTF-8文件。

以下是一些有用的链接:

requirement.txt file format

Deploy flask application to elastic beanstalk