我正在尝试在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 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
请问,有关如何进行故障排除的任何想法?
答案 0 :(得分:0)
我已升级到适用于python 2.7的最新AWS堆栈并对其进行了排序
答案 1 :(得分:0)
我遇到了同样的问题,导致命令超时
默认最大部署时间 - 命令超时 - 为 600(10 分钟)
您的环境 → 配置 → 部署首选项 → 命令超时
增加部署首选项,例如 1800
或升级实例类型以更快地运行