首页 > 解决方案 > Pipfile 中的 Elastic BeanStalk Django 错误

问题描述

这是我第一次在 AWS Elastic BeanStalk 上进行部署。我已经构建了一个应用程序https://github.com/ChristopherPHolder/dribblz 并决定将其部署在 Elastic BeanStalk 上,因此我尝试按照他们在https://docs.aws.amazon.com/elasticbeanstalk/latest/dg上的教程进行操作/create-deploy-python-django.html

我已经尝试部署它 2 天了,但不知道还能尝试什么。似乎这里有很多与 Elastic BeanStalk 相关的问题,但并非所有人都有答案,而且似乎没有一个问题与我相同。

我收到此错误:

ERROR: ServiceError - Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.

如果我检查日志,我可以将错误缩小到 pipfile 中 pipenv 的问题。

[ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with Pipfile file with error Command /bin/sh -c /usr/bin/python3.8 -m pipenv install --skip-lock failed with error exit status 1. Stderr:Traceback (most recent call last):
...
...
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 4 column 1 (char 35)

造成麻烦的线路似乎是

verify_ssl = true

但是,我尝试删除pipfileandpipfile.lock以及删除导致 pipfile 中错误的行。

我正在尝试使用 python3.8 创建虚拟环境并在本地运行 python3.8.11,我知道他们使用 python3.8.5 但这应该是我认为的问题。

我看过

部署错误 - django 到弹性 beantalk 但这是一个特定于依赖项的问题,它没有答案。

将 Django 应用程序部署到 AWS ElasticBeanstalk 但同样的问题。

如何解决更新环境操作已完成,但出现错误。有关 AWS Elasticbeanstalk 中的更多信息错误 根本不清楚

Python/Json:期望用双引号括起来的属性名称 但是,仍然没有回答我的问题,也没有给我任何关于错误性质的提示。

我已经阅读了更多内容并浏览了他们的文档,但我似乎找不到与此问题相关的任何内容。

我还能查看什么?有没有人遇到过这样的问题?

标签: pythondjangoamazon-web-servicesamazon-elastic-beanstalk

解决方案


推荐阅读