Almost all of my builds are failing suddenly

Since a few days I noticed that more than 50% of my builds are failing due to

5:44:26 PM: Error running command: Command did not finish within the time limit
5:44:26 PM: Failing build: Failed to build site
5:44:27 PM: failed during stage ‘building site’: Command did not finish within the time limit

Until last week I had never seen this issue. My site is a Gatsby site built on top of a headless Drupal source with jsonapi and only has 100-ish content pages with each 1 to 2 images at max.

On my local machine the build time (with .cache and public removed) takes 5-6 minutes, but for some reason on netlify it always takes between 12 and 18 minutes, and now starts timing out.

As a result of all the retries and stuff, I already purchased 4 build minutes packs of 7$ each, but I’m getting pretty desperate to get this fixed.

I tried trimming down image sizes in the backend, minimized the number of images gatsby creates from them etc, but no result. My last attempt was to add the gatsby-plugin-netlify-cache plugin, but no cigar either.

Sitename: kcvvelewijt



hey @soniCaH, that sounds frustrating.

My first thought, since you are dealing with a gatsby build, is to send you this:

It’s providing really great improvements for folks whose builds are timing out because they are taking too long.

If that doesn’t help, let us know - there may be some other things we can try :muscle: