postgresql unsupported frontend protocol 1234.5680问题

问题描述:

1.Aurora_PG集群中只读节点出现大量错误日志
:[unknown]@[unknown]:[5167]:FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

2.通过SQL线程查询,读写节点该用户和地址查询的SQL相同的,但是主节点日志没有出现同样的错误

3.postgresql版本11.9,aurora版本3.4.3

select version();
select aurora_version();

4.通过线程发现请求是来源于linux操作系统的服务器上非业务的JDBC驱动请求

导致的可能原因:

1.postgresql JDBC driver版本太低导致
2.高版本支持GSSAPI加密
3.网络传输中出现SVM问题

##通过网上资料各种原因,解决办法参考来源:
https://blog.hagander.net/
https://jira.atlassian.com/browse/CONFSERVER-60515?error=login_required&error_description=Login+required&state=14f30dda-a08b-4f9d-9841-ed77c8e91c79
https://community.atlassian.com/t5/Confluence-questions/Postgres-Unsupported-Frontend-Protocol/qaq-p/1575093
https://stackoverflow.com/questions/65306428/unsupported-frontend-protocol-1234-5680-server-supports-2-0-to-3-0

选择解决办法:
在客户端禁用GSSAPI加密

##在客户端禁用GSSAPI加密
export PGGSSENCMODE=disable
(export只是临时性添加,如果要永久性,在配置文件profile中添加,只是当前用户,在用户home目录下的.profile文件中修改;全局则/etc/profile中添加修改)

##删除export定义过的变量,使用unset命令
unset PGGSSENCMODE

##查看所有环境变量信息
evn

##gssencmode
##相关属性参数设置:primary_conninfo
alter system set primary_conninfo =‘gssencmode=disable’

Guess you like

Origin blog.csdn.net/weixin_44375561/article/details/121136000