【问题标题】:*10 upstream timed out (110: Connection timed out) while reading response header from upstream with uwsgi*10 上游超时(110:连接超时),同时使用 uwsgi 从上游读取响应头
【发布时间】:2018-05-19 14:26:21
【问题描述】:

我目前有一个带有nginxuwsgidjango 的服务器设置 在我尝试更改 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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-09-15
      • 2018-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-01
      • 2014-03-01
      • 2017-04-01
      • 2011-08-01
      相关资源
      最近更新 更多