{"record":{"id":"e11aa6a2533dd1cd","repo":"coleam00/Archon","slug":"cannot-access-repository-at-repopath-err-cod-e11aa6","errorCode":null,"errorMessage":"Cannot access repository at ${repoPath}: ${err.code ?? err.message}. Check permissions and disk health.","messagePattern":"Cannot access repository at (.+?): (.+?)\\. Check permissions and disk health\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/src/forge/github/adapter.ts","lineNumber":694,"sourceCode":"   */\n  private async ensureRepoReady(\n    owner: string,\n    repo: string,\n    defaultBranch: string,\n    repoPath: string,\n    shouldSync: boolean\n  ): Promise<void> {\n    // Check if directory exists\n    let directoryExists = false;\n    try {\n      await access(repoPath);\n      directoryExists = true;\n    } catch (error) {\n      const err = error as NodeJS.ErrnoException;\n      if (err.code !== 'ENOENT') {\n        // Real error - permission denied, I/O failure, etc.\n        getLog().error({ repoPath, errorCode: err.code, err }, 'github.repo_path_access_failed');\n        throw new Error(\n          `Cannot access repository at ${repoPath}: ${err.code ?? err.message}. ` +\n            'Check permissions and disk health.'\n        );\n      }\n      // ENOENT means directory doesn't exist - we'll clone below\n    }\n\n    if (directoryExists) {\n      if (shouldSync) {\n        getLog().info({ repoPath, defaultBranch }, 'github.repo_syncing');\n        const syncResult = await syncRepository(toRepoPath(repoPath), toBranchName(defaultBranch));\n        if (!syncResult.ok) {\n          getLog().error(\n            { error: syncResult.error, repoPath, defaultBranch },\n            'github.repo_sync_failed'\n          );\n          throw new Error(\n            `Failed to sync repository to ${defaultBranch}. ` +","sourceCodeStart":676,"sourceCodeEnd":712,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/adapters/src/forge/github/adapter.ts#L676-L712","documentation":"Error \"Cannot access repository at ${repoPath}: ${err.code ?? err.message}. Check permissions and disk health.\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/adapters/src/forge/github/adapter.ts:694 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":"0773b9745896ef0612e709c80845a0f7db315b19","analyzedAt":"2026-09-01T02:28:07.064Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}