coleam00/Archon · error

Cannot access repository at ${repoPath}: ${err.code ?? err.m

Error message

Cannot access repository at ${repoPath}: ${err.code ?? err.message}. Check permissions and disk health.

What it means

Error "Cannot access repository at ${repoPath}: ${err.code ?? err.message}. Check permissions and disk health." thrown in coleam00/Archon.

Source

Thrown at packages/adapters/src/forge/github/adapter.ts:694

   */
  private async ensureRepoReady(
    owner: string,
    repo: string,
    defaultBranch: string,
    repoPath: string,
    shouldSync: boolean
  ): Promise<void> {
    // Check if directory exists
    let directoryExists = false;
    try {
      await access(repoPath);
      directoryExists = true;
    } catch (error) {
      const err = error as NodeJS.ErrnoException;
      if (err.code !== 'ENOENT') {
        // Real error - permission denied, I/O failure, etc.
        getLog().error({ repoPath, errorCode: err.code, err }, 'github.repo_path_access_failed');
        throw new Error(
          `Cannot access repository at ${repoPath}: ${err.code ?? err.message}. ` +
            'Check permissions and disk health.'
        );
      }
      // ENOENT means directory doesn't exist - we'll clone below
    }

    if (directoryExists) {
      if (shouldSync) {
        getLog().info({ repoPath, defaultBranch }, 'github.repo_syncing');
        const syncResult = await syncRepository(toRepoPath(repoPath), toBranchName(defaultBranch));
        if (!syncResult.ok) {
          getLog().error(
            { error: syncResult.error, repoPath, defaultBranch },
            'github.repo_sync_failed'
          );
          throw new Error(
            `Failed to sync repository to ${defaultBranch}. ` +

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/adapters/src/forge/github/adapter.ts:694 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coleam00/Archon@0773b97458 (2026-09-01). Data as JSON: /api/errors/e11aa6a2533dd1cd. Report an issue: GitHub.