Netlify Build Complete but receiving "Command did not finish within the time limit" on paid plan

Netlify Build Complete but receiving “Command did not finish within the time limit” on paid plan. Any thoughts?

10:36:28 PM: Execution timed out after 26m48.340646071s
10:36:28 PM: Error running command: Command did not finish within the time limit

Hi, @STACKINJAM. If you tell us the site subdomain or the site API ID, our support team can extend the build time limit for the site.

However, it sounds more like the following issue is occurring:

If this is issue (a stuck build), manually closing any connections to sites or databases being made during the site build process is the solution. If there are other questions or concerns, please let us know.

Thanks for the reply luke!

I think it is getting stuck due to time since when I had only 3 products that it was pulling from shopify it would work just fine but now that there are 100 it is timing out. I tested on another provider and it is deploying fine. Please take a look at your convenience.

The most recent build contains this:

9:51:51 AM: warning Browserslist: caniuse-lite is outdated. Please run:
9:51:51 AM: npx browserslist@latest --update-db
9:53:44 AM: success Building production JavaScript and CSS bundles - 114.413s
9:53:45 AM: success Rewriting compilation hashes - 0.001s
9:54:30 AM: success run queries - 189.991s - 155/157 0.83/s
10:12:14 AM: success Building static HTML for pages - 15.049s - 142/142 9.44/s
10:12:14 AM: success Generating image thumbnails - 1253.392s - 3480/3480 2.78/s
10:12:14 AM: info Generated public/sw.js, which will precache 7 files, totaling 747583 bytes.
10:12:14 AM: The following pages will be precached:
10:12:14 AM: /offline-plugin-app-shell-fallback/index.html
10:12:14 AM: success onPostBuild - 0.083s
10:12:14 AM: info Done building in 1267.379983669 sec
10:12:14 AM: Done in 1267.69s.
10:12:14 AM: ​
10:12:14 AM: (build.command completed in 21m 7.9s)

The default timeout for a site build is 15 minutes so this was an expected timeout, not a stuck build. Would you like for us to extend the build time limit to 30 minutes for this site?

Yes, please increase the build time. Thank you!

Hello, please increase our build timeout to 30 minutes as well

hi, which netlify site name is this regarding?

pedantic-gates-b75f4f, I have opened a zendesk ticket as well

Thanks! Just got that bumped for you.

1 Like

Hello! I need help extending build time to 30 minutes for center-site-app-prod ( Thanks!

Hi @fejiroofficial,

It appears that this has already been done.

I have the same issue, and it is because Algolia plugin spents hours to reindex. Without this plugin, build takes 5-6 minutes, and deploy takes about 15-25 minutes. About 20k+ pages.

12:31:28 AM: ────────────────────────────────────────────────────────────────
12:31:28 AM:   3. @algolia/netlify-plugin-crawler (onSuccess event)          
12:31:28 AM: ────────────────────────────────────────────────────────────────
12:31:28 AM: ​
12:31:28 AM: Algolia Netlify plugin started
12:31:28 AM: Sending request to crawl
12:31:29 AM: API answered: 200
12:31:29 AM: Your crawler is running at:*********
12:31:29 AM: Done.
12:31:29 AM: ​
12:31:29 AM: (@algolia/netlify-plugin-crawler onSuccess completed in 501ms)
12:31:29 AM: ​
12:31:29 AM: ────────────────────────────────────────────────────────────────
12:31:29 AM:   Netlify Build Complete                                        
12:31:29 AM: ────────────────────────────────────────────────────────────────
12:31:29 AM: ​
12:31:29 AM: (Netlify Build completed in 20m 32.9s)
12:31:29 AM: Execution timed out after 20m48.25470842s
12:31:29 AM: Error running command: Command did not finish within the time limit
12:31:29 AM: Failing build: Failed to build site
12:31:29 AM: Finished processing build request in 20m56.624569156s

Hey there, @FuadEfendi :wave:

Would you like us to increase the build timeout limit for you? Let me know.

Hi @hillary

No needed; thank you for suggesting! Nothing fails, only incorrect log message, site gets published.

It is Algolia crawler, it takes about 2-3 hours to crawl 10,000 pages (which is very good speed for “robot”), they have to fix their plugin reporting.

I am Ok; and I am implementing direct data injection to Algolia, which takes few seconds for 10,000 documents.

1 Like

Thanks for coming back and letting us know. Happy building!

1 Like