Netlify Build Error: Build exceeded maximum allowed runtime

I asked netify over chat and they said:

Your site has SO MANY files that our upload process does not complete within 30 minutes.

and Suggested:

You can probablywork around this by deploying half of your site and then the whole one.

But how to deploy half site then full site?

Whats the better way for site with huge amount of pages and files?

Here is Deploy Log:

11:30:04 PM: Build ready to start
11:30:06 PM: build-image version: 84aca9ba39e0ee86ba194760fbfc51a808f62543
11:30:06 PM: buildbot version: 57d44fd1631cc3fff8b38fbaf88d3d04f946418a
11:30:06 PM: Fetching cached dependencies
11:30:06 PM: Starting to download cache of 54.5MB
11:30:06 PM: Finished downloading cache in 518.167238ms
11:30:06 PM: Starting to extract cache
11:30:08 PM: Finished extracting cache in 1.339573642s
11:30:08 PM: Finished fetching cache in 1.920550391s
11:30:08 PM: Starting to prepare the repo for build
11:30:09 PM: Preparing Git Reference refs/heads/master
11:30:12 PM: Found netlify.toml. Overriding site configuration
11:30:12 PM: Starting build script
11:30:12 PM: Installing dependencies
11:30:12 PM: Started restoring cached node version
11:30:15 PM: Finished restoring cached node version
11:30:16 PM: v8.15.0 is already installed.
11:30:17 PM: Now using node v8.15.0 (npm v6.4.1)
11:30:17 PM: Attempting ruby version 2.3.6, read from environment
11:30:18 PM: Using ruby version 2.3.6
11:30:18 PM: Using PHP version 5.6
11:30:18 PM: Installing Hugo 0.52
11:30:18 PM: Started restoring cached go cache
11:30:18 PM: Finished restoring cached go cache
11:30:18 PM: unset GOOS;
11:30:18 PM: unset GOARCH;
11:30:18 PM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.10.linux.amd64’;
11:30:18 PM: export PATH="/opt/buildhome/.gimme/versions/go1.10.linux.amd64/bin:${PATH}";
11:30:18 PM: go version >&2;
11:30:18 PM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.10.linux.amd64.env’;
11:30:18 PM: go version go1.10 linux/amd64
11:30:18 PM: Installing missing commands
11:30:18 PM: Verify run directory
11:30:18 PM: Executing user command: hugo
11:30:18 PM: Building sites …
11:33:04 PM: | EN
11:33:05 PM: ±-----------------±------+
11:33:05 PM: Pages | 28483
11:33:05 PM: Paginator pages | 440
11:33:05 PM: Non-page files | 0
11:33:05 PM: Static files | 142
11:33:05 PM: Processed images | 0
11:33:05 PM: Aliases | 7485
11:33:05 PM: Sitemaps | 1
11:33:05 PM: Cleaned | 0
11:33:05 PM: Total in 166162 ms
11:33:05 PM: Caching artifacts
11:33:05 PM: Started saving pip cache
11:33:05 PM: Finished saving pip cache
11:33:05 PM: Started saving emacs cask dependencies
11:33:05 PM: Finished saving emacs cask dependencies
11:33:05 PM: Started saving maven dependencies
11:33:05 PM: Finished saving maven dependencies
11:33:05 PM: Started saving boot dependencies
11:33:05 PM: Finished saving boot dependencies
11:33:05 PM: Started saving go dependencies
11:33:05 PM: Finished saving go dependencies
11:33:05 PM: Build script success
11:33:05 PM: Starting to deploy site from ‘public’
12:00:05 AM: Build exceeded maximum allowed runtime

You can build locally and see what is happening by applying template metrics. That’s the start. :slight_smile:

1 Like