本文为您介绍通过 OCP 接管 OBProxy 集群时报错:无法获取 obproxy 可连接集群信息的处理方法。
适用版本
OceanBase 云平台(OceanBase Cloud Platform,OCP) V3.1.2 及以后的版本。
问题现象
通过 OCP 去接管 OBProxy 集群时遇到报错:无法获取 obproxy 可连接集群信息。确认当前 obproxy 自启动后是否还未访问过 OceanBase 集群。 
问题原因
报错的这台主机上的 OBProxy 自创建以来,从未使用过该 IP 地址去连接过 OBProxy 集群,所以会遇到上述的报错。
解决办法
- 黑屏使用该主机 IP 地址+2883 端口连接一下 OBProxy 集群,执行一条简单的 SQL 命令,如“show databases;”:
$ mysql -hxxx.xxx.xxx.168 -uroot@sys oio_cluster -P2883 -pxxx oceanbase -A -c Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 19 Server version: 5.6.25 OceanBase 3.2.4.3 (r103000032023041816-83ae8071b606cb563ddbb7658f530966f7b3b7b8) (Built Apr 18 2023 16:44:11) Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [oceanbase]> show databases; +--------------------+ | Database | +--------------------+ | oceanbase | | information_schema | | mysql | | SYS | | LBACSYS | | ORAAUDITOR | | test | +--------------------+ 7 rows in set (0.01 sec) - 返回 OCP 白屏接管 OBProxy 界面,单击右下角的“重新检查”按钮,直到所有的主机均通过检查。