【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】
【问题描述】
报错信息1:Connect to observer x [ERROR] Failed to connect oceanbase-ce
**报错信息2:**obd日志
2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] Traceback (most recent call last):
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] File “core.py”, line 1073, in start_cluster
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] File “_plugin.py”, line 235, in call
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] File “_plugin.py”, line 209, in _new_func
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] File “/home/admin/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 64, in connect
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] db, cursor = _connect(server.ip, server_config[‘mysql_port’], password if password is not None else ‘’)
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] File “/home/admin/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 41, in _connect
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] db = mysql.connect(host=ip, user=user, port=int(port), password=str(password), cursorclass=mysql.cursors.DictCursor)
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 353, in init
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] self.connect()
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 664, in connect
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] raise exc
[2026-03-27 13:30:30] [09da3a7c-299e-11f1-8582-286ed4894d67] [ERROR] pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘172.17.113.133’ ([Errno 111] Connection refused)”
**报错信息3:**observer.log日志
ERROR [SERVER] main (main.cpp:491) [216446][0][Y0-0000000000000000] [lt=2] [dc=0] observer init fail(ret=-4002) BACKTRACE:0x97b78ce 0x970a211 0x21eb0b4 0x21eab9b 0x21ea901 0x21e9598 0x21e7a0a 0x7f2b45e95555 0x21e63e9
【复现路径】问题出现前后相关操作
【附件及日志】
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!