[英]AWS Elastic Beanstalk environment got stuck while creating
每当我尝试创建一个应用程序时,它都会被创建,但是当我尝试创建环境时,它会卡在多个地方。 我附上了下面的错误日志文件。 我也尝试了多种解决方案。 就像我已经从requirement.txt 中删除了所有命令。 我还重新创建了一个新应用程序和新环境,但它仍然停留在相同的地方。
我的requirements.txt 看起来像这样:
Django==2.1.5
django-filter==2.0.0
djangorestframework==3.9.0
Markdown==3.0.1
pytz==2018.7
django-timezone-field==3.0
django-rest-auth==0.9.3
django-allauth==0.39.1
django-cors-headers==2.4.0
psycopg2-binary==2.7.7
psycopg2==2.7.7
django-bootstrap4==0.0.8
django-fontawesome-5==1.0.16
Pillow==6.0.0
boto3==1.10.28
django-storages==1.7.1
django-smtp-ssl
django-ses
stripe==2.36.2
django-background-tasks==1.2.0
zappa==0.48.2
django-s3-storage==0.12.5
celery==4.4.0
pycurl==7.43.0.4
我的 django.config 文件是这样的:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: SB_Main/wsgi.py
NumProcesses: 3
NumThreads: 30
"aws:elasticbeanstalk:container:python:staticfiles":
/static/: "static/"
container_commands:
01_makeMigrations:
command: "source /opt/python/run/venv/bin/activate && python manage.py makemigrations SB_Auth"
leader_only: true
02_makeMigrations:
command: "source /opt/python/run/venv/bin/activate && python manage.py makemigrations SB_API"
leader_only: true
03_migrate:
command: "source /opt/python/run/venv/bin/activate && python manage.py migrate"
leader_only: true
04_collectstatic:
command: "source /opt/python/run/venv/bin/activate && python manage.py collectstatic --noinput"
05_makeMigrations:
command: "source /opt/python/run/venv/bin/activate && python manage.py loaddata dummyData.json"
leader_only: true
06_wsgipass:
command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'
它也卡在这里并给出这个错误:
通过查看日志文件,我发现这是requirements.txt pycurl 的问题。 它没有正确安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.