【 使用环境 】测试环境
【 OB or 其他组件 】OCP Express
【 使用版本 】4.2.2
【问题描述】OCP Express启动不起来,导致Oceanbase无法启动
【复现路径】obd cluster restart 操作报错
Load cluster param plugin ok
Open ssh connection ok
Cluster status check ok
Search plugins ok
Load cluster param plugin ok
Check before start observer ok
Check before start obproxy ok
Check before start obagent ok
Check before start ocp-express x
[ERROR] OBD-4300: 172.21.32.39: failed to query java version, you may not have java installed
[ERROR] ocp-express-py_script_start_check-4.2.1 RuntimeError: ‘ip’
[ERROR] OBD-1005: Some of the servers in the cluster have been stopped
See OceanBase分布式数据库-海量数据 笔笔算数 .
Trace ID: 83d4d552-e4f5-11ee-9d5f-5254004f0171
If you want to view detailed obd logs, please run: obd display-trace 83d4d552-e4f5-11ee-9d5f-5254004f0171
【附件及日志】
查看详细日志:
[2024-03-18 15:00:37.312] [DEBUG] — obadmin@172.21.32.39 execute: df --block-size=1024 /data/oceanbase
[2024-03-18 15:00:37.353] [DEBUG] — exited code 1, error output:
[2024-03-18 15:00:37.353] [DEBUG] WARNING: Your password has expired.
[2024-03-18 15:00:37.353] [DEBUG] Password change required but no TTY available.
[2024-03-18 15:00:37.353] [DEBUG]
[2024-03-18 15:00:37.353] [DEBUG] — obadmin@172.21.32.39 execute: df --block-size=1024 /data
[2024-03-18 15:00:37.394] [DEBUG] — exited code 1, error output:
[2024-03-18 15:00:37.394] [DEBUG] WARNING: Your password has expired.
[2024-03-18 15:00:37.394] [DEBUG] Password change required but no TTY available.
[2024-03-18 15:00:37.394] [DEBUG]
[2024-03-18 15:00:37.395] [ERROR] ocp-express-py_script_start_check-4.2.1 RuntimeError: ‘ip’
[2024-03-18 15:00:37.395] [ERROR] Traceback (most recent call last):
[2024-03-18 15:00:37.395] [ERROR] File “core.py”, line 2718, in restart_cluster
[2024-03-18 15:00:37.395] [ERROR] File “core.py”, line 2802, in _restart_cluster
[2024-03-18 15:00:37.395] [ERROR] File “core.py”, line 2098, in _start_cluster
[2024-03-18 15:00:37.395] [ERROR] File “core.py”, line 188, in call_plugin
[2024-03-18 15:00:37.395] [ERROR] File “_plugin.py”, line 347, in call
[2024-03-18 15:00:37.395] [ERROR] File “_plugin.py”, line 305, in _new_func
[2024-03-18 15:00:37.395] [ERROR] File “/root/.obd/plugins/ocp-express/4.2.1/start_check.py”, line 522, in start_check
[2024-03-18 15:00:37.395] [ERROR] stdio.warn(err.WC_OCP_EXPRESS_FAILED_TO_GET_DISK_INFO.format(ip))
[2024-03-18 15:00:37.395] [ERROR] File “_errno.py”, line 50, in format
[2024-03-18 15:00:37.395] [ERROR] KeyError: ‘ip’
[2024-03-18 15:00:37.395] [ERROR]
[2024-03-18 15:00:37.395] [DEBUG] – sub start_check ref count to 0
[2024-03-18 15:00:37.395] [DEBUG] – export start_check
[2024-03-18 15:00:37.395] [DEBUG] – ocp-express starting check failed.
[2024-03-18 15:00:37.395] [ERROR] OBD-1005: Some of the servers in the cluster have been stopped
[2024-03-18 15:00:37.398] [INFO] See OceanBase分布式数据库-海量数据 笔笔算数 .
[2024-03-18 15:00:37.398] [INFO] Trace ID: 3794c0e4-e4f5-11ee-bc1a-5254004f0171
[2024-03-18 15:00:37.398] [INFO] If you want to view detailed obd logs, please run: obd display-trace 3794c0e4-e4f5-11ee-bc1a-5254004f0171
[2024-03-18 15:00:37.500] [INFO] [ERROR] OBD-4300: 172.21.32.39: failed to query java version, you may not have java installed
[2024-03-18 15:00:37.501] [INFO] [ERROR] ocp-express-py_script_start_check-4.2.1 RuntimeError: ‘ip’
[2024-03-18 15:00:37.501] [INFO] [ERROR] OBD-1005: Some of the servers in the cluster have been stopped
[2024-03-18 15:00:37.501] [INFO] See OceanBase分布式数据库-海量数据 笔笔算数 .
[2024-03-18 15:00:37.501] [INFO] Trace ID: 3794c0e4-e4f5-11ee-bc1a-5254004f0171
[2024-03-18 15:00:37.501] [INFO] If you want to view detailed obd logs, please run: obd display-trace 3794c0e4-e4f5-11ee-bc1a-5254004f0171
[2024-03-18 15:00:37.501] [INFO]
[2024-03-18 15:00:37.501] [DEBUG] - unlock /root/.obd/lock/global
[2024-03-18 15:00:37.501] [DEBUG] - unlock /root/.obd/lock/deploy_pro_kungeek_oceanbase_cluster
[2024-03-18 15:00:37.501] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo