coleam00/Archon · error

Failed to clone ${projectPath}: ${sanitized}

Error message

Failed to clone ${projectPath}: ${sanitized}

What it means

Error "Failed to clone ${projectPath}: ${sanitized}" thrown in coleam00/Archon.

Source

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

      if (typeof errRecord.stderr === 'string') sanitizedError.stderr = sanitize(errRecord.stderr);

      getLog().error({ projectPath, repoPath, error: sanitizedError }, 'gitlab.repo_clone_failed');

      if (msg.includes('not found') || msg.includes('404')) {
        throw new Error(
          `Repository ${projectPath} not found or is private. Check repository access.`
        );
      }
      if (
        msg.includes('authentication failed') ||
        msg.includes('could not read') ||
        msg.includes('403')
      ) {
        throw new Error(
          `Authentication failed for ${projectPath}. Check GITLAB_TOKEN permissions.`
        );
      }
      throw new Error(`Failed to clone ${projectPath}: ${sanitized}`);
    }

    await addSafeDirectory(toRepoPath(repoPath));
  }

  private async autoDetectAndLoadCommands(repoPath: string, codebaseId: string): Promise<void> {
    const commandFolders = getCommandFolderSearchPaths();

    for (const folder of commandFolders) {
      try {
        const fullPath = join(repoPath, folder);
        await access(fullPath);

        const files = (await readdir(fullPath)).filter(f => f.endsWith('.md'));
        if (files.length === 0) continue;

        const commands = await codebaseDb.getCodebaseCommands(codebaseId);
        files.forEach(file => {

View on GitHub (pinned to 0773b97458)

When it happens

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