Skip to content

Troubleshooting builds

If your Git integration is experiencing issues, you may find the following banners on the Deployments page of your Pages project.

Project creation

This repository is being used for a Cloudflare Pages project on a different Cloudflare account.

Using the same GitHub or GitLab repository across separate Cloudflare accounts is disallowed. To use the repository for a Pages project in that Cloudflare account, delete any Pages projects using the repository in other Cloudflare accounts.

Organization repository selection does not advance on GitHub

If your GitHub organization already has the Cloudflare Workers and Pages app installed but the repository selection step does not load or advance:

  1. In GitHub, open your organization settings and go to Third-party Access > GitHub Apps.
  2. Find Cloudflare Workers and Pages and select Configure.
  3. Update the Repository access list (for example, add or confirm the target repository) and select Save to refresh repository permissions.
  4. Return to Cloudflare and reconnect the repository.

Deployments

If you run into issues related to deployments failing, check your project dashboard for source control management (SCM) installation warnings.

Git installation warning banner on the Deployments page of a Cloudflare Pages project

To resolve errors displayed in the Cloudflare Pages dashboard, follow the steps for the matching message.

This project is disconnected from your Git account, this may cause deployments to fail.

To resolve this issue, reinstall the Git integration for GitHub or GitLab. If the issue persists after uninstalling and reinstalling, contact support.

Cloudflare Pages is not properly installed on your Git account, this may cause deployments to fail.

For a GitHub repository, error 8000010 can mean that Pages could not verify the linked GitHub App installation or that your GitHub user cannot access it. Check that you signed in to GitHub with an account that can access the repository. In the GitHub account or organization that owns the repository, check that the Cloudflare Workers & Pages app is installed and that Repository access includes the repository.

If the app is missing, install it. If the installation changed, reconnect your repository.

For GitLab, reinstall the GitLab integration.

If you still see the error, contact support.

The Cloudflare Pages installation has been suspended, this may cause deployments to fail.

Go to your GitHub installation settings:

  • Individual accounts ↗︎
  • Organization accounts: https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations

Select Configure on the Cloudflare Workers and Pages application. Scroll to the bottom of the page and select Unsuspend to allow Cloudflare Pages to make future deployments.

The project is linked to a repository that no longer exists, this may cause deployments to fail.

You may see this warning after you delete or transfer a repository. For GitHub, you can reconnect the existing Pages project to the transferred repository or to a replacement.

The reconnect steps below apply only to GitHub. For a transferred GitLab repository, transfer it back to the original owner or create a new Pages project with the transferred repository. If you deleted the GitLab repository, create a new Pages project with a different repository.

Reconnect a GitHub repository

After a transfer, linking the new owner's GitHub App installation to your Cloudflare account does not update the existing project's Git connection. Disconnecting the repository pauses automatic deployments from Git.

In GitHub, check that the Cloudflare Workers & Pages app has access to the repository you want to connect. If you transferred the repository, check the installation under its new owner.

  1. In your Pages project, go to Settings > Build. Under Git repository, select Disconnect and confirm. Skip this step if the project already shows Connect.
  2. Under Git repository, select Connect. Choose the GitHub account or organization and repository, check the production branch and build settings, then select Connect. The dashboard starts a new deployment.

You can use cf if your Cloudflare account already links to the repository owner's GitHub App installation and you have authorized the app with your GitHub user. If you get error 8000011 (missing or stale installation link) or 8000124 (GitHub authorization required), use the Dashboard tab. cf cannot link the installation or authorize GitHub.

Install or update cf, then set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN. Use a user API token with Cloudflare Pages: Edit from the Cloudflare user who authorized GitHub.

  1. Set PROJECT to your Pages project name and save its settings before disconnecting. Keep pages-project.json private because it can contain environment variables.

    PROJECT=my-pages-project
    cf pages get "$PROJECT" > pages-project.json
  2. Copy the source object from pages-project.json into a new file named pages-source.json. Keep the branch, path, and automatic deployment settings you want. Set config.owner and config.repo_name to the GitHub owner and repository name. Look up the repository with the GitHub REST API ↗︎. Copy owner.id to config.owner_id and id to config.repo_id. Put both IDs in quotes.

    Example for a project without a connected repository

    If your project has no source object, use this example to create pages-source.json. Replace the owner, repository, IDs, and production branch with your values. Review the settings before connecting.

    pages-source.jsonjson
    {
      "type": "github",
      "config": {
        "owner": "new-owner",
        "owner_id": "12345678",
        "repo_name": "my-repository",
        "repo_id": "23456789",
        "production_branch": "main",
        "deployments_enabled": true,
        "production_deployments_enabled": true,
        "preview_deployment_setting": "all",
        "preview_branch_includes": [],
        "preview_branch_excludes": [],
        "path_includes": ["*"],
        "path_excludes": [],
        "pr_comments_enabled": true
      }
    }
  3. Disconnect the old repository. Skip this step if the project already has no connected repository. The command prompts for confirmation. In a non-interactive script, add --force to skip the prompt.

    cf pages source disconnect "$PROJECT"
  4. Connect the repository with your updated settings.

    cf pages source connect "$PROJECT" --body "$(cat pages-source.json)"
  5. To deploy now, create a deployment. Replace main with the branch you want to deploy. The connect command does not start a deployment on its own.

    cf pages deployments create "$PROJECT" --branch main

If you cannot reconnect a transferred repository, transfer it back to the original owner or create a new Pages project with the transferred repository.

The repository cannot be accessed, this may cause deployments to fail.

You may have excluded this repository from your installation's repository access settings. Go to your GitHub installation settings:

  • Individual accounts ↗︎
  • Organization accounts: https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations

Select Configure on the Cloudflare Workers and Pages application. Under Repository access, ensure that the repository associated with your Cloudflare Pages project is included in the list.

There is an internal issue with your Cloudflare Pages Git installation.

For a GitHub repository, error 8000011 can mean that your Cloudflare account has no link to the repository owner's GitHub App installation, or that GitHub no longer recognizes the linked installation.

  1. Sign in to GitHub as a user who can access the repository. Authorize the app if Cloudflare prompts you.
  2. In the GitHub account or organization that owns the repository, check that the Cloudflare Workers & Pages app is installed and that Repository access includes the repository. Install the app if it is missing.
  3. In the Cloudflare account you want to use, finish connecting the repository. For a new project, follow the Git integration setup guide. For an existing project, use the Dashboard tab under Reconnect a GitHub repository.

Seeing the repository in the picker does not mean your Cloudflare account already has a link to the installation. If your account needs a link, Pages creates it when you submit the connection.

For GitLab, reinstall the GitLab integration.

If you still see the error, contact support.

GitHub/GitLab is having an incident and push events to Cloudflare are operating in a degraded state. Check their status page for more details.

This indicates that GitHub or GitLab may be experiencing an incident affecting push events to Cloudflare. Monitor their status pages (GitHub ↗︎, GitLab ↗︎) for updates and try deploying again later.

Was this helpful?