我正在尝试在Elasticbeanstalk上部署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 [email protected] 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 [email protected] 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
请提供有关如何进行故障排除的想法?
我已升级到最新的适用于python 2.7的AWS堆栈并对其进行了排序