【发布时间】:2018-05-19 14:26:21
【问题描述】:
我目前有一个带有nginx 和uwsgi 和django 的服务器设置
在我尝试更改 rds instance
我的完整错误信息是
*10 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: xxx.xxx.xxx.xxx, request: "GET /load/ HTTP/1.1", upstream: "uwsgi://unix:/tmp/load.sock", host: "example.com", referrer: "https://example.com/"
我使用的是 aws rds (postgres),它工作得非常好。我所做的唯一更改是从常规的postgres 服务更改为aurora postgres 我没有升级数据库,从常规到极光。我创建了一个新的aurora postgres。我已经完成了所有设置...更改了主机以及我的django db setting 中的所有内容。 runserver 本地工作正常。它确实通过读写连接到数据库。完美运行。但是当我部署到服务器时,打开我的域。任何与 ui 相关的东西看起来都很好,但与 db 相关,不。过了一会儿,当然是 504 网关超时。我去结账nginx error log。这是我发现的错误信息。谷歌搜索,尝试了其他stackoverflow 建议的一些设置,例如将single-interpreter = true 添加到uwsgi.ini 文件中。没有运气。
谁能给我一个想法,我应该在哪里寻找这个问题?
提前致谢。
【问题讨论】:
标签: django database postgresql nginx uwsgi