Skip to content

GitHub Deployment Timing Out

Chet Birger edited this page Sep 6, 2023 · 3 revisions

September 6, 2023

Today I added two new publications to the Getz Lab web site. Merging the changes into the repo's master branch, as expected, triggered the GitHub pages build and deployment workflow. The deploy job failed, unexpectedly, with a timeout:

Run actions/deploy-pages@v2 Artifact exchange URL: https://pipelinesghubeus23.actions.githubusercontent.com/vqFsCoLElZnvFgvrSdEJ7L64C2ygl[9](https://github.com/getzlab/getzlab.github.io/actions/runs/6100847421/job/16556431384#step:2:10)RVKZoDLksamNvAxYI8k2/_apis/pipelines/workflows/6[10](https://github.com/getzlab/getzlab.github.io/actions/runs/6100847421/job/16556431384#step:2:11)0847421/artifacts?api-version=6.0-preview Creating Pages deployment with payload: { "artifact_url": "https://pipelines.actions.githubusercontent.com/vqFsCoLElZnvFgvrSdEJ7L64C2ygl9RVKZoDLksamNvAxYI8k2/_apis/pipelines/1/runs/203/artifacts?artifactName=github-pages&%24expand=SignedContent", "pages_build_version": "9e19ac592d975dfab65c0128a5[11](https://github.com/getzlab/getzlab.github.io/actions/runs/6100847421/job/16556431384#step:2:12)4882f6aee113", "oidc_token": "***" } Created deployment for 9e19ac592d975dfab65c0[12](https://github.com/getzlab/getzlab.github.io/actions/runs/6100847421/job/16556431384#step:2:13)8a5114882f6aee1[13](https://github.com/getzlab/getzlab.github.io/actions/runs/6100847421/job/16556431384#step:2:14), ID: 9e19ac592d975dfab65c0128a51[14](https://github.com/getzlab/getzlab.github.io/actions/runs/6100847421/job/16556431384#step:2:15)882f6aee113 Getting Pages deployment status... Current status: Getting Pages deployment status... Current status: Getting Pages deployment status... Current status: Getting Pages deployment status... Current status: Getting Pages deployment status...

...

Getting Pages deployment status... Current status: Error: Timeout reached, aborting! Error: Timeout reached, aborting! Canceling Pages deployment... Canceled deployment with ID 9e19ac592d975dfab65c0128a5114882f6aee113

There is a 10 minute upper limit on the deployment of a github pages website's artifacts to the backend. I wasn't able to determine the specific reason for the failure - we are well below the 1G limit on the total size of our site artifacts. However, I was able to fix the problem employing a variation of the solution spelled out in https://github.com/orgs/community/discussions/49948.

Here is what I did to fix the problem:

  • From Settings, go to Code Automation > Pages
  • Reset the Branch from which the GitHub Pages site is built from master to None and confirm that the site is no longer available (I could go to the main page, but got 404s anything beyond that).
  • Reset to the building branch back to master. This triggers a rebuild and deployment of the site, and the problem went away!
Clone this wiki locally