coleam00/Archon · error · AppNotInstalledError

The Archon GitHub App is not installed on "${owner}". Instal

Error message

The Archon GitHub App is not installed on "${owner}". Install it on the ${owner} account${installLink} to grant Archon access to ${owner}/${repo}.

What it means

Error "The Archon GitHub App is not installed on "${owner}". Install it on the ${owner} account${installLink} to grant Archon access to ${owner}/${repo}." thrown in coleam00/Archon.

Source

Thrown at packages/core/src/github-auth/auth.ts:103

    const cached = lookupCache.get(key);
    if (cached && Date.now() - cached.cachedAt < LOOKUP_CACHE_TTL_MS) {
      return cached.installationId;
    }
    getLog().debug({ owner, repo }, 'github_auth.install_lookup_started');
    try {
      const res = await appOctokit.request('GET /repos/{owner}/{repo}/installation', {
        owner,
        repo,
      });
      const installationId = res.data.id;
      lookupCache.set(key, { installationId, cachedAt: Date.now() });
      getLog().info({ owner, repo, installationId }, 'github_auth.install_lookup_completed');
      return installationId;
    } catch (err) {
      const status = (err as { status?: number }).status;
      if (status === 404) {
        getLog().warn({ owner, repo }, 'github_auth.install_lookup_not_installed');
        throw new AppNotInstalledError(owner, repo, config.slug);
      }
      getLog().error({ err, owner, repo }, 'github_auth.install_lookup_failed');
      throw err;
    }
  }

  async function getInstallationTokenById(installationId: number): Promise<string> {
    const cached = tokenCache.get(installationId);
    if (cached && Date.now() + REFRESH_BUFFER_MS < cached.expiresAtMs) {
      return cached.token;
    }
    getLog().debug({ installationId }, 'github_auth.token_resolve_started');
    try {
      const res = await appOctokit.request(
        'POST /app/installations/{installation_id}/access_tokens',
        { installation_id: installationId }
      );
      const token = res.data.token;

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/core/src/github-auth/auth.ts:103 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/1c5c7bdb51457864. Report an issue: GitHub.