首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >弹性豆茎环境健康严重:以下服务没有运行:释放

弹性豆茎环境健康严重:以下服务没有运行:释放
EN

Stack Overflow用户
提问于 2020-11-07 14:05:44
回答 1查看 1K关注 0票数 4

我将Django应用程序部署到ElasticBean秸秆(EB) Amazon 2Python3.7平台上,一切看起来都很好。然而,环境的健康是严重的,我不知道为什么。

EB给我的唯一信息是:

总体状态:所有实例上的退化-受损服务。

(只有一个实例正在运行)

实例状态:严重的后续服务没有运行:释放。

我没有发现关于“发布”服务是什么的信息。

从完整的日志中,我看到的唯一错误是:

daemon.log:

代码语言:javascript
复制
F, [2020-11-07T04:03:03.891398 #5022] FATAL -- : /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/puma-4.3.5/lib/puma/launcher.rb:432:in `block in setup_signals': SIGTERM (SignalException)
    from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/puma-4.3.5/lib/puma/single.rb:117:in `join'
    from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/puma-4.3.5/lib/puma/single.rb:117:in `run'
    from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/puma-4.3.5/lib/puma/launcher.rb:172:in `run'
    from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/puma-4.3.5/lib/puma/cli.rb:80:in `run'
    from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/healthd-1.0.6/bin/healthd:112:in `block in <top (required)>'
    from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/healthd-1.0.6/bin/healthd:19:in `chdir'
    from /opt/elasticbeanstalk/lib/ruby/lib/ruby/gems/2.6.0/gems/healthd-1.0.6/bin/healthd:19:in `<top (required)>'
    from /opt/elasticbeanstalk/lib/ruby/bin/healthd:23:in `load'
    from /opt/elasticbeanstalk/lib/ruby/bin/healthd:23:in `<main>'

根据我所读到的here,抛出这个SignalException是为了关闭一个进程,所以我假设它是正常的。

在任何其他日志中都没有其他错误。关闭增强的健康检查将是简单的“解决方案”,正如所述的here,但我想继续使用它们。

任何帮助都是非常感谢的。

EN

回答 1

Stack Overflow用户

发布于 2020-11-08 16:32:47

.config命令:

代码语言:javascript
复制
container_commands:
  01_migrate:
    command: "source $(find /var/app/venv/ -name activate) && export $(sudo egrep -v '^#' /opt/elasticbeanstalk/deployment/env | xargs) && python manage.py migrate --noinput"
    leader_only: true
  02_static:
    command: "source $(find /var/app/venv/ -name activate) && export $(sudo egrep -v '^#' /opt/elasticbeanstalk/deployment/env | xargs) && python manage.py collectstatic --noinput"
    leader_only: true
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64728491

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档