使用命令obd cluster restart obcluster
启动时,一直开在Connect to observer x
然后查看vi ~/.obd/log/obd
日志,日志如下
[2025-05-15 08:01:26.487] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] -- connect 127.0.0.1 -P2881 -uroot -p
[2025-05-15 08:01:29.491] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] -- connect 127.0.0.1 -P2881 -uroot -p******
[2025-05-15 08:01:32.496] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] -- connect 127.0.0.1 -P2881 -uroot -p
[2025-05-15 08:01:35.500] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] -- connect 127.0.0.1 -P2881 -uroot -p******
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] Traceback (most recent call last):
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "core.py", line 2756, in restart_cluster
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "core.py", line 2864, in _restart_cluster
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "core.py", line 246, in run_workflow
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "core.py", line 288, in run_plugin_template
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "core.py", line 336, in call_plugin
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "_plugin.py", line 348, in __call__
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "_plugin.py", line 304, in _new_func
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "/root/.obd/plugins/oceanbase-ce/3.1.0/connect.py", line 68, in connect
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] cursor = Cursor(ip=server.ip, port=server_config.get('mysql_port', 2881), tenant='', password=****** if password is not None else '', stdio=stdio)
[2025-05-15 08:01:35.503] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "_stdio.py", line 1089, in wrapper
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "_stdio.py", line 1076, in func_wrapper
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "tool.py", line 783, in __init__
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "tool.py", line 813, in _connect
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "pymysql/connections.py", line 353, in __init__
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "pymysql/connections.py", line 633, in connect
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "pymysql/connections.py", line 907, in _request_authentication
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "pymysql/connections.py", line 725, in _read_packet
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "pymysql/protocol.py", line 221, in raise_for_error
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] File "pymysql/err.py", line 143, in raise_mysql_exception
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] pymysql.err.OperationalError: (8001, 'Server is initializing\n[0.0.0.0:0] [2025-05-15 08:01:35.501780] [Y0-00063527D662D7AA-0-0]')
[2025-05-15 08:01:35.504] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR]
[2025-05-15 08:01:38.543] [1e79218a-3162-11f0-817d-0242ac160002] [ERROR] OBD-1006: Failed to connect to oceanbase-ce
[2025-05-15 08:01:38.543] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - sub connect ref count to 0
[2025-05-15 08:01:38.543] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - export connect
[2025-05-15 08:01:38.543] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - plugin oceanbase-ce-py_script_connect-3.1.0 result: False
[2025-05-15 08:01:38.548] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 1
[2025-05-15 08:01:38.548] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2025-05-15 08:01:38.548] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2025-05-15 08:01:38.548] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obcluster release, count 0
[2025-05-15 08:01:38.548] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - unlock /root/.obd/lock/deploy_obcluster
[2025-05-15 08:01:38.549] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2025-05-15 08:01:38.549] [1e79218a-3162-11f0-817d-0242ac160002] [DEBUG] - unlock /root/.obd/lock/global
[2025-05-15 08:01:38.549] [1e79218a-3162-11f0-817d-0242ac160002] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-05-15 08:01:38.549] [1e79218a-3162-11f0-817d-0242ac160002] [INFO] Trace ID: 1e79218a-3162-11f0-817d-0242ac160002
[2025-05-15 08:01:38.549] [1e79218a-3162-11f0-817d-0242ac160002] [INFO] If you want to view detailed obd logs, please run: obd display-trace 1e79218a-3162-11f0-817d-0242ac160002
请问这个如何接口