oceanbase-ce-py_script_resource_check-4.0.0.0 RuntimeError: local variable 'server' referenced before assignment

重启oceanbase失败oceanbase-ce-py_script_resource_check-4.0.0.0 RuntimeError: local variable ‘server’ referenced before assignment
log.log (23.7 KB)

麻烦提供一份yaml文件

config.txt (2.4 KB)

看下是不是内存被占用了导致的

内存够

我的ocp和oproxy机器
1747814008401
我的三台observer


image
image

还有可能是什么情况呢?

obd版本是多少,如果不是最新的建议升级到最新的322试一下。之前修过一个类似的报错

离线包的版本为oceanbase-all-in-one-4.3.5_bp2_20250515.el7.x86_64.tar
[root@localhost jiuzhou]# obd --version
OceanBase Deploy: 3.2.2
REVISION: 6d098cf70ef6d763ff07db2d8189205f072955a1
BUILD_BRANCH: HEAD
BUILD_TIME: May 13 2025 17:14:09OURCE
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.

现在的obd版本就是322 的,有个情况我不知道有没有影响,测试环境下我5.19部署的能正常运行停止后也可以正常重启,5.20早晨到公司以后重启时发现报此错误,然后社区看之前有人提过此类型问题说内存原因,然后通过系统指令检查内存时发现有个内存条松动,关机后紧了一下内存条然后系统检查能正常点亮内存条,然后再启动还是报此错误

我不知道这个事情有没有影响,oceanbase每次启动时会重检机器硬件么(启动失败时,再次启动还会不会触发检测)

NTP的问题,看下是否时钟同步存在异常

好的

我使用的chrony做的时间同步有影响么

没影响,看一下你的机器是否时间一致

一致

image
image
image
image

是不是差了几秒,时钟源用本地的试试呢

不是,差几秒钟是因为我手动切换每台的
[root@localhost jiuzhou]# ./timerSync.sh
:hourglass_flowing_sand: 正在设置 10.205.2.131 的时间同步…

Authorized users only. All activities may be monitored and reported.
date
:white_check_mark: 10.205.2.131 同步完成
:white_check_mark: 10.205.2.131 完成

:hourglass_flowing_sand: 正在设置 10.205.2.132 的时间同步…

Authorized users only. All activities may be monitored and reported.
date
:white_check_mark: 10.205.2.132 同步完成
:white_check_mark: 10.205.2.132 完成

:hourglass_flowing_sand: 正在设置 10.205.2.133 的时间同步…

Authorized users only. All activities may be monitored and reported.
date
:white_check_mark: 10.205.2.133 同步完成
:white_check_mark: 10.205.2.133 完成

:hourglass_flowing_sand: 正在设置 10.205.2.134 的时间同步…

Authorized users only. All activities may be monitored and reported.
date
:white_check_mark: 10.205.2.134 同步完成
:white_check_mark: 10.205.2.134 完成

:hourglass_flowing_sand: 正在设置 10.205.2.136 的时间同步…

Authorized users only. All activities may be monitored and reported.
date
:white_check_mark: 10.205.2.136 同步完成
:white_check_mark: 10.205.2.136 完成

[root@localhost jiuzhou]# ./timerSync.sh
:hourglass_flowing_sand: 正在设置 10.205.2.131 的时间同步…

Authorized users only. All activities may be monitored and reported.
2025年 05月 22日 星期四 15:19:09 CST
:white_check_mark: 10.205.2.131 同步完成
:white_check_mark: 10.205.2.131 完成

:hourglass_flowing_sand: 正在设置 10.205.2.132 的时间同步…

Authorized users only. All activities may be monitored and reported.
2025年 05月 22日 星期四 15:19:10 CST
:white_check_mark: 10.205.2.132 同步完成
:white_check_mark: 10.205.2.132 完成

:hourglass_flowing_sand: 正在设置 10.205.2.133 的时间同步…

Authorized users only. All activities may be monitored and reported.
2025年 05月 22日 星期四 15:19:10 CST
:white_check_mark: 10.205.2.133 同步完成
:white_check_mark: 10.205.2.133 完成

:hourglass_flowing_sand: 正在设置 10.205.2.134 的时间同步…

Authorized users only. All activities may be monitored and reported.
2025年 05月 22日 星期四 15:19:10 CST
:white_check_mark: 10.205.2.134 同步完成
:white_check_mark: 10.205.2.134 完成

:hourglass_flowing_sand: 正在设置 10.205.2.136 的时间同步…

Authorized users only. All activities may be monitored and reported.
2025年 05月 22日 星期四 15:19:10 CST
:white_check_mark: 10.205.2.136 同步完成
:white_check_mark: 10.205.2.136 完成

[root@localhost jiuzhou]# obd cluster stop fuzhouHD_database
Get local repositories ok
Get local repositories and plugins ok
Open ssh connection ok
Stop observer ok
Stop obshell ok
Stop obproxy-ce ok
Stop ocp-server-ce ok
fuzhouHD_database stopped
Trace ID: 22446c7c-36dd-11f0-820b-1cae3ea15ae5
If you want to view detailed obd logs, please run: obd display-trace 22446c7c-36dd-11f0-820b-1cae3ea15ae5
[root@localhost jiuzhou]# obd cluster start fuzhouHD_database
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[ERROR] oceanbase-ce-py_script_resource_check-4.0.0.0 RuntimeError: local variable ‘server’ referenced before assignment
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 2aef9f54-36dd-11f0-babf-1cae3ea15ae5
If you want to view detailed obd logs, please run: obd display-trace 2aef9f54-36dd-11f0-babf-1cae3ea15ae5

obd display-trace 2aef9f54-36dd-11f0-babf-1cae3ea15ae5
提供一下obd的日志

1 个赞