用源码编译部署oceanbase启动失败【observer program health check x】

【 使用环境 】测试环境
【 OB 】
【 使用版本 】v4.0
【问题描述】编译完ob后,部署启动遇到问题
【复现路径】问题出现前后相关操作

编译后,将二进制文件移到/usr/bin
cp /home/oceanbase/build_debug/src/observer/observer /usr/bin

加到本地镜像库里
obd mirror create -n oceanbase-ce -V 3.1.9 -p /usr

修改配置文件中的hash值,部署
obd cluster deploy test -c /home/obdeploy/example/mini-local-example.yaml

启动ob
obd cluster start test

输出如下
Get local repositories and plugins ok
Open ssh connection ok
Load cluster param plugin ok
Check before start observer ok
[WARN] (127.0.0.1) clog and data use the same disk (/)

Start observer ok
observer program health check x
[WARN] OBD-2002: Failed to start 127.0.0.1 observer
[ERROR] oceanbase-ce start failed

【问题现象及影响】
自己编译的ob启动不了
在之前的ob版本按照上述流程,且使用相同的配置文件,是可以启动的,更新4.0以后出现上述问题

后尝试调整 memory_limitsystem_memory 参数后还是存在上述问题

【附件】
对应的日志文件
log.zip (29.9 KB)

1 个赞

看observer 日志好像提示 __min_full_resource_pool_memory 超过了[1073741824,) 这个区间,268435456 这个值改大一点试试?我编译了最新代码,这个值设为 2147483648 启动成功了,供参考

[2022-11-10 18:51:17.999061] ERROR [SHARE] operator() (ob_common_config.cpp:128) [20728][][T0][Y0-0000000000000000-0-0] [lt=5] Invalid config, value out of [1073741824,) (for reference only). name=min_full_resource_pool_memory, value=268435456, ret=-4147 BACKTRACE:0xd01b225 0xd00b00d 0x33bd59d 0x33bce3e 0x33bca9c 0x33bc960 0xad7c63b 0xad4c762 0xad4bd48 0x5ccd187 0x5ccabea 0x33b8a0b 0x7fb7b244fc87 0x33b562a
[2022-11-10 18:51:17.999270] ERROR [SERVER] init_config (ob_server.cpp:1275) [20728][][T0][Y0-0000000000000000-0-0] [lt=204] invalid config from cmdline options(opts
.optstr
="__min_full_resource_pool_memory=268435456,memory_limit=6G,system_memory=3G,stack_size=512K,cpu_count=16,cache_wash_threshold=1G,workers_per_cpu_quota=10,schema_history_expire_time=1d,net_thread_count=4,sys_bkgd_migration_retry_num=3,minor_freeze_times=10,enable_separate_sys_clog=0,enable_merge_by_turn=False,datafile_disk_percentage=20,enable_syslog_wf=False,enable_syslog_recycle=True,max_syslog_file_count=4,ob_query_timeout=250000", ret=-4147, ret=“OB_INVALID_CONFIG”) BACKTRACE:0xd01b225 0xd00b00d 0x33c9bbd 0x33c94de 0x33c91da 0x33c8c68 0x5cea13f 0x5ccd1d1 0x5ccabea 0x33b8a0b 0x7fb7b244fc87 0x33b562a
[2022-11-10 18:51:17.999293] INFO [SERVER] init_config (ob_server.cpp:1295) [20728][][T0][Y0-0000000000000000-0-0] [lt=20] set CLUSTER_ID for rpc(cluster_id=1)
[2022-11-10 18:51:17.999299] INFO print (ob_server_config.cpp:185) [20728][][T0][Y0-0000000000000000-0-0] [lt=6] ===================== *begin server config report * =====================
[2022-11-10 18:51:17.999302] INFO print (ob_server_config.cpp:191) [20728][][T0][Y0-0000000000000000-0-0] [lt=2] | enable_cgroup = True
[2022-11-10 18:51:17.999305] INFO print (ob_server_config.cpp:191) [20728][][T0][Y0-0000000000000000-0-0] [lt=2] | _advance_checkpoint_timeout = 30m
[

1 个赞

谢谢,我去试一下