[2025-01-16 14:17:07.260] [DEBUG] - cmd: obdiag check run [2025-01-16 14:17:07.260] [DEBUG] - opts: {'inner_config': None, 'cases': 'build_before', 'obproxy_cases': None, 'store_dir': './check_report/', 'report_type': 'table', 'c': '/root/.obdiag/config.yml', 'config': None, 'env': None} [2025-01-16 14:17:07.261] [DEBUG] - mkdir /usr/local/oceanbase-diagnostic-tool/conf/inner_config.yml [2025-01-16 14:17:07.265] [DEBUG] - mkdir /root/.obdiag/config.yml [2025-01-16 14:17:07.267] [INFO] check start ... [2025-01-16 14:17:07.270] [DEBUG] - CheckHandler input. ignore_version is False , cluster is obcluster , nodes is [{'ip': '127.0.0.1', 'ssh_username': '', 'ssh_port': 22, 'home_path': '/home/admin/oceanbase', 'data_dir': '/root/observer/store', 'redo_dir': '/root/observer/store', 'ssh_key_file': '', 'ssh_type': 'remote', 'container_name': '', 'namespace': '', 'pod_name': '', 'kubernetes_config_file': '', 'host_type': 'OBSERVER'}], export_report_path is ./check_report/, export_report_type is table , check_target_type is observer, tasks_base_path is /root/.obdiag/check/tasks/, input_env is {} [2025-01-16 14:17:07.270] [DEBUG] - case_package_file is /root/.obdiag/check/observer_check_package.yaml [2025-01-16 14:17:07.270] [DEBUG] - tasks_base_path is /root/.obdiag/check/tasks//observer [2025-01-16 14:17:07.271] [DEBUG] - get observer version, by sql [2025-01-16 14:17:07.271] [DEBUG] - start get_observer_version_by_sql . input: 127.0.0.1:2881 [2025-01-16 14:17:07.271] [ERROR] connect OB: 127.0.0.1:2881 with user root@sys failed, error:(2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)") [2025-01-16 14:17:07.272] [ERROR] connect OB: 127.0.0.1:2881 with user root@sys failed, error:(2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)") [2025-01-16 14:17:07.272] [DEBUG] - get observer version, by sql fail. by ssh [2025-01-16 14:17:07.272] [DEBUG] - [local host] run cmd = [/home/admin/oceanbase/bin/observer --version] on localhost [2025-01-16 14:17:07.479] [DEBUG] - get observer version, run cmd = [/home/admin/oceanbase/bin/observer --version] [2025-01-16 14:17:07.479] [DEBUG] - [local host] run cmd = [export LD_LIBRARY_PATH=/home/admin/oceanbase/lib && /home/admin/oceanbase/bin/observer --version] on localhost [2025-01-16 14:17:09.211] [DEBUG] - get observer version with LD_LIBRARY_PATH,cmd:export LD_LIBRARY_PATH=/home/admin/oceanbase/lib && /home/admin/oceanbase/bin/observer --version [2025-01-16 14:17:09.211] [WARNING] get observer version fail . Exception:get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.212] [ERROR] can't get observer version, Exception: can't get observer version, Exception: get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.212] [ERROR] Traceback (most recent call last): [2025-01-16 14:17:09.212] [ERROR] File "src/common/command.py", line 319, in get_observer_version_by_sql [2025-01-16 14:17:09.213] [ERROR] File "src/common/ob_connector.py", line 96, in execute_sql [2025-01-16 14:17:09.213] [ERROR] AttributeError: 'NoneType' object has no attribute 'cursor' [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] Traceback (most recent call last): [2025-01-16 14:17:09.213] [ERROR] File "src/common/command.py", line 233, in get_observer_version [2025-01-16 14:17:09.213] [ERROR] File "src/common/command.py", line 321, in get_observer_version_by_sql [2025-01-16 14:17:09.213] [ERROR] Exception: get_observer_version_by_sql Exception. Maybe cluster'info is error: 'NoneType' object has no attribute 'cursor' [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] Traceback (most recent call last): [2025-01-16 14:17:09.213] [ERROR] File "src/common/command.py", line 241, in get_observer_version [2025-01-16 14:17:09.213] [ERROR] File "src/common/command.py", line 268, in get_observer_version_by_ssh [2025-01-16 14:17:09.213] [ERROR] Exception: Please check conf about observer, [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] Traceback (most recent call last): [2025-01-16 14:17:09.213] [ERROR] File "src/common/scene.py", line 74, in get_version_by_type [2025-01-16 14:17:09.213] [ERROR] File "src/common/command.py", line 243, in get_observer_version [2025-01-16 14:17:09.213] [ERROR] Exception: get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.213] [ERROR] [2025-01-16 14:17:09.213] [ERROR] Traceback (most recent call last): [2025-01-16 14:17:09.214] [ERROR] File "src/common/diag_cmd.py", line 290, in do_command [2025-01-16 14:17:09.214] [ERROR] File "src/common/diag_cmd.py", line 1034, in _do_command [2025-01-16 14:17:09.214] [ERROR] File "src/common/core.py", line 478, in check [2025-01-16 14:17:09.214] [ERROR] File "src/handler/checker/check_handler.py", line 113, in __init__ [2025-01-16 14:17:09.214] [ERROR] File "src/common/scene.py", line 77, in get_version_by_type [2025-01-16 14:17:09.214] [ERROR] Exception: can't get observer version, Exception: get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.214] [ERROR] [2025-01-16 14:17:09.214] [ERROR] check Exception: can't get observer version, Exception: can't get observer version, Exception: get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.214] [DEBUG] - Traceback (most recent call last): [2025-01-16 14:17:09.214] [DEBUG] File "src/common/command.py", line 319, in get_observer_version_by_sql [2025-01-16 14:17:09.214] [DEBUG] File "src/common/ob_connector.py", line 96, in execute_sql [2025-01-16 14:17:09.214] [DEBUG] AttributeError: 'NoneType' object has no attribute 'cursor' [2025-01-16 14:17:09.214] [DEBUG] [2025-01-16 14:17:09.214] [DEBUG] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.214] [DEBUG] [2025-01-16 14:17:09.214] [DEBUG] Traceback (most recent call last): [2025-01-16 14:17:09.215] [DEBUG] File "src/common/command.py", line 233, in get_observer_version [2025-01-16 14:17:09.215] [DEBUG] File "src/common/command.py", line 321, in get_observer_version_by_sql [2025-01-16 14:17:09.215] [DEBUG] Exception: get_observer_version_by_sql Exception. Maybe cluster'info is error: 'NoneType' object has no attribute 'cursor' [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] Traceback (most recent call last): [2025-01-16 14:17:09.215] [DEBUG] File "src/common/command.py", line 241, in get_observer_version [2025-01-16 14:17:09.215] [DEBUG] File "src/common/command.py", line 268, in get_observer_version_by_ssh [2025-01-16 14:17:09.215] [DEBUG] Exception: Please check conf about observer, [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] Traceback (most recent call last): [2025-01-16 14:17:09.215] [DEBUG] File "src/common/scene.py", line 74, in get_version_by_type [2025-01-16 14:17:09.215] [DEBUG] File "src/common/command.py", line 243, in get_observer_version [2025-01-16 14:17:09.215] [DEBUG] Exception: get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] Traceback (most recent call last): [2025-01-16 14:17:09.215] [DEBUG] File "src/common/scene.py", line 77, in get_version_by_type [2025-01-16 14:17:09.215] [DEBUG] Exception: can't get observer version, Exception: get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] During handling of the above exception, another exception occurred: [2025-01-16 14:17:09.215] [DEBUG] [2025-01-16 14:17:09.215] [DEBUG] Traceback (most recent call last): [2025-01-16 14:17:09.215] [DEBUG] File "src/common/core.py", line 478, in check [2025-01-16 14:17:09.215] [DEBUG] File "src/handler/checker/check_handler.py", line 113, in __init__ [2025-01-16 14:17:09.215] [DEBUG] File "src/common/scene.py", line 85, in get_version_by_type [2025-01-16 14:17:09.216] [DEBUG] Exception: can't get observer version, Exception: can't get observer version, Exception: get observer version fail. Please check conf about observer's node or obconnector's info. [2025-01-16 14:17:09.216] [DEBUG] [2025-01-16 14:17:09.216] [INFO] Trace ID: 8314f31a-d3d1-11ef-bfcd-fefcfe574ab8 [2025-01-16 14:17:09.216] [INFO] If you want to view detailed obdiag logs, please run: obdiag display-trace 8314f31a-d3d1-11ef-bfcd-fefcfe574ab8