社区版observer启动失败-报错:failed to connect to oceanbase-ce

【 使用环境 】测试环境
【 OB or 其他组件 】observer社区版
【 使用版本 】
【问题描述】清晰明确描述问题
该环境服务器宕机后启动社区版observer失败
【复现路径】问题出现前后相关操作
问题后操作:


排查日志符合异常宕机信息:
[2026-12-02 13:56:58.983334] INFO destroy_tg (thread_mgr.cpp:91) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] destroy tg(tg_id=136, tg=0x7f4e15714030, tg->attr_={name:TTLTabletMgr, type:3})
[2026-12-02 13:56:58.983339] INFO destroy_tg (thread_mgr.cpp:91) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] destroy tg(tg_id=137, tg=0x7f4e157141a0, tg->attr_={name:TntSharedTimer, type:3})
[2026-12-02 13:56:58.983745] INFO [SERVER] destroy (ob_server.cpp:530) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] [OBSERVER_NOTICE] destroy observer begin
[2026-12-02 13:56:58.983753] INFO [SERVER] destroy (ob_server.cpp:532) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=8] begin to destroy config manager
[2026-12-02 13:56:58.983756] INFO [SERVER] destroy (ob_server.cpp:534) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] destroy config manager success
[2026-12-02 13:56:58.983761] WDIAG [CLOG] destroy (ob_server_log_block_mgr.cpp:125) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3][errcode=0] ObServerLogBlockMgr destroy(this={dir::"", dir_fd:-1, meta_fd:-1, log_pool_meta:{curr_total_size:0, next_total_size:0, status:0}, min_block_id:0, max_block_id:0, min_log_disk_size_for_all_tenants_:0, is_inited:false})
[2026-12-02 13:56:58.984083] INFO [STORAGE.TRANS] destroy (ob_weak_read_service.cpp:54) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=11] [WRS] weak read service begin destroy
[2026-12-02 13:56:58.984089] INFO [STORAGE.TRANS] destroy (ob_weak_read_service.cpp:60) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=6] [WRS] weak read service destroy succ
[2026-12-02 13:56:58.984097] INFO [SERVER] stop (ob_tablet_table_updater.cpp:216) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] stop ObTabletTableUpdater success
[2026-12-02 13:56:58.984101] INFO [SERVER] wait (ob_tablet_table_updater.cpp:224) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] wait ObTabletTableUpdater
[2026-12-02 13:56:58.984838] INFO [SHARE.LOCATION] destroy (ob_tablet_location_refresh_service.cpp:333) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] [REFRESH_TABLET_LOCATION] destroy service begin
[2026-12-02 13:56:58.984850] INFO [SHARE.LOCATION] stop (ob_tablet_location_refresh_service.cpp:317) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=11] [REFRESH_TABLET_LOCATION] stop service begin
[2026-12-02 13:56:58.984856] INFO [SHARE.LOCATION] stop (ob_tablet_location_refresh_service.cpp:320) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] [REFRESH_TABLET_LOCATION] stop service end
[2026-12-02 13:56:58.984860] INFO [SHARE.LOCATION] wait (ob_tablet_location_refresh_service.cpp:325) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] [REFRESH_TABLET_LOCATION] wait service begin
[2026-12-02 13:56:58.984865] INFO [SHARE.LOCATION] wait (ob_tablet_location_refresh_service.cpp:328) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] [REFRESH_TABLET_LOCATION] wait service end
[2026-12-02 13:56:58.984868] INFO [SHARE.LOCATION] destroy (ob_tablet_location_refresh_service.cpp:352) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] [REFRESH_TABLET_LOCATION] destroy service end
[2026-12-02 13:56:58.985280] WDIAG ~ObConfigManager (ob_config_manager.cpp:34) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3][errcode=-4016] null tg(lib::TGDefIDs::CONFIG_MGR=119)
[2026-12-02 13:56:58.985288] WDIAG ~ObConfigManager (ob_config_manager.cpp:35) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=8][errcode=-4016] null tg(lib::TGDefIDs::CONFIG_MGR=119)
[2026-12-02 13:56:58.985752] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.985761] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=8] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.985765] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.985769] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.985773] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.985777] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.985780] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.985784] INFO [RPC] ~ObBatchRpcBase (ob_batch_rpc.h:387) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3] ObBatchRpcBase destroy finished
[2026-12-02 13:56:58.986339] WDIAG [STORAGE.TRANS] stop (ob_time_wheel.cpp:427) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3][errcode=0] ObTimeWheel is not inited
[2026-12-02 13:56:58.986344] WDIAG [STORAGE.TRANS] wait (ob_time_wheel.cpp:450) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4][errcode=0] ObTimeWheel is not inited
[2026-12-02 13:56:58.986406] WDIAG begin (ob_hashtable.h:914) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=3][errcode=-4006] hashtable not init, backtrace=0x125fd785 0x117da36c 0x115d12d7 0xfc6d5b6 0x7f4e161f6831 0x7f4e161f692a 0x7f4e161e057e 0x5329d6e
[2026-12-02 13:56:58.986435] WDIAG begin (ob_hashtable.h:914) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=15][errcode=-4006] hashtable not init, backtrace=0x125fd785 0x117da36c 0x115d12d7 0x115d0f19 0xfc6d685 0x7f4e161f6831 0x7f4e161f692a 0x7f4e161e057e 0x5329d6e
[2026-12-02 13:56:58.986449] WDIAG [COMMON] deregister_cache (ob_kv_storecache.cpp:645) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=4][errcode=-4006] The ObKVGlobalCache has not been inited, (ret=-4006)
[2026-12-02 13:56:58.989994] WDIAG [STORAGE.TRANS] stop (ob_time_wheel.cpp:427) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=6][errcode=0] ObTimeWheel is not inited
[2026-12-02 13:56:58.990039] WDIAG [STORAGE.TRANS] wait (ob_time_wheel.cpp:450) [1418395][observer][T0][Y0-0000000000000000-0-0] [lt=44][errcode=0] ObTimeWheel is not inited
完整日志见下:

【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):

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

【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!

没有找到官网ai提示的对应文件,当前没有obsever进程


搭建的ob版本是哪一个 执行一下这个日志 发一下 把启动时候的observer.log发一下

版本:4.2.1
诊断信息见下:

日志见下
observer.rar (2.7 MB)


这个执行一下 划红线的 看着状态在运行 没有问题了么?

日志信息是clog 日志块损坏导致 observer 启动失败,错误码 OB_INVALID_DATA (-4070)

请问这种是否只能重新部署解决?是否有其他解决方案

单副本 只能重新部署了 如果是多副本的情况下 还可以解决

感谢支持。