odb部署一直启动失败

用odb start 启动失败,一直卡在oceanbase bootstrap,[2025-05-21 10:07:22.172372] ERROR [BOOTSTRAP] prepare_bootstrap (ob_bootstrap.cpp:260) [3899773][T1_L0_G0][T1][YB42AC120A3F-0006359B2505CEB4-0-0] [lt=7][errcode=-4122] bootstrap prepare fail. you may find solutions in previous error logs or seek help from official technicians.

2 个赞

麻烦提供一份observer日志,并使用obdiag分析下日志

在线分析最近一小时的日志,诊断出出现过的错误

obdiag analyze log --since 1h

1 个赞

执行你给的命令,
[ERROR] The option you provided with -c: /root/.obdiag/config.yml is not exist.

[2025-05-21 11:18:30.256260] INFO [SERVER] sleep_before_local_retry (ob_query_retry_ctrl.cpp:100) [3930350][T1_FrzInfoDet][T1][YB427F000001-0006359CC55F1946-0-0] [lt=0] already timeout, do not need sleep(sleep_us=-2173, remain_us=-2173, base_sleep_us=1000, retry_sleep_type=1, v.stmt_retry_times_=77, timeout_timestamp=1747797510254087)
[2025-05-21 11:18:30.256273] INFO [SQL.EXE] end_stmt (ob_sql_trans_control.cpp:1531) [3930350][T1_FrzInfoDet][T1][YB427F000001-0006359CC55F1946-0-0] [lt=0] end stmt(ret=0, tx_id=0, plain_select=true, stmt_type=1, savepoint=0, tx_desc={this:0x7ff7e0e2b0c0, tx_id:{txid:0}, state:1, addr:“127.0.0.1:2882”, tenant_id:1, session_id:3221489646, assoc_session_id:3221489646, client_sid:3221489646, xid:NULL, xa_mode:"", xa_start_addr:“0.0.0.0:0”, access_mode:-1, tx_consistency_type:0, isolation:-1, snapshot_version:{val:18446744073709551615, v:3}, snapshot_scn:0, active_scn:0, op_sn:1, alloc_ts:1747797510253567, active_ts:-1, commit_ts:-1, finish_ts:-1, timeout_us:-1, lock_timeout_us:-1, expire_ts:9223372036854775807, coord_id:{id:-1}, parts:[], exec_info_reap_ts:0, commit_version:{val:18446744073709551615, v:3}, commit_times:0, commit_cb:null, cluster_id:-1, cluster_version:17180067074, seq_base:1747797510253568, flags_.SHADOW:true, flags_.INTERRUPTED:false, flags_.BLOCK:false, flags_.REPLICA:false, conflict_txs:[], abort_cause:0, commit_expire_ts:-1, commit_task_.is_registered():false, modified_tables:[], last_rc_snapshot_version:{val:0, v:0}, ref:1}, trans_result={incomplete:false, parts:[], touched_ls_list:[], conflict_txs:[]}, rollback=true, need_rollback=true, session={this:0x7ff7e6f401f8, id:3221489646, deser:false, tenant:“sys”, tenant_id:1, effective_tenant:“sys”, effective_tenant_id:1, database:“oceanbase”, user:“root@%”, consistency_level:3, session_state:2, autocommit:true, tx:0x7ff7e0e2b0c0}, exec_ctx.get_errcode()=-4725)

2 个赞

提供一份observer日志 ~/xxx/oceanbase/log,yalm文件~/.obd/cluster/xxx/,obd日志~/.obd/log

2 个赞

可以试试

1 个赞

一、已有残留数据

如果之前曾经运行过 bootstrap,但未成功或未清理干净,系统可能检测到已有数据,导致再次 bootstrap 失败。

解决办法:

停止所有 observer 实例:

odb stop

清理数据目录(请注意备份数据,执行此操作会清除所有存储内容):

odb clean --all

重新执行:

odb start

1 个赞

已经贴出

1 个赞