coleam00/Archon · error

Failed to sync repository to ${defaultBranch}. Try /reset or

Error message

Failed to sync repository to ${defaultBranch}. Try /reset or check if the branch exists.

What it means

Error "Failed to sync repository to ${defaultBranch}. Try /reset or check if the branch exists." thrown in coleam00/Archon.

Source

Thrown at packages/adapters/src/community/forge/gitlab/adapter.ts:455

      if (err.code !== 'ENOENT') {
        getLog().error({ repoPath, errorCode: err.code, err }, 'gitlab.repo_path_access_failed');
        throw new Error(
          `Cannot access repository at ${repoPath}: ${err.code ?? err.message}. ` +
            'Check permissions and disk health.'
        );
      }
    }

    if (directoryExists) {
      if (shouldSync) {
        getLog().info({ repoPath, defaultBranch }, 'gitlab.repo_syncing');
        const syncResult = await syncRepository(toRepoPath(repoPath), toBranchName(defaultBranch));
        if (!syncResult.ok) {
          getLog().error(
            { error: syncResult.error, repoPath, defaultBranch },
            'gitlab.repo_sync_failed'
          );
          throw new Error(
            `Failed to sync repository to ${defaultBranch}. ` +
              'Try /reset or check if the branch exists.'
          );
        }
      }
      return;
    }

    // Clone the repository
    // GitLab self-hosted instances need oauth2:token auth and credential helper disabled
    // to prevent macOS Keychain from intercepting and blocking the clone
    getLog().info({ projectPath, repoPath }, 'gitlab.repo_cloning');

    // Create project structure (source/, worktrees/, artifacts/, logs/) before
    // cloning so worktree paths resolve correctly on first webhook clone.
    // For nested namespaces (group/subgroup/repo), the namespace becomes the
    // owner and the leaf segment becomes the repo.
    const cloneSegments = projectPath.split('/');

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/adapters/src/community/forge/gitlab/adapter.ts:455 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/f48f405fb9dbdf8a. Report an issue: GitHub.