创建时AWS Elastic Beanstalk环境卡住了

时间:2020-02-04 10:37:42

标签: python django amazon-web-services amazon-elastic-beanstalk

每当我尝试创建应用程序时,都会创建该应用程序,但是当我尝试创建环境时,它就会卡在多个位置。 我已附上以下错误日志文件。我也尝试了多种解决方案。就像我已经删除了require.txt中的所有命令一样。我还重新创建了一个新的应用程序和新环境,但是它仍然停留在相同的位置。

Full log

我的require.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'

它也卡在这里并给出此错误:

enter image description here

1 个答案:

答案 0 :(得分:0)

通过查看日志文件,我发现这是require.txt pycurl的问题。没有正确安装。

相关问题