在使用 pgbouncer 和 go 的 pgx 链接 postgres 会出现 ssl 的异常报错,但是 ssl 并没有开启。 #128
Unanswered
darkframemaster
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
pg的ssl没有开启,pgbouncer和pgx的ssl设置都是默认值,默认应该都是 prefer。但是每隔一段时间,postgres server测就会观察到链接数骤降到0,持续一段时间之后就恢复了,版本及报错信息如下:
postgres 版本信息:
postgres (PostgreSQL) 15.6 (Ubuntu 15.6-1.pgdg20.04+1)
postgres 报错:
FATAL,08P01,"received unencrypted data after SSL request","This could be either a client-software bug or evidence of an attempted man-in-the-middle attack."
pgbouncer 版本信息:
PgBouncer 报错:
pooler error: server login has been failing, try again later (server_login_retry)
client 信息: github.com/jackc/pgx/v5/pgxpool
client 报错:
FATAL: server login has been failing, try again later server_login_retry) (SQLSTATE 08P01)
欢迎大家的建议和经验交流,提前感谢。
Beta Was this translation helpful? Give feedback.
All reactions