Я пытаюсь развернуть приложение django на эластичном стебле.Он работал нормально, а затем внезапно остановился, и я не могу понять, почему.
Когда я делаю eb deploy
, я получаю
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
INFO: New application version was deployed to running EC2 instances.
INFO: Environment update completed successfully.
Alert: An update to the EB CLI is available. Run "pip install --upgrade awsebcli" to get the latest version.
INFO: Attempting to open port 22.
INFO: SSH port 22 open.
INFO: Running ssh -i /home/ubuntu/.ssh/web-cdi_011017.pem ec2-user@54.188.214.227 if ! grep -q 'WSGIApplicationGroup %{GLOBAL}' /etc/httpd/conf.d/wsgi.conf ; then echo -e 'WSGIApplicationGroup %{GLOBAL}' | sudo tee -a /etc/httpd/conf.d/wsgi.conf; fi;
INFO: Attempting to open port 22.
INFO: SSH port 22 open.
INFO: Running ssh -i /home/ubuntu/.ssh/web-cdi_011017.pem ec2-user@54.188.214.227 sudo /etc/init.d/httpd reload
Reloading httpd: [ OK ]
Когда я тогда запускаю eb health
, я получаю
Неправильная версия приложения найдена во всех экземплярах.Ожидаемая версия "app-c56a-190604_135423" (развертывание 300).
Если я eb ssh
и смотрю в /opt/python/current
, там ничего нет, поэтому ничего не копируется по
Я думаю, что-то может быть не так с .elasticbeanstalk/config.yml
.Каким-то образом каталог был удален и снова настроен.Это config.yml
branch-defaults:
master:
environment: app-prod
scoring-dev:
environment: app-dev
environment-defaults:
app-prod:
branch: null
repository: null
global:
application_name: my-app
default_ec2_keyname: am-app_011017
default_platform: arn:aws:elasticbeanstalk:us-west-2::platform/Python 2.7 running
on 64bit Amazon Linux/2.3.1
default_region: us-west-2
include_git_submodules: true
instance_profile: null
platform_name: null
platform_version: null
profile: null
sc: git
workspace_type: Application
Пожалуйста, есть идеи о том, как устранить неполадки?