obdiag: rca run Exception: rca_scene.init err: observer version is 4.2.1.0, which is less than 4.2.1.0.

[root@iZbp19h11pjlef3mas7sj0Z ~]# obdiag display-trace 70b96470-767a-11f0-b9e3-00163e26b917
obdiag version: 3.6.0
[2025-08-11 14:14:29.778] [DEBUG] - cmd: obdiag rca run
[2025-08-11 14:14:29.778] [DEBUG] - opts: {'config_password': None, 'inner_config': None, 'scene': 'ddl_failure', 'store_dir': './obdiag_rca/', 'env': None, 'report_type': 'table', 'c': '/root/.obdiag/config.yml', 'config': None}
[2025-08-11 14:14:29.779] [DEBUG] - mkdir /opt/oceanbase-diagnostic-tool/conf/inner_config.yml
[2025-08-11 14:14:29.784] [DEBUG] - mkdir /root/.obdiag/config.yml
[2025-08-11 14:14:29.786] [INFO] obdiag version: 3.6.0
[2025-08-11 14:14:30.024] [DEBUG] - connect databse ...
[2025-08-11 14:14:30.032] [DEBUG] - connect databse ...
[2025-08-11 14:14:30.032] [DEBUG] - RCAHandler.init store dir: ./obdiag_rca/
[2025-08-11 14:14:30.033] [DEBUG] - rca result save_path is :./obdiag_rca/
[2025-08-11 14:14:30.033] [DEBUG] - get observer version, by sql
[2025-08-11 14:14:30.033] [DEBUG] - start get_observer_version_by_sql . input: 127.0.0.1:2881
[2025-08-11 14:14:30.034] [DEBUG] - connect databse ...
[2025-08-11 14:14:30.035] [DEBUG] - get_observer_version_by_sql ob_version_info is ('5.7.25-OceanBase_CE-v4.2.1.0',)
[2025-08-11 14:14:30.035] [DEBUG] - RCAHandler.init get observer version: 4.2.1.0
[2025-08-11 14:14:30.035] [DEBUG] - RCAHandler.init get observer version: 4.2.1.0
[2025-08-11 14:14:30.075] [DEBUG] - RCAHandler init.cluster:obcluster, init.nodes:[{'ip': '127.0.0.1', 'ssh_username': 'root', 'ssh_port': '22', 'home_path': '/home/admin/oceanbase/observer/', 'data_dir': '/home/admin/oceanbase/observer/store', 'redo_dir': '/home/admin/oceanbase/observer/store', 'ssh_key_file': '', 'ssh_type': 'remote', 'container_name': '', 'namespace': '', 'pod_name': '', 'kubernetes_config_file': '', 'host_type': 'OBSERVER', 'ssher': <src.common.ssh_client.ssh.SshClient object at 0x7f6d311c4160>}], init.obproxy_nodes:[], init.store_dir:./obdiag_rca/
[2025-08-11 14:14:30.075] [DEBUG] - ddl_failure store_dir:./obdiag_rca/obdiag_ddl_failure_20250811141430
[2025-08-11 14:14:30.075] [DEBUG] - get observer version, by sql
[2025-08-11 14:14:30.075] [DEBUG] - start get_observer_version_by_sql . input: 127.0.0.1:2881
[2025-08-11 14:14:30.077] [DEBUG] - connect databse ...
[2025-08-11 14:14:30.078] [DEBUG] - get_observer_version_by_sql ob_version_info is ('5.7.25-OceanBase_CE-v4.2.1.0',)
[2025-08-11 14:14:30.078] [DEBUG] - add record: observer version: 4.2.1.0
[2025-08-11 14:14:30.078] [ERROR] observer version is 4.2.1.0, which is less than 4.2.1.0.
[2025-08-11 14:14:30.078] [ERROR] rca run Exception: rca_scene.init err: observer version is 4.2.1.0, which is less than 4.2.1.0. 
[2025-08-11 14:14:30.079] [DEBUG] - Traceback (most recent call last):
[2025-08-11 14:14:30.079] [DEBUG]   File "src/handler/rca/rca_handler.py", line 173, in handle
[2025-08-11 14:14:30.079] [DEBUG]   File "/root/.obdiag/rca/ddl_failure.py", line 53, in init
[2025-08-11 14:14:30.079] [DEBUG]     raise RCAInitException("observer version is {0}, which is less than {1}.".format(observer_version, min_supported_version))
[2025-08-11 14:14:30.079] [DEBUG] src.handler.rca.rca_exception.RCAInitException: observer version is 4.2.1.0, which is less than 4.2.1.0. 
[2025-08-11 14:14:30.079] [DEBUG] 
[2025-08-11 14:14:30.079] [DEBUG] During handling of the above exception, another exception occurred:
[2025-08-11 14:14:30.079] [DEBUG] 
[2025-08-11 14:14:30.079] [DEBUG] Traceback (most recent call last):
[2025-08-11 14:14:30.079] [DEBUG]   File "src/common/core.py", line 553, in rca_run
[2025-08-11 14:14:30.079] [DEBUG]   File "src/handler/rca/rca_handler.py", line 176, in handle
[2025-08-11 14:14:30.079] [DEBUG] Exception: rca_scene.init err: observer version is 4.2.1.0, which is less than 4.2.1.0. 
[2025-08-11 14:14:30.079] [DEBUG] 
[2025-08-11 14:14:30.079] [INFO] Trace ID: 70b96470-767a-11f0-b9e3-00163e26b917
[2025-08-11 14:14:30.079] [INFO] If you want to view detailed obdiag logs, please run: obdiag display-trace 70b96470-767a-11f0-b9e3-00163e26b917

运行根因分析报错,这个是为什么?

感谢老师指出问题~

这个应该是 obdaig 这期在线体验实验中的 observer 版本太低了,原本应该是 43x,结果用成 421 了,我们在实验中替换下版本~