Home
Support Forums

Error: Build fails as command did not finish within the time limit

Hi!

We have been experiencing this error for a while every time we use auto deploy, currently we see it on every build, more info:

9:12:14 PM: Execution timed out after 31m26.990896841s
9:12:14 PM: Failed during stage 'building site': Command did not finish within the time limit
9:12:14 PM: Error running command: Command did not finish within the time limit
9:12:14 PM: Failing build: Failed to build site
9:12:14 PM: Finished processing build request in 33m0.277400565s

The same build is deployed successfully when the build is deployed using Netlify CLI.
Can someone please help?

Thanks

It simply means that your build command takes more than 30 mins. 30 mins is already an upgraded limit (15 is the default). So chances are you might have to optimise your build time or need another time limit bump.

The reason it’s working from CLI is because CLI builds locally and doesn’t have any time limit.

Hey, can you increase the time limit provided?

It might not be possible to optimize the build time.

Tried optimizing the build time, but the build even fails after 17 minutes due to time limit exceeded.

Deploy log: Netlify App

Error:

10:26:54 PM: Execution timed out after 17m43.733005178s
10:26:54 PM: Error running command: Command did not finish within the time limit
10:26:54 PM: Creating deploy upload records
10:26:54 PM: Failing build: Failed to build site
10:26:54 PM: Failed during stage 'building site': Command did not finish within the time limit
10:26:54 PM: Finished processing build request in 19m1.47293616s

hey there @arijitk - we can bump the time up, but you would need to add a credit card to your account first! let us know when you have done so and we can change it. thanks!