openai/codex · error · anyhow::Error
failed to read backfill state at {}: {err}
Error message
failed to read backfill state at {}: {err} What it means
Error "failed to read backfill state at {}: {err}" thrown in openai/codex.
Source
Thrown at codex-rs/rollout/src/state_db.rs:140
);
if let Err(err) = backfill_gate_result {
runtime.close().await;
return Err(err);
}
Ok(runtime)
}
async fn wait_for_backfill_gate(
runtime: &codex_state::StateRuntime,
codex_home: &Path,
default_model_provider_id: &str,
backfill_lease_seconds: Option<i64>,
) -> anyhow::Result<()> {
let wait_started = Instant::now();
let mut reported_wait = false;
loop {
let backfill_state = runtime.get_backfill_state().await.map_err(|err| {
anyhow::anyhow!(
"failed to read backfill state at {}: {err}",
codex_home.display()
)
})?;
if backfill_state.status == codex_state::BackfillStatus::Complete {
return Ok(());
}
if let Some(backfill_lease_seconds) = backfill_lease_seconds {
metadata::backfill_sessions_with_lease(
runtime,
codex_home,
default_model_provider_id,
backfill_lease_seconds,
)
.await;
} else {
metadata::backfill_sessions(runtime, codex_home, default_model_provider_id).await;View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/rollout/src/state_db.rs:140 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/61f1616b8917b975.
Report an issue: GitHub.