thanks @perry
I just tried again but unfortunely I had a different error at uploading, here is the log:
4:16:51 PM: Build ready to start
4:16:57 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d
4:16:57 PM: build-image tag: v3.3.20
4:16:57 PM: buildbot version: 78b5536ab4f742c26705d3e953381b9cde6e22ef
4:16:57 PM: Fetching cached dependencies
4:16:57 PM: Starting to download cache of 1.1GB
4:17:03 PM: Finished downloading cache in 6.520275344s
4:17:03 PM: Starting to extract cache
4:17:36 PM: Finished extracting cache in 32.783734144s
4:17:36 PM: Finished fetching cache in 39.556006608s
4:17:36 PM: Starting to prepare the repo for build
4:17:37 PM: Preparing Git Reference refs/heads/master
4:17:39 PM: Starting build script
4:17:39 PM: Installing dependencies
4:17:39 PM: Python version set to 2.7
4:17:39 PM: Started restoring cached node version
4:17:42 PM: Finished restoring cached node version
4:17:43 PM: v10.21.0 is already installed.
4:17:43 PM: Now using node v10.21.0 (npm v6.14.4)
4:17:44 PM: Started restoring cached build plugins
4:17:44 PM: Finished restoring cached build plugins
4:17:44 PM: Attempting ruby version 2.6.2, read from environment
4:17:45 PM: Using ruby version 2.6.2
4:17:45 PM: Using PHP version 5.6
4:17:45 PM: 5.2 is already installed.
4:17:45 PM: Using Swift version 5.2
4:17:45 PM: Started restoring cached node modules
4:17:45 PM: Finished restoring cached node modules
4:17:45 PM: Started restoring cached yarn cache
4:17:45 PM: Finished restoring cached yarn cache
4:17:46 PM: Installing NPM modules using Yarn version 1.17.0
4:17:47 PM: yarn install v1.17.0
4:17:47 PM: [1/4] Resolving packages...
4:17:48 PM: [2/4] Fetching packages...
4:18:38 PM: [3/4] Linking dependencies...
4:19:22 PM: [4/4] Building fresh packages...
4:19:26 PM: success Saved lockfile.
4:19:26 PM: Done in 99.50s.
4:19:26 PM: NPM modules installed using Yarn
4:19:27 PM: Started restoring cached go cache
4:19:28 PM: Finished restoring cached go cache
4:19:28 PM: Installing Go version 1.12
4:19:28 PM: unset GOOS;
4:19:28 PM: unset GOARCH;
4:19:28 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64';
4:19:28 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}";
4:19:28 PM: go version >&2;
4:19:28 PM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env';
4:19:28 PM: go version go1.12 linux/amd64
4:19:28 PM: Installing missing commands
4:19:28 PM: Verify run directory
4:19:29 PM:
4:19:29 PM: ┌─────────────────────────────┐
4:19:29 PM: │ Netlify Build │
4:19:29 PM: └─────────────────────────────┘
4:19:29 PM:
4:19:29 PM: ❯ Version
4:19:29 PM: @netlify/build 2.0.27
4:19:29 PM:
4:19:29 PM: ❯ Flags
4:19:29 PM: deployId: 5f061ba3b503adc4fd51edd6
4:19:29 PM: mode: buildbot
4:19:29 PM:
4:19:29 PM: ❯ Current directory
4:19:29 PM: /opt/build/repo
4:19:29 PM:
4:19:29 PM: ❯ Config file
4:19:29 PM: /opt/build/repo/netlify.toml
4:19:29 PM:
4:19:29 PM: ❯ Context
4:19:29 PM: production
4:19:30 PM:
4:19:30 PM: ❯ Loading plugins
4:19:30 PM: - netlify-plugin-gatsby-cache@0.3.0 from netlify.toml
4:19:30 PM:
4:19:30 PM: ┌────────────────────────────────────────────────────────┐
4:19:30 PM: │ 1. onPreBuild command from netlify-plugin-gatsby-cache │
4:19:30 PM: └────────────────────────────────────────────────────────┘
4:19:30 PM:
4:19:49 PM: Found a Gatsby cache. We’re about to go FAST. ⚡️
4:19:49 PM:
4:19:49 PM: (netlify-plugin-gatsby-cache onPreBuild completed in 19.8s)
4:19:49 PM:
4:19:49 PM: ┌───────────────────────────────────┐
4:19:49 PM: │ 2. Build command from Netlify app │
4:19:49 PM: └───────────────────────────────────┘
4:19:49 PM:
4:19:49 PM: $ gatsby build
4:19:57 PM: success open and validate gatsby-configs - 0.079s
4:19:57 PM: success load plugins - 0.516s
4:19:57 PM: success onPreInit - 0.010s
4:20:00 PM: success delete html and css files from previous builds - 2.566s
success initialize cache - 0.053s
4:20:00 PM: success copy gatsby files - 0.042s
4:20:00 PM: success onPreBootstrap - 0.010s
4:20:00 PM: success createSchemaCustomization - 0.003s
4:20:33 PM: success source and transform nodes - 32.522s
4:20:34 PM: success building schema - 1.521s
4:22:18 PM: success createPages - 104.111s
4:22:18 PM: success createPagesStatefully - 0.113s
4:22:20 PM: success updating schema - 1.945s
4:22:20 PM: success onPreExtractQueries - 0.000s
4:22:21 PM: success extract queries from components - 0.246s
4:22:21 PM: success write out redirect data - 0.001s
4:22:21 PM: success Build manifest and related icons - 0.172s
4:22:21 PM: success onPostBootstrap - 0.173s
4:22:21 PM: info bootstrap finished - 151.229s
4:22:22 PM: success run static queries - 1.069s - 3/3 2.81/s
4:22:51 PM: success run page queries - 28.993s - 78413/78413 2704.50/s
4:22:52 PM: success write out requires - 0.477s
4:23:51 PM: success Building production JavaScript and CSS bundles - 59.576s
4:23:52 PM: success Rewriting compilation hashes - 0.002s
4:30:34 PM: success Building static HTML for pages - 331.818s - 78413/78413 236.31/s
4:30:53 PM: success onPostBuild - 18.702s
4:31:02 PM: info Done building in 672.004 sec
4:31:03 PM:
4:31:03 PM: (build.command completed in 11m 13.9s)
4:31:03 PM:
4:31:03 PM: ┌─────────────────────────────────────────────────────────┐
4:31:03 PM: │ 3. onPostBuild command from netlify-plugin-gatsby-cache │
4:31:03 PM: └─────────────────────────────────────────────────────────┘
4:31:03 PM:
4:33:26 PM: Stored the Gatsby cache to speed up future builds.
4:33:26 PM:
4:33:26 PM: (netlify-plugin-gatsby-cache onPostBuild completed in 2m 23s)
4:33:27 PM:
4:33:27 PM: ┌─────────────────────────────┐
4:33:27 PM: │ Netlify Build Complete │
4:33:27 PM: └─────────────────────────────┘
4:33:27 PM:
4:33:27 PM: (Netlify Build completed in 13m 57.1s)
4:33:27 PM: Caching artifacts
4:33:27 PM: Started saving node modules
4:33:27 PM: Finished saving node modules
4:33:27 PM: Started saving build plugins
4:33:27 PM: Finished saving build plugins
4:33:27 PM: Started saving yarn cache
4:33:27 PM: Finished saving yarn cache
4:33:27 PM: Started saving pip cache
4:33:27 PM: Finished saving pip cache
4:33:27 PM: Started saving emacs cask dependencies
4:33:27 PM: Finished saving emacs cask dependencies
4:33:27 PM: Started saving maven dependencies
4:33:27 PM: Finished saving maven dependencies
4:33:27 PM: Started saving boot dependencies
4:33:27 PM: Finished saving boot dependencies
4:33:27 PM: Started saving go dependencies
4:33:34 PM: Finished saving go dependencies
4:33:34 PM: Build script success
4:33:34 PM: Starting to deploy site from 'public'
4:34:19 PM: Creating deploy tree asynchronously
4:34:25 PM: Creating deploy upload records
4:37:03 PM: 156845 new files to upload
4:37:03 PM: 0 new functions to upload
5:01:52 PM: Build exceeded maximum allowed runtime
5:03:44 PM: Failed to upload file: filme/o-jogo-da-forca/index.html
5:03:46 PM: Failed to upload file: filme/o-jogo-da-guerra/index.html
5:03:47 PM: Failed to upload file: filme/o-jogo-da-trapaca/index.html
5:03:47 PM: Failed to upload file: filme/o-jik-geu-dae-man/index.html
5:03:48 PM: Failed to upload file: filme/o-jogo-com-o-fogo/index.html
5:03:51 PM: Failed to upload file: filme/o-jardim/index.html
5:03:52 PM: Failed to upload file: filme/o-jogo-da-verdade/index.html
5:03:57 PM: Failed to upload file: filme/o-irmao-que-veio-de-outro-planeta/index.html
5:04:09 PM: Failed to upload file: filme/o-jantar/index.html
5:04:10 PM: Failed to upload file: filme/o-invisivel/index.html
5:04:10 PM: Failing build: Failed to deploy site
5:04:40 PM: Failed to inform the API about a failed build, please retry the build or contact support
5:04:40 PM: Finished processing build request in 47m43.737511642s
Even with a large amount of pages, the amount of time to build (47min) seems too much. What I could be doing wrong?