{"record":{"id":"c58ea13e945db70a","repo":"xai-org/grok-build","slug":"msg-not-falling-back-to-copy","errorCode":null,"errorMessage":"{msg}; not falling back to copy","messagePattern":"(.+?); not falling back to copy","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-fast-worktree/src/nfs/mod.rs","lineNumber":207,"sourceCode":"                worktree_path: adopted.dest,\n                commit,\n                copy_stats: CopyStats::default(),\n                ignored_stats: None,\n                dirty_files_report: None,\n                resolved_strategy: grove_resolved_strategy(&adopted.transport),\n                strategy_metadata: Some(metadata),\n            }))\n        }\n        Ok(NfsCreateDecision::Fallback) => Ok(None),\n        Err(NfsTryError::StorageFull) => {\n            let err = std::io::Error::from(std::io::ErrorKind::StorageFull);\n            Err(anyhow::Error::new(err).context(OUT_OF_DISK_CONTEXT))\n        }\n        Err(NfsTryError::InFlight { phase }) => Err(anyhow::anyhow!(\n            \"nfs worktree create still in progress (phase={phase}); not falling back to copy\"\n        )),\n        Err(NfsTryError::IdentityConflict(msg)) => {\n            Err(anyhow::anyhow!(\"{msg}; not falling back to copy\"))\n        }\n        Err(NfsTryError::Other(e)) => Err(e).context(\"nfs worktree create failed\"),\n    }\n}\n/// Adopt succeeded but dest HEAD is unreadable. Tear the mount down so dest\n/// is not left projected with no worktrees.db row. Copy-fallback only when\n/// dest is known unmounted.\nfn teardown_after_failed_head_read(\n    client: &NfsWorktreeClient,\n    dest: &Path,\n    head_err: anyhow::Error,\n) -> Result<Option<CreateWorktreeResult>> {\n    if let Err(rm) = client.remove_worktree(dest, true) {\n        tracing::warn!(\n            error = %rm,\n            dest = %dest.display(),\n            \"grove remove after failed HEAD read\"\n        );","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-fast-worktree/src/nfs/mod.rs#L189-L225","documentation":"Error \"{msg}; not falling back to copy\" thrown in xai-org/grok-build.","triggerScenarios":"Thrown at crates/codegen/xai-fast-worktree/src/nfs/mod.rs:207 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":"bc7f02eddd3d84085849dc19ed216f11c23b0571","analyzedAt":"2026-08-31T04:59:42.031Z","schemaVersion":2},"datasetVersion":"2026-08-31T09:17:48.483Z"}