【 使用环境 】 测试环境
【 OB or 其他组件 】
【 使用版本 】4.3.3
【问题描述】使用observer启动服务,启动不起来
【复现路径】
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
使用命令如下:./bin/observer -o cluster_id=1,datafile_size=10G,memory_limit=8G,cache_wash_threshold=1G,__min_full_resource_pool_memory=268435456,system_memory=4G,stack_size=1536K,net_thread_count=4,cpu_quota_concurrency=2 -z zone1 -d /home/admin/oceanbase/store -i ens32 -r ‘172.16.1.69:2882:2881’ -c 1 -n obdemo
输出日志如下:
[2024-10-16 19:16:13.183745] INFO [SHARE] operator() (ob_common_config.cpp:371) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=9] Load config succ(name=“memory_limit”, value=“8G”)
[2024-10-16 19:16:13.183756] INFO [SHARE] operator() (ob_common_config.cpp:371) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=7] Load config succ(name=“cache_wash_threshold”, value=“1G”)
[2024-10-16 19:16:13.183765] EDIAG [SHARE] operator() (ob_common_config.cpp:367) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=5][errcode=-4147] Invalid config, value out of [1073741824,) (for reference only). name=min_full_resource_pool_memory, value=268435456, ret=-4147 BACKTRACE:0x73af4f5 0x72912a5 0x72bdc9a 0x72bd714 0x72bd645 0x16ed7f97 0x16e8edeb 0x16e8e538 0xea233e0 0xea18126 0xade20ac 0x7f29eff7db27 0x76c007e
[2024-10-16 19:16:13.183850] EDIAG [SERVER] init_opts_config (ob_server.cpp:2161) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=76][errcode=-4147] invalid config from cmdline options(opts.optstr="memory_limit=8G,cache_wash_threshold=1G,_min_full_resource_pool_memory=268435456,system_memory=1G,memory_chunk_cache_size=128M,cpu_count=16,net_thread_count=4,datafile_size=10G,stack_size=1536K", ret=-4147, ret=“OB_INVALID_CONFIG”) BACKTRACE:0x73af4f5 0x72912a5 0x734f52e 0x734eff6 0x734ef2c 0x734ee42 0xea53511 0xea250b1 0xea18126 0xade20ac 0x7f29eff7db27 0x76c007e
[2024-10-16 19:16:13.183898] INFO [SERVER] init_opts_config (ob_server.cpp:2181) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=45] set CLUSTER_ID for rpc(cluster_id=1)
[2024-10-16 19:16:13.183905] EDIAG [SERVER] init_config (ob_server.cpp:2070) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=6][errcode=-4147] init opts config failed(ret=-4147, ret=“OB_INVALID_CONFIG”) BACKTRACE:0x73af4f5 0x72912a5 0x732b3e3 0x732ae86 0x732adc0 0x732abe7 0xea528ba 0xea249f9 0xea18126 0xade20ac 0x7f29eff7db27 0x76c007e
[2024-10-16 19:16:13.183939] EDIAG [SERVER] init (ob_server.cpp:293) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=33][errcode=-4147] init config failed(ret=-4147, ret=“OB_INVALID_CONFIG”) BACKTRACE:0x73af4f5 0x72912a5 0x732b3e3 0x732ae86 0x732adc0 0x732abe7 0xea26418 0xea1a794 0xade20ac 0x7f29eff7db27 0x76c007e
[2024-10-16 19:16:13.183960] WDIAG [STORAGE.TRANS] getClock (ob_clock_generator.h:69) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=16][errcode=-4006] clock generator not inited
[2024-10-16 19:16:13.183994] INFO [SERVER] init (ob_server.cpp:299) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=25] [server_start 1/18] observer init begin.
[2024-10-16 19:16:13.184001] INFO [LIB] set_param (achunk_mgr.cpp:42) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=6] set large page param(large_page_type=0)
[2024-10-16 19:16:13.184010] EDIAG [SERVER] init (ob_server.cpp:589) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=5][errcode=-4147] [OBSERVER_NOTICE] fail to init observer(ret=-4147, ret=“OB_INVALID_CONFIG”) BACKTRACE:0x73af4f5 0x72912a5 0x732b3e3 0x732ae86 0x732adc0 0x732abe7 0xea2d3a6 0xea1d2b1 0xade20ac 0x7f29eff7db27 0x76c007e
[2024-10-16 19:16:13.184039] ERROR [SERVER] init (ob_server.cpp:593) [70704][observer][T0][Y0-0000000000000001-0-0] [lt=9][errcode=-4147] [server_start 2/18] observer init fail. you may find solutions in previous error logs or seek help from official technicians.
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!