*10 upstream timed out (110: Connection timed out) while reading response header from upstream with uwsgi 读取响应报头

*10 upstream timed out (110: Connection timed out) while reading response header from upstream with uwsgi

我目前有一个服务器设置 nginxuwsgi 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 相关的任何内容看起来都不错,但与数据库相关,否。花了一段时间,当然是 504 网关超时。我去结账 nginx error log。那是我发现的错误信息。用谷歌搜索,尝试了其他 Whosebug 帖子建议的一些设置,例如将 single-interpreter = true 添加到 uwsgi.ini 文件中。运气不好。

有人可以告诉我应该在哪里查看这个问题吗?

提前致谢。

尝试转到您的 rds 实例,检查其安全组设置。发生在我身上一次,我也有一段时间发现安全组设置是问题所在。我不记得设置了安全组,但它限制了本地 IP