> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entire.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

> Fix common repository mirror setup, access, clone, fetch, and push issues.

Use this page when a repository mirror cannot be created, cloned, fetched, pushed to, or accessed by the expected users.

## `git-remote-entire` Diagnostics

Git invokes `git-remote-entire` when a remote uses an `entire://` URL. Confirm that the helper is installed and available on `PATH`:

```bash theme={null}
git-remote-entire --version
```

If the shell cannot find the command, [update or reinstall Entire](https://docs.entire.com/installation.md#install-and-update-entire). The release archive installs `entire` and `git-remote-entire` together.

For a clone or fetch failure, confirm your login and the placement before testing the remote directly:

```bash theme={null}
entire auth status
entire repo view /gh/OWNER/REPO
git ls-remote entire://CLUSTER_HOST/gh/OWNER/REPO
```

The URL must include the cluster host. Use `entire repo view /gh/OWNER/REPO` to find the full URL for each cluster, or use `entire repo clone /gh/OWNER/REPO` to let Entire select a placement.

Set `ENTIRE_DEBUG` to include authentication, cluster discovery, request, response, and timing details from the helper on standard error:

```bash theme={null}
ENTIRE_DEBUG=1 git ls-remote entire://CLUSTER_HOST/gh/OWNER/REPO
```

Review diagnostic output before sharing it outside your organization.

> [accordion] Unknown Command "repo"
>
> Your `entire` binary may be older than the repository mirror commands.
>
> [Update Entire](https://docs.entire.com/installation.md#install-and-update-entire), then try again:
>
> ```bash theme={null}
> entire repo mirror add /gh/OWNER/REPO
> ```

> [accordion] The Repository Is Missing from GitHub App Access
>
> Confirm that the Entire GitHub App is installed and allowed to access the repository.
>
> 1. Open [GitHub installed apps](https://github.com/settings/installations).
> 2. Find **Entire**.
> 3. Click **Configure**.
> 4. Choose **All repositories** or select the repository you want to mirror.
> 5. Save the GitHub App configuration.
>
> For the full GitHub App setup flow, see [GitHub App Access](https://docs.entire.com/guides/repositories/github-app-access.md).

> [accordion] The GitHub Organization Has an IP Allow List
>
> If your GitHub organization or enterprise has an IP allow list, GitHub refuses Entire's requests until Entire's addresses are allowed. Mirrors cannot be created, and existing mirrors stop syncing new pushes.
>
> An organization owner can allow Entire by selecting **Enable IP allow list configuration for installed GitHub Apps** under **Settings** > **Authentication security**. See [GitHub IP Allow Lists](https://docs.entire.com/guides/repositories/github-ip-allow-lists.md) for the steps and the list of addresses.

> [accordion] A User Cannot Create or Join a Mirror
>
> Check all three access requirements:
>
> * The Entire GitHub App can access the repository.
> * The user has access to the repository in GitHub.
> * The user has signed in with the Entire CLI using `entire login`.
>
> After those are true, the user can create or join the mirror:
>
> ```bash theme={null}
> entire repo mirror add /gh/OWNER/REPO
> ```
>
> Entire updates mirror access when GitHub reports a collaborator change, and re-reads each repository's collaborators at least once a day to catch changes it missed. If the user recently got GitHub access or recently signed in to Entire, wait a few minutes or have them run `entire repo mirror add /gh/OWNER/REPO`.
>
> See [Mirror Access and Permissions](https://docs.entire.com/guides/repositories/mirror-access-and-permissions.md) for GitHub-synced access, collaborator sync, and self-onboarding.

> [accordion] Mirror Creation Takes a While
>
> By default `entire repo mirror add` waits for the initial GitHub-to-Entire clone to finish. Large repositories can take longer.
>
> If you only need to register the mirror and check back later, use `--no-wait`:
>
> ```bash theme={null}
> entire repo mirror add /gh/OWNER/REPO --no-wait
> ```

> [accordion] Git Cannot Clone or Fetch from the Mirror
>
> Confirm that the repository has a ready placement and let Entire select its clone URL:
>
> ```bash theme={null}
> entire repo view /gh/OWNER/REPO
> entire repo clone /gh/OWNER/REPO
> ```
>
> If the repository has placements on several clusters, select one explicitly:
>
> ```bash theme={null}
> entire repo clone /gh/OWNER/REPO --cluster CLUSTER_HOST
> ```
>
> If cloning still fails:
>
> * Run `entire login` to refresh your Entire session.
> * Confirm you have GitHub collaborator access to the repository.
> * If your GitHub access changed recently, wait a few minutes for Entire to pick up the change.
> * Confirm your network can reach the selected cluster host.
> * If you added the mirror to an existing checkout, run `git remote -v` and confirm the remote URL.
> * Run the [`git-remote-entire` diagnostics](#git-remote-entire-diagnostics).

> [accordion] Cloning a Mirror with LFS Files Fails during Checkout
>
> Mirrors do not currently support Git LFS. When you clone a mirror of a repository that uses LFS, the clone succeeds but checkout fails with a smudge error like:
>
> ```text theme={null}
> Error downloading object: ... batch request: ssh: Could not resolve hostname entire
> error: external filter 'git-lfs filter-process' failed
> fatal: <file>: smudge filter lfs failed
> ```
>
> As a workaround, point Git LFS at GitHub so that large file transfers go through GitHub, while regular Git operations keep using the mirror:
>
> ```bash theme={null}
> git config lfs.url "https://github.com/<owner>/<repo>.git/info/lfs"
> ```
>
> See [Git LFS](https://docs.entire.com/guides/repositories/mirrors.md#git-lfs) for the full workaround, including how to recover a fresh clone that failed at checkout.

> [accordion] Pushes through the Mirror Are Rejected
>
> Pushes through a mirror are still authenticated with GitHub.
>
> If a push is rejected:
>
> * Confirm the user has write access to the GitHub repository.
> * Confirm branch protection rules and required checks allow the push.
> * Confirm the Entire GitHub App can access the repository.
> * Refresh the user's Entire login.
>
> ```bash theme={null}
> entire login
> ```
>
> Do not use `entire logout` to refresh: it drops every saved login and ends your CLI sessions on other machines too.

> [accordion] A Pushed Branch Does Not Appear on GitHub
>
> Branch names that start with `entire/unmirrored/` are intentionally never synced to GitHub. The branch exists only in the Entire region you pushed it to.
>
> To publish the work on GitHub, push the commits to a branch name outside the prefix:
>
> ```bash theme={null}
> git push entire "entire/unmirrored/<branch>:<branch>"
> ```
>
> See [Entire-Native Branches](https://docs.entire.com/guides/repositories/entire-native-branches.md) for how unmirrored branches work.

> [accordion] A Removed User Can Still Read from a Mirror
>
> Removing GitHub access prevents push-through writes because pushes are authenticated with GitHub. Pushes to `entire/unmirrored/` branches, and clone and fetch access, may continue until Entire picks up the change. Entire usually learns of the change from GitHub right away. If that notification is missed, its background sync catches it within a day.
>
> See [Mirror Access and Permissions](https://docs.entire.com/guides/repositories/mirror-access-and-permissions.md#offboard-a-user) for the offboarding flow.

> [accordion] The Mirror Was Removed but a Local Checkout Still Points to It
>
> Removing a server-side mirror placement does not edit local Git configuration.
>
> Check the remote in the local checkout:
>
> ```bash theme={null}
> git remote -v
> ```
>
> To switch back to GitHub:
>
> ```bash theme={null}
> git remote set-url origin git@github.com:<owner>/<repo>.git
> ```
>
> Entire no longer saves the previous URL under `upstream`. If you repointed `origin` with `entire repo remote add origin --override`, the replaced URL was printed once and not stored.

> [accordion] Still Stuck?
>
> Include these details when asking for help:
>
> * `entire version`
> * the GitHub repository URL
> * the `entire://` mirror URL
> * whether the Entire GitHub App can access the repository
> * whether the issue happens during create, clone, fetch, or push
> * the full error message
>
> You can file an issue at [github.com/entireio/cli](https://github.com/entireio/cli) or ask in the [Entire Discord](https://discord.gg/jZJs3Tue4S).

## Continue With

> [card] [Mirrors](https://docs.entire.com/guides/repositories/mirrors.md)
>
> Learn how mirrors make GitHub repositories available in Entire.

> [card] [Mirror Access and Permissions](https://docs.entire.com/guides/repositories/mirror-access-and-permissions.md)
>
> Understand GitHub-synced access, collaborator sync, and offboarding.
