{"record":{"id":"ba5d236d61cb82b9","repo":"openai/codex","slug":"timed-out-after-acquire-timeout-waiting-for-oa","errorCode":null,"errorMessage":"timed out after {acquire_timeout:?} waiting for OAuth refresh lock {}","messagePattern":"timed out after (.+?) waiting for OAuth refresh lock (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/rmcp-client/src/oauth/refresh_lock.rs","lineNumber":91,"sourceCode":"                    Ok(()) => return Ok(()),\n                    Err(std::fs::TryLockError::WouldBlock) => {\n                        if !reported_contention {\n                            tracing::debug!(\n                                target: LOCK_CONTENTION_EVENT_TARGET,\n                                lock_path = %path.display(),\n                                \"waiting for another process to finish refreshing MCP OAuth credentials\"\n                            );\n                            reported_contention = true;\n                        }\n                        sleep(REFRESH_LOCK_RETRY_SLEEP).await;\n                    }\n                    Err(error) => return Err(std::io::Error::from(error)),\n                }\n            }\n        })\n        .await\n        .map_err(|_| {\n            anyhow!(\n                \"timed out after {acquire_timeout:?} waiting for OAuth refresh lock {}\",\n                path.display()\n            )\n        })?\n        .with_context(|| format!(\"failed to lock OAuth refresh lock {}\", path.display()))?;\n\n        Ok(Self { _file: file })\n    }\n}\n\n#[cfg(test)]\n#[path = \"refresh_lock_tests.rs\"]\nmod tests;\n","sourceCodeStart":73,"sourceCodeEnd":105,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rmcp-client/src/oauth/refresh_lock.rs#L73-L105","documentation":"Error \"timed out after {acquire_timeout:?} waiting for OAuth refresh lock {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/rmcp-client/src/oauth/refresh_lock.rs:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}