【发布时间】:2016-06-03 11:00:24
【问题描述】:
我有一个 Django 网站,运行 Django 1.8 和 Python 3.4,并通过 ElasticBeanstalk 托管在 AWS 上。
最近,我在 Django 管理区域和 504 错误方面遇到了一些问题。这个问题很难重现,它似乎是随机发生的。
当我保存模型实例时,有时网站会挂起并返回 504 错误(并且不保存)。之后 elasticbeanstalk 重新启动服务器,一切正常。
在我的日志中,我收到以下错误。
End of script output before headers: wsgi.py
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter. Returning 0.
这两个错误重复多次。谁能帮我弄清楚如何调试它?
谢谢!
【问题讨论】:
标签: python django amazon-web-services amazon-elastic-beanstalk