I’m having trouble having Netlify building and deploying my site from GitHub. I’ve posted about this here before but the same issue is still happening and is unresolved.
When I originally set up my GitHub repo with Netlify, Netlify’s build and deploy worked just fine. However I had a pull request with a large number of images in it and it gave me the following error each time I pushed a commit to build:
8:09:32 PM: Build ready to start 8:09:34 PM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774 8:09:34 PM: build-image tag: v3.3.7 8:09:34 PM: buildbot version: 134ec431c6a3ff76e87cc4dc34007fe13842272f 8:09:34 PM: Fetching cached dependencies 8:09:35 PM: Starting to download cache of 319.3MB 8:09:47 PM: Finished downloading cache in 12.548108165s 8:09:47 PM: Starting to extract cache 8:09:59 PM: Finished extracting cache in 11.857813179s 8:09:59 PM: Finished fetching cache in 24.558800316s 8:09:59 PM: Starting to prepare the repo for build 8:09:59 PM: Preparing Git Reference pull/107/head 8:10:01 PM: Failing build: Failed to prepare repo 8:10:01 PM: failed during stage 'preparing repo': exit status 1 8:10:01 PM: Finished processing build request in 27.067839529s
I ended up deleting the entire site in Netlify and recreating it, which fixed the issue but I would love to avoid such extreme measures in the future. After this fix, I was able Netlify worked just fine with code-only commits (no images).
This week I created a pull request with a single image and Netlify started returning the same error:
8:10:42 PM: Build ready to start 8:10:44 PM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774 8:10:44 PM: build-image tag: v3.3.7 8:10:44 PM: buildbot version: d305548225ac57bb00eb5a596b0b8674e76a4681 8:10:44 PM: Fetching cached dependencies 8:10:44 PM: Starting to download cache of 336.9MB 8:10:48 PM: Finished downloading cache in 3.510507091s 8:10:48 PM: Starting to extract cache 8:10:59 PM: Finished extracting cache in 10.961078922s 8:10:59 PM: Finished fetching cache in 14.557809822s 8:10:59 PM: Starting to prepare the repo for build 8:10:59 PM: Preparing Git Reference refs/heads/master 8:11:01 PM: Failing build: Failed to prepare repo 8:11:01 PM: failed during stage 'preparing repo': exit status 1 8:11:01 PM: Finished processing build request in 16.824491485s
This time I followed Perry’s advice: I completely removed the Netlify app from GitHub and revoked its access, waited a few minutes, and reinstalled it.
This didn’t work.
Now it seems Netlify isn’t even installed. Github isn’t showing the Netlify checks in PRs anymore, and Netlify isn’t building recent commits or deploying what’s in GH
What can I do to reconnect my GitHub account with Netlify and keep things from breaking when I upload an image to my site?
Another odd thing I notice is that Netlify is prompting me to install the Github app after I supposedly installed it. Why would this happen?