AWS 服务器超时 (OperationalError: (psycopg2.OperationalError) 无法连接到服务器:连接超时)

时间:2021-03-30 10:44:02

标签: amazon-web-services dns psycopg2 vpn

我使用 VPN 连接 AWS 数据库,当我使用我的移动数据时,我可以随机连接,但是当我连接到我的家庭 WiFi 时,我收到这个错误,我写在下面,知道吗?

"OperationalError: (psycopg2.OperationalError) could not connect to server: Connection timed out
    Is the server running on host "server.eu-west-1.rds.amazonaws.com" (IP) and accepting
    TCP/IP connections on port 5432?

(此错误的背景:http://sqlalche.me/e/13/e3q8)”

  1. 我可以 ping 服务器。
  2. 我正在使用安装在 Ubuntu 20 上的wire-guard。
  3. 我检查了 TCP 连接,它工作正常。
  4. 在较高的情况下,丢包率约为 1.7%。
  5. 我使用的是 python3.8
  6. 私钥和公钥设置正确

0 个答案:

没有答案