oceanBase 在 ft2000/4 上部署失败

【 使用环境 】测试环境
【 OB or 其他组件 】OB
【 使用版本 】4.3.1.0
【问题描述】 在使用 obd web 一键部署的时候 启动Start observer 失败 报[ERROR] OBD-2002: Failed to start 192.168.110.200 observer: bash:行 1: 78982 非法指令 (核心已转储)/root/myoceanbase/oceanbase/bin/observer -r ‘192.168.110.200:2882:2881’ -p 2881 -P 2882 -z ‘zone1’ -n ‘myoceanbase’ -c 1720492262 -d ‘/root/myoceanbase/oceanbase/store’ -I ‘192.168.110.200’ -o __min_full_resource_pool_memory=2147483648,enable_syslog_recycle=True,enable_syslog_wf=False,max_syslog_file_count=4,memory_limit=‘12299M’,datafile_size=‘36897M’,system_memory=‘3072M’,log_disk_size=‘30753M’,cpu_count=16,datafile_maxsize=‘850G’,datafile_next=‘87044M’

【SOP系列 22 】——故障诊断第一步(自助诊断和诊断信息收集)

3 个赞

obd日志麻烦贴出来一份

3 个赞

OBD-2002: Failed to start 192.168.110.200 observer: bash:行 1: 117662 非法指令 (核心已转储)/root/myoceanbase/oceanbase/bin/observer -r ‘192.168.110.200:2882:2881’ -p 2881 -P 2882 -z ‘zone1’ -n ‘myoceanbase’ -c 1720492262 -d ‘/root/myoceanbase/oceanbase/store’ -I ‘192.168.110.200’ -o __min_full_resource_pool_memory=2147483648,enable_syslog_recycle=True,enable_syslog_wf=False,max_syslog_file_count=4,memory_limit=‘12299M’,datafile_size=‘36897M’,system_memory=‘3072M’,log_disk_size=‘30753M’,cpu_count=16,datafile_maxsize=‘850G’,datafile_next=‘87044M’

3 个赞

image
obd日志显示clog目录缺失东西,是不是误操作删掉了什么

3 个赞

我这边没有删东西,这个问题我遇到了好几次,这个是新装的系统直接用 oba 安装的,用过欧拉,uos

3 个赞

还有在 arm 的 docker 环境下也启动不起来,包 shell exec fromat 错误

3 个赞

把上面贴的日志删了 没脱敏

3 个赞

你看下ls xx/xx/xx/tenant_1手动执行 应该没有这个目录,看下是不是/root/目录磁盘空间不够,可以尝试重新部署 obd demo --home-path=xxxx 指定路径

3 个赞

好的我试试,需要多少空间,我/目录是 900G 的

3 个赞

这个还是不行 下面是日志

[2024-07-10 09:23:53.127] [DEBUG] – root@127.0.0.1 set env LD_LIBRARY_PATH to ‘/root/myoceanBase/oceanbase-ce/lib:’
[2024-07-10 09:23:53.128] [DEBUG] – local execute: cd /root/myoceanBase/oceanbase-ce; /root/myoceanBase/oceanbase-ce/bin/observer -r ‘127.0.0.1:2882:2881’ -p 2881 -P 2882 -z ‘zone1’ -c 1720574622 -d ‘/root/myoceanBase/oceanbase-ce/store’ -I ‘127.0.0.1’ -o __min_full_resource_pool_memory=1073741824,enable_syslog_recycle=True,enable_syslog_wf=False,max_syslog_file_count=4,memory_limit=‘6144M’,system_memory=‘1024M’,cpu_count=16,datafile_size=‘2048M’,datafile_maxsize=‘8192M’,datafile_next=‘2048M’,log_disk_size=‘14336M’
[2024-07-10 09:23:53.241] [DEBUG] – exited code -4, error output:
[2024-07-10 09:23:53.241] [DEBUG]
[2024-07-10 09:23:53.242] [DEBUG] – root@127.0.0.1 delete env LD_LIBRARY_PATH
[2024-07-10 09:23:53.372] [ERROR] OBD-2002: Failed to start 127.0.0.1 observer:
[2024-07-10 09:23:53.372] [DEBUG] - sub start ref count to 0
[2024-07-10 09:23:53.373] [DEBUG] - export start
[2024-07-10 09:23:53.373] [ERROR] oceanbase-ce start failed
[2024-07-10 09:23:53.377] [INFO] See OceanBase分布式数据库-海量数据 笔笔算数 .
[2024-07-10 09:23:53.377] [INFO] Trace ID: f8ac7ac4-3e5a-11ef-9062-300d9e295440
[2024-07-10 09:23:53.377] [INFO] If you want to view detailed obd logs, please run: obd display-trace f8ac7ac4-3e5a-11ef-9062-300d9e295440

3 个赞

麻烦贴一下obd的详细日志

很长复制不下来

[2024-07-10 09:23:52.441] [DEBUG] – local execute: date +%s%N
[2024-07-10 09:23:52.447] [DEBUG] – exited code 0
[2024-07-10 09:23:52.448] [DEBUG] – 127.0.0.1 time delta -0.72021484375
[2024-07-10 09:23:52.550] [INFO] [WARN] OBD-1011: (127.0.0.1) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[2024-07-10 09:23:52.550] [INFO] [WARN] OBD-1007: (127.0.0.1) The recommended number of open files is 655350 (Current value: 20000)
[2024-07-10 09:23:52.551] [INFO] [WARN] OBD-1007: (127.0.0.1) The recommended number of max user processes is 655350 (Current value: 120000)
[2024-07-10 09:23:52.551] [INFO] [WARN] OBD-1007: (127.0.0.1) The recommended number of core file size is unlimited (Current value: 0)
[2024-07-10 09:23:52.551] [INFO] [WARN] OBD-1007: (127.0.0.1) The recommended number of stack size is unlimited (Current value: 8192)
[2024-07-10 09:23:52.551] [INFO] [WARN] OBD-1017: (127.0.0.1) The value of the “vm.max_map_count” must be within [327600, 1310720] (Current value: 65530, Recommended value: 655360)
[2024-07-10 09:23:52.551] [INFO] [WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/)
[2024-07-10 09:23:52.551] [INFO]
[2024-07-10 09:23:52.552] [DEBUG] - sub start_check ref count to 0
[2024-07-10 09:23:52.552] [DEBUG] - export start_check
[2024-07-10 09:23:52.552] [DEBUG] - Call obagent-py_script_start_check-1.3.0 for obagent-4.2.2-100000042024011120.el8-d8172a2bf3811219777124490558bf800dffef87
[2024-07-10 09:23:52.552] [DEBUG] - import start_check
[2024-07-10 09:23:52.556] [DEBUG] - add start_check ref count to 1
[2024-07-10 09:23:52.557] [INFO] Check before start obagent
[2024-07-10 09:23:52.562] [DEBUG] – local execute: cat /root/myoceanBase/obagent/run/ob_agentd.pid
[2024-07-10 09:23:52.568] [DEBUG] – exited code 1, error output:
[2024-07-10 09:23:52.568] [DEBUG] cat: /root/myoceanBase/obagent/run/ob_agentd.pid: 没有那个文件或目录
[2024-07-10 09:23:52.568] [DEBUG]
[2024-07-10 09:23:52.569] [DEBUG] – 127.0.0.1 port check
[2024-07-10 09:23:52.569] [DEBUG] – local execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:1F99’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-07-10 09:23:52.579] [DEBUG] – exited code 0
[2024-07-10 09:23:52.580] [DEBUG] – local execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:1F98’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-07-10 09:23:52.591] [DEBUG] – exited code 0
[2024-07-10 09:23:52.693] [DEBUG] - sub start_check ref count to 0
[2024-07-10 09:23:52.693] [DEBUG] - export start_check
[2024-07-10 09:23:52.693] [DEBUG] - Call obproxy-ce-py_script_start_check-4.2.3 for obproxy-ce-4.2.3.0-3.el8-2724edc3c9c4693fab71d53b52b82b98ceacdf70
[2024-07-10 09:23:52.693] [DEBUG] - import start_check
[2024-07-10 09:23:52.697] [DEBUG] - add start_check ref count to 1
[2024-07-10 09:23:52.697] [INFO] Check before start obproxy
[2024-07-10 09:23:52.699] [DEBUG] – local execute: cat /root/myoceanBase/obproxy-ce/run/obproxy-127.0.0.1-2883.pid
[2024-07-10 09:23:52.705] [DEBUG] – exited code 1, error output:
[2024-07-10 09:23:52.705] [DEBUG] cat: /root/myoceanBase/obproxy-ce/run/obproxy-127.0.0.1-2883.pid: 没有那个文件或目录
[2024-07-10 09:23:52.705] [DEBUG]
[2024-07-10 09:23:52.706] [DEBUG] – 127.0.0.1 port check
[2024-07-10 09:23:52.706] [DEBUG] – local execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:0B43’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-07-10 09:23:52.718] [DEBUG] – exited code 0
[2024-07-10 09:23:52.718] [DEBUG] – local execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:0B44’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-07-10 09:23:52.730] [DEBUG] – exited code 0
[2024-07-10 09:23:52.830] [DEBUG] - sub start_check ref count to 0
[2024-07-10 09:23:52.830] [DEBUG] - export start_check
[2024-07-10 09:23:52.830] [DEBUG] - Call prometheus-py_script_start_check-2.37.1 for prometheus-2.37.1-10000102022110211.el8-4a792690cbac9b440e3ed052dd59a8b103e6bba1
[2024-07-10 09:23:52.830] [DEBUG] - import start_check
[2024-07-10 09:23:52.833] [DEBUG] - add start_check ref count to 1
[2024-07-10 09:23:52.835] [INFO] Check before start prometheus
[2024-07-10 09:23:52.836] [DEBUG] – local execute: cat /root/myoceanBase/prometheus/run/prometheus.pid
[2024-07-10 09:23:52.842] [DEBUG] – exited code 1, error output:
[2024-07-10 09:23:52.842] [DEBUG] cat: /root/myoceanBase/prometheus/run/prometheus.pid: 没有那个文件或目录
[2024-07-10 09:23:52.842] [DEBUG]
[2024-07-10 09:23:52.842] [DEBUG] – 127.0.0.1 port check
[2024-07-10 09:23:52.843] [DEBUG] – local execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:2382’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-07-10 09:23:52.854] [DEBUG] – exited code 0
[2024-07-10 09:23:52.967] [DEBUG] - sub start_check ref count to 0
[2024-07-10 09:23:52.967] [DEBUG] - export start_check
[2024-07-10 09:23:52.967] [DEBUG] - Call grafana-py_script_start_check-7.5.17 for grafana-7.5.17-1-5129b0134e31d273c970a7e3c7370990016bee16
[2024-07-10 09:23:52.967] [DEBUG] - import start_check
[2024-07-10 09:23:52.970] [DEBUG] - add start_check ref count to 1
[2024-07-10 09:23:52.971] [INFO] Check before start grafana
[2024-07-10 09:23:52.972] [DEBUG] – local execute: cat /root/myoceanBase/grafana/run/grafana.pid
[2024-07-10 09:23:52.978] [DEBUG] – exited code 1, error output:
[2024-07-10 09:23:52.979] [DEBUG] cat: /root/myoceanBase/grafana/run/grafana.pid: 没有那个文件或目录
[2024-07-10 09:23:52.979] [DEBUG]
[2024-07-10 09:23:52.979] [DEBUG] – 127.0.0.1 port check
[2024-07-10 09:23:52.979] [DEBUG] – local execute: bash -c ‘cat /proc/net/{udp*,tcp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:0BB8’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-07-10 09:23:52.991] [DEBUG] – exited code 0
[2024-07-10 09:23:53.103] [DEBUG] - sub start_check ref count to 0
[2024-07-10 09:23:53.103] [DEBUG] - export start_check
[2024-07-10 09:23:53.104] [DEBUG] - Call oceanbase-ce-py_script_start-4.3.0.0 for oceanbase-ce-4.3.1.0-100000032024051615.el8-0bf8482d42cd4f9fbda08421efe20b3579aec637
[2024-07-10 09:23:53.104] [DEBUG] - import start
[2024-07-10 09:23:53.109] [DEBUG] - add start ref count to 1
[2024-07-10 09:23:53.109] [INFO] Start observer
[2024-07-10 09:23:53.110] [DEBUG] – local execute: ls /root/myoceanBase/oceanbase-ce/store/clog/tenant_1/
[2024-07-10 09:23:53.119] [DEBUG] – exited code 2, error output:
[2024-07-10 09:23:53.119] [DEBUG] ls: 无法访问 ‘/root/myoceanBase/oceanbase-ce/store/clog/tenant_1/’: 没有那个文件或目录
[2024-07-10 09:23:53.119] [DEBUG]
[2024-07-10 09:23:53.119] [DEBUG] – local execute: cat /root/myoceanBase/oceanbase-ce/run/observer.pid
[2024-07-10 09:23:53.126] [DEBUG] – exited code 1, error output:
[2024-07-10 09:23:53.126] [DEBUG] cat: /root/myoceanBase/oceanbase-ce/run/observer.pid: 没有那个文件或目录
[2024-07-10 09:23:53.126] [DEBUG]
[2024-07-10 09:23:53.126] [DEBUG] – 127.0.0.1 start command construction
[2024-07-10 09:23:53.127] [DEBUG] – starting 127.0.0.1 observer
[2024-07-10 09:23:53.127] [DEBUG] – root@127.0.0.1 set env LD_LIBRARY_PATH to ‘/root/myoceanBase/oceanbase-ce/lib:’
[2024-07-10 09:23:53.128] [DEBUG] – local execute: cd /root/myoceanBase/oceanbase-ce; /root/myoceanBase/oceanbase-ce/bin/observer -r ‘127.0.0.1:2882:2881’ -p 2881 -P 2882 -z ‘zone1’ -c 1720574622 -d ‘/root/myoceanBase/oceanbase-ce/store’ -I ‘127.0.0.1’ -o __min_full_resource_pool_memory=1073741824,enable_syslog_recycle=True,enable_syslog_wf=False,max_syslog_file_count=4,memory_limit=‘6144M’,system_memory=‘1024M’,cpu_count=16,datafile_size=‘2048M’,datafile_maxsize=‘8192M’,datafile_next=‘2048M’,log_disk_size=‘14336M’
[2024-07-10 09:23:53.241] [DEBUG] – exited code -4, error output:
[2024-07-10 09:23:53.241] [DEBUG]
[2024-07-10 09:23:53.242] [DEBUG] – root@127.0.0.1 delete env LD_LIBRARY_PATH
[2024-07-10 09:23:53.372] [ERROR] OBD-2002: Failed to start 127.0.0.1 observer:
[2024-07-10 09:23:53.372] [DEBUG] - sub start ref count to 0
[2024-07-10 09:23:53.373] [DEBUG] - export start
[2024-07-10 09:23:53.373] [ERROR] oceanbase-ce start failed
[2024-07-10 09:23:53.377] [INFO] See OceanBase分布式数据库-海量数据 笔笔算数 .
[2024-07-10 09:23:53.377] [INFO] Trace ID: f8ac7ac4-3e5a-11ef-9062-300d9e295440
[2024-07-10 09:23:53.377] [INFO] If you want to view detailed obd logs, please run: obd display-trace f8ac7ac4-3e5a-11ef-9062-300d9e295440

手动起一下observer试试呢
#cd /root/myoceanBase/oceanbase-ce
#./bin/observer

[root@localhost oceanbase-ce]# ./bin/observer
非法指令 (核心已转储)
[root@localhost oceanbase-ce]#

如果是依赖问题,可以添加环境变量解决
echo ‘export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/admin/oceanbase/lib/’ >> ~/.bash_profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/admin/oceanbase/lib/

请问,问题目前是否还存在

好的我回来试下


不行

1 个赞

是不是和 arm 指令集有关系
armv7或者 v8的缘故