跳转到内容
搜索文档

构建故障排除

最后更新 查看 MarkdownAgent 设置

若 git 集成遇到问题,你可能会在 Pages 项目的 Deployment 页面看到以下横幅。

项目创建

This repository is being used for a Cloudflare Pages project on a different Cloudflare account.(此仓库正被另一个 Cloudflare 账户上的 Cloudflare Pages 项目使用。)

不允许在不同 Cloudflare 账户间使用相同的 GitHub/GitLab 仓库。要在该 Cloudflare 账户中将仓库用于 Pages 项目,应删除其他 Cloudflare 账户中使用该仓库的所有 Pages 项目。

部署

若遇到与部署或失败相关的问题,请检查项目仪表板,查看是否列出 SCM 安装警告,如下截图所示。

在 Pages 项目的 Settings 中暂停部署

要解决 Cloudflare Pages 仪表板中显示的任何错误,请按照以下步骤操作。

This project is disconnected from your Git account, this may cause deployments to fail.(此项目已与你的 Git 账户断开连接,可能导致部署失败。)

要解决此问题,请按照 重新安装 Git 安装 部分中为相应 SCM 提供商提供的步骤操作。若卸载并重新安装后问题仍然存在,请联系支持。

Cloudflare Pages is not properly installed on your Git account, this may cause deployments to fail.(Cloudflare Pages 未正确安装到你的 Git 账户,可能导致部署失败。)

要解决此问题,请按照 重新安装 Git 安装 部分中为相应 SCM 提供商提供的步骤操作。若卸载并重新安装后问题仍然存在,请联系支持。

The Cloudflare Pages installation has been suspended, this may cause deployments to fail.(Cloudflare Pages 安装已被挂起,可能导致部署失败。)

前往 GitHub 安装设置:

  • 个人账户:https://github.com/settings/installations
  • 组织账户:https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations

点击 Cloudflare Pages 应用的 Configure(配置)。滚动到页面底部,点击 Unsuspend(取消暂停),允许 Cloudflare Pages 进行未来部署。

The project is linked to a repository that no longer exists, this may cause deployments to fail.(项目关联的仓库已不存在,可能导致部署失败。)

你可能已删除或转移与此 Cloudflare Pages 项目关联的仓库。对于已删除的仓库,你需要使用未被删除的仓库创建新的 Cloudflare Pages 项目。对于已转移的仓库,你可以将仓库转回原始 Git 账户,或使用已转移的仓库创建新的 Cloudflare Pages 项目。

The repository cannot be accessed, this may cause deployments to fail.(无法访问该仓库,可能导致部署失败。)

你可能已在安装的仓库访问设置中排除此仓库。前往 GitHub 安装设置:

  • 个人账户:https://github.com/settings/installations
  • 组织账户:https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations

点击 Cloudflare Pages 应用的 Configure(配置)。在 Repository access(仓库访问) 下,确保与此 Cloudflare Pages 项目关联的仓库包含在列表中。

There is an internal issue with your Cloudflare Pages Git installation.(你的 Cloudflare Pages Git 安装存在内部问题。)

这是 Cloudflare Pages SCM 系统中的内部错误。你可以尝试 重新安装 Git 集成,但若问题仍然存在,请 联系支持

GitHub/GitLab is having an incident and push events to Cloudflare are operating in a degraded state. Check their status page for more details.(GitHub/GitLab 发生故障,推送到 Cloudflare 的事件处于降级状态。请查看其状态页了解详情。)

这表示 GitHub 或 GitLab 可能正在经历影响向 Cloudflare 推送事件的故障。建议监控其状态页面(GitHubGitLab)获取更新,并稍后再次尝试部署。

这篇文档对您有帮助吗?