OceanBase升级版报错

【 使用环境 】 测试环境
【 OB or 其他组件 】
【 使用版本 】4.2.4.0
【问题描述】清晰明确描述问题
【复现路径】问题出现前后相关操作
【附件及日志】
当前版本 4.2.4.0
升级版本 4.2.5.5

升级过程中的报错
[root@oceanbase-01 oceanbase-all-in-one]# obd cluster upgrade xj-oceanbase -c oceanbase-ce -V 4.2.5.5
Get local repositories and plugins ok
Open ssh connection ok
Get deployment connections ok
Get standbys info ok
Start observer ok
observer program health check ok
obshell program health check ok
Connect to observer 10.86.120.70:2881 ok
Rotation upgrade x
upgrade zone “zone1”
[ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed

See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 138ab88c-82e9-11f0-bc04-005056afdc68
If you want to view detailed obd logs, please run: obd display-trace 138ab88c-82e9-11f0-bc04-005056afdc68

附件
obd.txt (3.3 MB)

1 个赞

麻烦提供一下详细的obd日志

1 个赞

[2025-08-27 10:07:26.197] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- server3(10.86.120.72) obshell[pid: 8616] started
[2025-08-27 10:07:26.253] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- need_bootstrap: False
[2025-08-27 10:07:26.253] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] — sub start ref count to 0
[2025-08-27 10:07:26.253] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] — export start
[2025-08-27 10:07:26.253] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] — plugin oceanbase-ce-py_script_start-4.2.2.0 result: True
[2025-08-27 10:07:26.253] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - Searching connect plugin for components …
[2025-08-27 10:07:26.254] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - Searching connect plugin for oceanbase-ce-4.2.4.0-100000082024070810.el7-7dc8b049b3283ef4660cdf6e3cfa24f81e9d2a78
[2025-08-27 10:07:26.254] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - Found for oceanbase-ce-py_script_connect-4.2.2.0 for oceanbase-ce-4.2.4.0
[2025-08-27 10:07:26.254] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- connect obshell (10.86.120.70:2886)
[2025-08-27 10:07:26.254] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- connect obshell (10.86.120.71:2886)
[2025-08-27 10:07:26.255] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- connect obshell (10.86.120.72:2886)
[2025-08-27 10:07:26.255] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] Connect to observer
[2025-08-27 10:07:26.256] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- connect 10.86.120.70 -P2881 -uroot -p******
[2025-08-27 10:07:26.257] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: select 1. args: None
[2025-08-27 10:07:26.386] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] — plugin oceanbase-ce-py_script_connect-4.2.2.0 result: True
[2025-08-27 10:07:26.386] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: use oceanbase. args: None
[2025-08-27 10:07:26.387] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: set session ob_query_timeout=1000000000. args: None
[2025-08-27 10:07:26.387] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] – upgrade oceanbase-ce-4.2.5.5-105000032025071717.el7-d661d3fbb99eb47f9ee8603f5080e17face61ef2 to oceanbase-ce-4.2.5.5-105000032025071717.el7-d661d3fbb99eb47f9ee8603f5080e17face61ef2
[2025-08-27 10:07:26.389] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] Rotation upgrade
[2025-08-27 10:07:26.390] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: show tables. args: None
[2025-08-27 10:07:26.396] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] – {‘Tables_in_oceanbase’: ‘ALL_OB_EXTERNAL_TABLE_FILES’}
[2025-08-27 10:07:26.397] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: show tables. args: None
[2025-08-27 10:07:26.403] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] – {‘Tables_in_oceanbase’: ‘ALL_OB_EXTERNAL_TABLE_FILES’}
[2025-08-27 10:07:26.403] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] – server cneck
[2025-08-27 10:07:26.403] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: select * from oceanbase.DBA_OB_SERVERS where STATUS != ‘ACTIVE’ or STOP_TIME is not NULL or START_SERVICE_TIME is NULL. args: None
[2025-08-27 10:07:26.405] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: select * from GV$OB_LOG_STAT where in_sync = ‘NO’. args: None
[2025-08-27 10:07:26.408] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: show tables. args: None
[2025-08-27 10:07:26.415] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] – {‘Tables_in_oceanbase’: ‘ALL_OB_EXTERNAL_TABLE_FILES’}
[2025-08-27 10:07:26.415] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] – server cneck
[2025-08-27 10:07:26.415] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: select * from oceanbase.DBA_OB_SERVERS where STATUS != ‘ACTIVE’ or STOP_TIME is not NULL or START_SERVICE_TIME is NULL. args: None
[2025-08-27 10:07:26.417] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: select * from GV$OB_LOG_STAT where in_sync = ‘NO’. args: None
[2025-08-27 10:07:26.420] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] – stop zone zone1
[2025-08-27 10:07:26.421] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] ---- execute sql: alter system stop zone zone1. args: None
[2025-08-27 10:07:26.505] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] upgrade zone “zone1”
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] [ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] Traceback (most recent call last):
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “core.py”, line 3480, in upgrade_cluster
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “core.py”, line 256, in run_workflow
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “core.py”, line 298, in run_plugin_template
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “core.py”, line 347, in call_plugin
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “_plugin.py”, line 348, in call
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “_plugin.py”, line 304, in _new_func
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 617, in upgrade
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] if upgrader.run():
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 248, in run
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] if not self.processself.process_index:
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 485, in upgrade_zone
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] ret = self.rolling_upgrade(zones_servers)
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 533, in rolling_upgrade
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] self.install_repository_to_servers(self.components, self.cluster_config, repository, self.clients, self.unuse_lib_repository)
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR] TypeError: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [ERROR]
[2025-08-27 10:07:26.507] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - sub upgrade ref count to 0
[2025-08-27 10:07:26.508] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - export upgrade
[2025-08-27 10:07:26.508] [90091ba0-82ea-11f0-b791-005056afdc68] [WARNING] [WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed
[2025-08-27 10:07:26.508] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - plugin oceanbase-ce-py_script_upgrade-4.2.2.0 result: None
[2025-08-27 10:07:26.508] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - dump upgrade meta data to /root/.obd/cluster/xj-oceanbase/.upgrade
[2025-08-27 10:07:26.520] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] upgrade zone “zone1”
[2025-08-27 10:07:26.520] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] [ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 10:07:26.520] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] [WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed
[2025-08-27 10:07:26.521] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO]
[2025-08-27 10:07:26.521] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] Trace ID: 90091ba0-82ea-11f0-b791-005056afdc68
[2025-08-27 10:07:26.521] [90091ba0-82ea-11f0-b791-005056afdc68] [INFO] If you want to view detailed obd logs, please run: obd display-trace 90091ba0-82ea-11f0-b791-005056afdc68
[2025-08-27 10:07:26.521] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - unlock /root/.obd/lock/global
[2025-08-27 10:07:26.521] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - unlock /root/.obd/lock/deploy_xj-oceanbase
[2025-08-27 10:07:26.522] [90091ba0-82ea-11f0-b791-005056afdc68] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo

2 个赞

应该是缺少参数 需要安装包的hash值 --usable=

1 个赞

这个 --usable= 参数后面的hash值怎么获取? 填的应该是目标版本的hash值吧

是下面命令获取到的值吗?

[root@oceanbase-01 log]# obd mirror list local | grep oceanbase-ce
| oceanbase-ce | 4.2.4.0 | 100000082024070810.el7 | x86_64 | 7dc8b049b3283ef4660cdf6e3cfa24f81e9d2a78 |
| oceanbase-ce-libs | 4.2.4.0 | 100000082024070810.el7 | x86_64 | eda524874ce5daff6685f114bd28965b8c1834ef |
| oceanbase-ce | 4.2.1.8 | 108000022024072217.el7 | x86_64 | 499b676f2ede5a16e0c07b2b15991d1160d972e8 |
| oceanbase-ce | 4.2.5.5 | 105000032025071717.el7 | x86_64 | d661d3fbb99eb47f9ee8603f5080e17face61ef2 |
| oceanbase-ce-libs | 4.2.1.8 | 108000022024072217.el7 | x86_64 | d02f4bfd321370a02550424293beb1be31204038 |
| oceanbase-ce-libs | 4.2.5.5 | 105000032025071717.el7 | x86_64 | 26d29003ceaadad069b5fa0f1cdb6ea8279c5b1f |
| oceanbase-ce-utils | 4.2.1.8 | 108000022024072217.el7 | x86_64 | 6f87392f95b399a21382323f256cfda5969375c4 |
| oceanbase-ce-utils | 4.2.5.5 | 105000032025071717.el7 | x86_64 | f8f6b98b78d0edfa9b9d6ab870580e3fbf77395c |

1 个赞

是的

1 个赞

添加了版本的hash值
obd cluster upgrade xj-oceanbase -c oceanbase-ce -V 4.2.5.5 --usable=d661d3fbb99eb47f9ee8603f5080e17face61ef2
还是报错
[2025-08-27 10:37:57.046] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO] upgrade zone “zone1”
[2025-08-27 10:37:57.047] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] [ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] Traceback (most recent call last):
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “core.py”, line 3480, in upgrade_cluster
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “core.py”, line 256, in run_workflow
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “core.py”, line 298, in run_plugin_template
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “core.py”, line 347, in call_plugin
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “_plugin.py”, line 348, in call
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “_plugin.py”, line 304, in _new_func
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 617, in upgrade
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] if upgrader.run():
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 248, in run
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] if not self.processself.process_index:
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 485, in upgrade_zone
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] ret = self.rolling_upgrade(zones_servers)
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 533, in rolling_upgrade
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] self.install_repository_to_servers(self.components, self.cluster_config, repository, self.clients, self.unuse_lib_repository)
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR] TypeError: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [ERROR]
[2025-08-27 10:37:57.048] [d320e6bc-82ee-11f0-b23d-005056afdc68] [DEBUG] - sub upgrade ref count to 0
[2025-08-27 10:37:57.049] [d320e6bc-82ee-11f0-b23d-005056afdc68] [DEBUG] - export upgrade
[2025-08-27 10:37:57.049] [d320e6bc-82ee-11f0-b23d-005056afdc68] [WARNING] [WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed
[2025-08-27 10:37:57.049] [d320e6bc-82ee-11f0-b23d-005056afdc68] [DEBUG] - plugin oceanbase-ce-py_script_upgrade-4.2.2.0 result: None
[2025-08-27 10:37:57.049] [d320e6bc-82ee-11f0-b23d-005056afdc68] [DEBUG] - dump upgrade meta data to /root/.obd/cluster/xj-oceanbase/.upgrade
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO] upgrade zone “zone1”
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO] [ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO] [WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO]
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO] Trace ID: d320e6bc-82ee-11f0-b23d-005056afdc68
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [INFO] If you want to view detailed obd logs, please run: obd display-trace d320e6bc-82ee-11f0-b23d-005056afdc68
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [DEBUG] - unlock /root/.obd/lock/global
[2025-08-27 10:37:57.061] [d320e6bc-82ee-11f0-b23d-005056afdc68] [DEBUG] - unlock /root/.obd/lock/deploy_xj-oceanbase
[2025-08-27 10:37:57.062] [d320e6bc-82ee-11f0-b23d-005056afdc68] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo

1 个赞

obd版本是多少 如果比较老建议升级一下obd先

1 个赞

obd版本是3.5.0
[root@oceanbase-01 ~]# obd --version
OceanBase Deploy: 3.5.0
REVISION: 44567bd3badf6bd36a6b73f5ddcd66682da47574
BUILD_BRANCH: HEAD
BUILD_TIME: Aug 19 2025 17:18:14OURCE
Copyright (C) 2025 OceanBase
License Apache 2.0: Apache version 2 or later https://www.apache.org/licenses/LICENSE-2.0.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

1 个赞

obd的详细日志能发一份附件么。这边需要复现一下

1 个赞

obd日志,我上传在贴子上了。

1 个赞

好的,424的详细版本能提供一下么

1 个赞

4.2.4版本的包
oceanbase-all-in-one-4.2.4.0-100000082024070810.el7.x86_64.tar.gz
4.2.5版本的包
oceanbase-all-in-one-4.2.5_bp5_20250819.el7.x86_64.tar.gz

我们根据这个配置没有复现,考虑可能是你obd环境 有污染,可以通过一下方式刷下一下插件
rm ~/.obd/version
obd cluster list
然后重试一下

1 个赞

非常不错哦!

1 个赞

[root@oceanbase-01 ~]# rm /root/.obd/version
rm:是否删除普通文件 “/root/.obd/version”?y
[root@oceanbase-01 ~]# obd cluster list
±-----------------------------------------------------------------+
| Cluster List |
±-------------±--------------------------------±----------------+
| Name | Configuration Path | Status (Cached) |
±-------------±--------------------------------±----------------+
| xj-oceanbase | /root/.obd/cluster/xj-oceanbase | upgrading |
±-------------±--------------------------------±----------------+
Trace ID: a15dc7de-830d-11f0-b971-005056afdc68
If you want to view detailed obd logs, please run: obd display-trace a15dc7de-830d-11f0-b971-005056afdc68
[root@oceanbase-01 ~]# ll /root/.obd/version
-rw-r–r-- 1 root root 5 8月 27 14:18 /root/.obd/version
[root@oceanbase-01 ~]# cat /root/.obd/version
3.5.0[root@oceanbase-01 ~]# ^C
[root@oceanbase-01 ~]# obd cluster list^C
[root@oceanbase-01 ~]# obd cluster upgrade xj-oceanbase -c oceanbase-ce -V 4.2.5.5 --usable=d661d3fbb99eb47f9ee8603f5080e17face61ef2
Get local repositories and plugins ok
Open ssh connection ok
Get deployment connections ok
Get standbys info ok
Start observer ok
observer program health check ok
obshell program health check ok
Connect to observer 10.86.120.70:2881 ok
Rotation upgrade x
upgrade zone “zone1”
[ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed

See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: b68e9ed0-830d-11f0-9ad9-005056afdc68
If you want to view detailed obd logs, please run: obd display-trace b68e9ed0-830d-11f0-9ad9-005056afdc68
刷新了一下,还是不行,还是报错一样。
[2025-08-27 14:19:03.560] [ERROR] [ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 14:19:03.560] [ERROR] Traceback (most recent call last):
[2025-08-27 14:19:03.561] [ERROR] File “core.py”, line 3480, in upgrade_cluster
[2025-08-27 14:19:03.561] [ERROR] File “core.py”, line 256, in run_workflow
[2025-08-27 14:19:03.561] [ERROR] File “core.py”, line 298, in run_plugin_template
[2025-08-27 14:19:03.561] [ERROR] File “core.py”, line 347, in call_plugin
[2025-08-27 14:19:03.561] [ERROR] File “_plugin.py”, line 348, in call
[2025-08-27 14:19:03.561] [ERROR] File “_plugin.py”, line 304, in _new_func
[2025-08-27 14:19:03.561] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 617, in upgrade
[2025-08-27 14:19:03.561] [ERROR] if upgrader.run():
[2025-08-27 14:19:03.561] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 248, in run
[2025-08-27 14:19:03.561] [ERROR] if not self.processself.process_index:
[2025-08-27 14:19:03.561] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 485, in upgrade_zone
[2025-08-27 14:19:03.561] [ERROR] ret = self.rolling_upgrade(zones_servers)
[2025-08-27 14:19:03.562] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.2.0/upgrade.py”, line 533, in rolling_upgrade
[2025-08-27 14:19:03.562] [ERROR] self.install_repository_to_servers(self.components, self.cluster_config, repository, self.clients, self.unuse_lib_repository)
[2025-08-27 14:19:03.562] [ERROR] TypeError: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 14:19:03.562] [ERROR]
[2025-08-27 14:19:03.562] [DEBUG] - sub upgrade ref count to 0
[2025-08-27 14:19:03.562] [DEBUG] - export upgrade
[2025-08-27 14:19:03.562] [WARNING] [WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed
[2025-08-27 14:19:03.562] [DEBUG] - plugin oceanbase-ce-py_script_upgrade-4.2.2.0 result: None
[2025-08-27 14:19:03.563] [DEBUG] - dump upgrade meta data to /root/.obd/cluster/xj-oceanbase/.upgrade
[2025-08-27 14:19:03.672] [INFO] upgrade zone “zone1”
[2025-08-27 14:19:03.672] [INFO] [ERROR] Run Exception: install_repository_to_servers() takes from 2 to 3 positional arguments but 6 were given
[2025-08-27 14:19:03.672] [INFO] [WARN] oceanbase-ce-py_script_upgrade-4.2.2.0 has animation not been closed
[2025-08-27 14:19:03.672] [INFO]
[2025-08-27 14:19:03.672] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-08-27 14:19:03.672] [INFO] Trace ID: b68e9ed0-830d-11f0-9ad9-005056afdc68
[2025-08-27 14:19:03.672] [INFO] If you want to view detailed obd logs, please run: obd display-trace b68e9ed0-830d-11f0-9ad9-005056afdc68
[2025-08-27 14:19:03.673] [DEBUG] - unlock /root/.obd/lock/global
[2025-08-27 14:19:03.673] [DEBUG] - unlock /root/.obd/lock/deploy_xj-oceanbase
[2025-08-27 14:19:03.673] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo

find ~/.obd/plugins/oceanbase-ce/* -name upgrade.py 执行一下 截图一下。 我看了代码 obd3.5.0 插件里面 没有你报错里面的 oceanbase-ce/4.2.2.0/upgrade.py 这个插件。 我这边是这样的

现在我换了一个低一点的小版本4.2.5.1尝试升级,报错如下,帮忙看下是什么原因
[2025-08-27 16:04:22.254] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] – exec oceanbase-ce-4.2.5.1-101000092024120918.el7-73ac869fcad98754cc378e7dc0d65def658538b7 upgrade_checker.py
[2025-08-27 16:04:22.269] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] – exec oceanbase-ce-4.2.5.1-101000092024120918.el7-73ac869fcad98754cc378e7dc0d65def658538b7 upgrade_checker.py
[2025-08-27 16:04:22.270] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] – local execute: /usr/obd/lib/executer/executer27/bin/executer /tmp/10.86.120.70:2882_10.86.120.71:2882_10.86.120.72:2882/73ac869fcad98754cc378e7dc0d65def658538b7/upgrade_checker.py -h 10.86.120.70 -P 2881 -u root -p ‘******’
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] – exited code 255, error output:
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] Character set ‘45’ is not a compiled character set and is not specified in the ‘/usr/local/mysql/share/charsets/Index.xml’ file
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] Character set ‘45’ is not a compiled character set and is not specified in the ‘/usr/local/mysql/share/charsets/Index.xml’ file
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] Traceback (most recent call last):
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] File “executer27.py”, line 47, in
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] File “/tmp/10.86.120.70:2882_10.86.120.71:2882_10.86.120.72:2882/73ac869fcad98754cc378e7dc0d65def658538b7/upgrade_checker.py”, line 744, in
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] do_check(host, port, user, password, timeout, upgrade_params)
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] File “/tmp/10.86.120.70:2882_10.86.120.71:2882_10.86.120.72:2882/73ac869fcad98754cc378e7dc0d65def658538b7/upgrade_checker.py”, line 710, in do_check
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] modify_server_permanent_offline_time(cur)
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] File “/tmp/10.86.120.70:2882_10.86.120.71:2882_10.86.120.72:2882/73ac869fcad98754cc378e7dc0d65def658538b7/upgrade_checker.py”, line 495, in modify_server_permanent_offline_time
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] set_parameter(cur, ‘server_permanent_offline_time’, ‘72h’)
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] File “/tmp/10.86.120.70:2882_10.86.120.71:2882_10.86.120.72:2882/73ac869fcad98754cc378e7dc0d65def658538b7/upgrade_checker.py”, line 70, in set_parameter
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] wait_parameter_sync(cur, parameter, value)
[2025-08-27 16:05:08.907] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] File “/tmp/10.86.120.70:2882_10.86.120.71:2882_10.86.120.72:2882/73ac869fcad98754cc378e7dc0d65def658538b7/upgrade_checker.py”, line 92, in wait_parameter_sync
[2025-08-27 16:05:08.908] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] raise MyError(""“check {0}:{1} sync timeout”"".format(key, value))
[2025-08-27 16:05:08.908] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] main.MyError: ‘check server_permanent_offline_time:72h sync timeout’
[2025-08-27 16:05:08.908] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] [18680] Failed to execute script executer27
[2025-08-27 16:05:08.908] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG]
[2025-08-27 16:05:08.919] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] - sub upgrade ref count to 0
[2025-08-27 16:05:08.919] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] - export upgrade
[2025-08-27 16:05:08.919] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] - plugin oceanbase-ce-py_script_upgrade-4.2.1.4 result: None
[2025-08-27 16:05:08.919] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] - dump upgrade meta data to /root/.obd/cluster/xj-oceanbase/.upgrade
[2025-08-27 16:05:08.929] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-08-27 16:05:08.929] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [INFO] Trace ID: 5ae1eb50-831c-11f0-b2f7-005056afdc68
[2025-08-27 16:05:08.929] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [INFO] If you want to view detailed obd logs, please run: obd display-trace 5ae1eb50-831c-11f0-b2f7-005056afdc68
[2025-08-27 16:05:08.930] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] - unlock /root/.obd/lock/global
[2025-08-27 16:05:08.930] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] - unlock /root/.obd/lock/deploy_xj-oceanbase
[2025-08-27 16:05:08.930] [5ae1eb50-831c-11f0-b2f7-005056afdc68] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo

能提供一份完整的日志么

obd.log (3.2 MB)

ALTER SYSTEM SET enable_upgrade_mode = True; 修改了这个参数,但是不生效。 有两个节点依然是False