oblogclient 访问 oblogproxy 报认证失败


oblogproxy 版本
[root@oceamBase oblogproxy]# ./bin/logproxy -v
version: 4e2bd4f05b7a6b1c2fc3cd7172e548bb86f6d4b2

oblogclient 拉取github的最新代码

oblogproxy相关日志报错信息
I20230530 15:24:27.333878 107037 ob_mysql_packet.cpp:256] Observer version: 5.7.25
I20230530 15:24:27.333885 107037 ob_mysql_packet.cpp:264] Connection id: -1073478931
I20230530 15:24:27.333894 107037 ob_mysql_packet.cpp:355] auth plugin name: mysql_native_password
I20230530 15:24:27.333905 107037 ob_mysql_packet.cpp:593] Handshake response packet len: 80
I20230530 15:24:27.335686 107037 ob_mysql_packet.cpp:220] Error packet: [5631][#42000] Access denied for user ‘root’@‘xxx.xxx.xxx.xxx’ (using password: YES)
E20230530 15:24:27.335757 107037 mysql_protocol.cpp:126] Auth user failed of server: 192.168.85.160:2881, user: root
I20230530 15:24:27.335968 107037 communicator.cpp:231] — Removed channel from Communicator which steal: 0, peer: file_desc:8, flag:2
I20230530 15:24:27.335984 107037 channel.cpp:49] delete Channel
I20230530 15:39:47.715502 107037 communicator.cpp:81] On connect from '192.168.85.1:53577, fd: 8
I20230530 15:39:47.715648 107037 channel.cpp:463] create a plain channel of peer: 8

oblogclient 代码报错信息
15:24:24.273 [log-proxy-client-worker-1-thread-1] INFO com.oceanbase.clogproxy.client.connection.ClientStream - Try to stop this client
15:24:26.063 [Thread-0] INFO com.oceanbase.clogproxy.client.connection.ClientStream - Client process thread exit
15:24:26.064 [log-proxy-client-worker-1-thread-1] INFO com.oceanbase.clogproxy.client.connection.ClientStream - Client stopped successfully
15:24:26.064 [log-proxy-client-worker-1-thread-1] INFO com.oceanbase.clogproxy.client.connection.ClientHandler - Channel closed with ClientId: test, LogProxy: 192.168.85.160:2983
15:24:26.064 [Thread-3] ERROR com.oceanbase.clogproxy.client.LogProxyClientTest - LogProxy refused handshake request: code: 502
message: “Failed to auth”

已解决

啥原因?

看起来是 logproxy 版本太老了

最后怎么解决的