Home
Support Forums

Build exceeded Maximum Runtime

Having issues with my production branch (master) building. Not sure if Im running out of build time or if there is some larger issue with images/cache.

Also I don’t have any issues running this project locally and it only fails on production.

Netlify Site Name: residencies-mvp.netlify.app

Build Log:

1:19:28 PM: Build ready to start
1:19:30 PM: build-image version: 3571f0130496395a23bffe9820bc78b4f73a6234
1:19:30 PM: build-image tag: v3.7.0
1:19:30 PM: buildbot version: 35681551598b95548b996201c978361e7ed9f7e7
1:19:30 PM: Fetching cached dependencies
1:19:30 PM: Starting to download cache of 12.5GB
1:21:05 PM: Finished downloading cache in 1m34.868306884s
1:21:05 PM: Starting to extract cache
1:24:24 PM: Finished extracting cache in 3m19.136807259s
1:24:27 PM: Finished fetching cache in 4m56.934399118s
1:24:27 PM: Starting to prepare the repo for build
1:24:27 PM: Netlify Large Media is enabled, running git commands with GIT_LFS_SKIP_SMUDGE=1
1:24:27 PM: Preparing Git Reference refs/heads/master
1:24:30 PM: Starting build script
1:24:30 PM: Installing dependencies
1:24:30 PM: Python version set to 2.7
1:24:31 PM: Started restoring cached node version
1:24:39 PM: Finished restoring cached node version
1:24:39 PM: Attempting node version 'v10.15.1' from .nvmrc
1:24:40 PM: v10.15.1 is already installed.
1:24:41 PM: Now using node v10.15.1 (npm v6.4.1)
1:24:41 PM: Started restoring cached build plugins
1:24:41 PM: Finished restoring cached build plugins
1:24:41 PM: Attempting ruby version 2.7.1, read from environment
1:24:43 PM: Using ruby version 2.7.1
1:24:43 PM: Using PHP version 5.6
1:24:43 PM: Started restoring cached node modules
1:24:43 PM: Finished restoring cached node modules
1:24:43 PM: Started restoring cached go cache
1:24:43 PM: Finished restoring cached go cache
1:24:43 PM: go version go1.14.4 linux/amd64
1:24:43 PM: go version go1.14.4 linux/amd64
1:24:43 PM: Installing missing commands
1:24:43 PM: Verify run directory
1:24:45 PM: ​
1:24:45 PM: ────────────────────────────────────────────────────────────────
1:24:45 PM:   Netlify Build                                                 
1:24:45 PM: ────────────────────────────────────────────────────────────────
1:24:45 PM: ​
1:24:45 PM: ❯ Version
1:24:45 PM:   @netlify/build 9.10.2
1:24:45 PM: ​
1:24:45 PM: ❯ Flags
1:24:45 PM:   apiHost: api.netlify.com
1:24:45 PM:   cacheDir: /opt/build/cache
1:24:45 PM:   deployId: 60526450a39b26000797f722
1:24:45 PM:   mode: buildbot
1:24:45 PM:   testOpts:
1:24:45 PM:     silentLingeringProcesses: ''
1:24:45 PM: ​
1:24:45 PM: ❯ Current directory
1:24:45 PM:   /opt/build/repo
1:24:45 PM: ​
1:24:45 PM: ❯ Config file
1:24:45 PM:   /opt/build/repo/netlify.toml
1:24:45 PM: ​
1:24:45 PM: ❯ Context
1:24:45 PM:   production
1:24:45 PM: (node:1276) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
1:24:45 PM: ​
1:24:45 PM: ❯ Loading plugins
1:24:45 PM:    - netlify-plugin-gatsby-cache@0.3.0 from netlify.toml
1:24:46 PM: ​
1:24:46 PM: ────────────────────────────────────────────────────────────────
1:24:46 PM:   1. onPreBuild command from netlify-plugin-gatsby-cache        
1:24:46 PM: ────────────────────────────────────────────────────────────────
1:24:46 PM: ​
1:26:17 PM: Found a Gatsby cache. We’re about to go FAST. ⚑️
1:26:17 PM: ​
1:26:17 PM: (netlify-plugin-gatsby-cache onPreBuild completed in 1m 30.9s)
1:26:17 PM: ​
1:26:17 PM: ────────────────────────────────────────────────────────────────
1:26:17 PM:   2. Build command from Netlify app                             
1:26:17 PM: ────────────────────────────────────────────────────────────────
1:26:17 PM: ​
1:26:17 PM: $ gatsby build
1:26:23 PM: success open and validate gatsby-configs - 0.094s
1:26:26 PM: success load plugins - 2.965s
1:26:26 PM: success onPreInit - 0.042s
1:26:26 PM: success delete html and css files from previous builds - 0.015s
1:26:26 PM: success initialize cache - 0.006s
1:26:27 PM: success copy gatsby files - 0.264s
1:26:27 PM: success onPreBootstrap - 0.061s
1:26:27 PM: success createSchemaCustomization - 0.024s
1:26:27 PM: info Starting to fetch all data from Drupal
1:27:20 PM: success Fetch all data from Drupal - 53.303s
1:27:21 PM: info Downloading remote files from Drupal
1:30:23 PM: success Remote file download - 182.505s
1:30:25 PM: success Downloading remote files - 184.182s - 5791/5791 31.44/s
1:30:25 PM: success Checking for changed pages - 0.000s
1:30:25 PM: success source and transform nodes - 238.365s
1:30:28 PM: success building schema - 2.235s
1:30:28 PM: info Total nodes: 25503, SitePage nodes: 49 (use --verbose for breakdown)
1:30:28 PM: success createPages - 0.132s
1:30:28 PM: success Checking for changed pages - 0.000s
1:30:28 PM: success createPagesStatefully - 0.077s
1:30:28 PM: success Cleaning up stale page-data - 0.003s
1:30:28 PM: success update schema - 0.045s
1:30:28 PM: success onPreExtractQueries - 0.000s
1:30:29 PM: success extract queries from components - 1.053s
1:30:29 PM: success write out redirect data - 0.411s
1:30:29 PM: success Build manifest and related icons - 0.169s
1:30:30 PM: success onPostBootstrap - 0.787s
1:30:30 PM: info bootstrap finished - 253.356s
1:30:55 PM: warning Query takes too long:
1:30:55 PM: File path: /opt/build/repo/src/templates/LandingPage.tsx
1:30:55 PM: URL path: /rheumatology-fellowship
1:30:55 PM: Context: {
1:30:55 PM:     "slug": 121,
1:30:55 PM:     "langcode": "en"
1:30:55 PM: }
1:30:55 PM: warning Query takes too long:
1:30:55 PM: File path: /opt/build/repo/src/templates/LandingPage.tsx
1:30:55 PM: URL path: /adult-specialization-internship
1:30:55 PM: Context: {
1:30:55 PM:     "slug": 316,
1:30:55 PM:     "langcode": "en"
1:30:55 PM: }
1:30:55 PM: warning Query takes too long:
1:30:55 PM: File path: /opt/build/repo/src/templates/LandingPage.tsx
1:30:55 PM: URL path: /radiology-residency-fellowship
1:30:55 PM: Context: {
1:30:55 PM:     "slug": 161,
1:30:55 PM:     "langcode": "en"
1:30:55 PM: }
1:30:55 PM: warning Query takes too long:
1:30:55 PM: File path: /opt/build/repo/src/templates/LandingPage.tsx
1:30:55 PM: URL path: /general-surgery-residency
1:30:55 PM: Context: {
1:30:55 PM:     "slug": 251,
1:30:55 PM:     "langcode": "en"
1:30:55 PM: }
1:32:38 PM: warning Query takes too long:
1:32:38 PM: File path: /opt/build/repo/src/templates/LandingPage.tsx
1:32:38 PM: URL path: /infectious-diseases-fellowship
1:32:38 PM: Context: {
1:32:38 PM:     "slug": 116,
1:32:38 PM:     "langcode": "en"
1:32:38 PM: }
1:32:48 PM: warning Query takes too long:
1:32:48 PM: File path: /opt/build/repo/src/templates/LandingPage.tsx
1:32:48 PM: URL path: /pharmacy-residency
1:32:48 PM: Context: {
1:32:48 PM:     "slug": 266,
1:32:48 PM:     "langcode": "en"
1:32:48 PM: }
1:32:55 PM: warning Query takes too long:
1:32:55 PM: File path: /opt/build/repo/src/templates/LandingPage.tsx
1:32:55 PM: URL path: /ophthalmology-residency
1:32:55 PM: Context: {
1:32:55 PM:     "slug": 186,
1:32:55 PM:     "langcode": "en"
1:32:55 PM: }
1:33:10 PM: success run page queries - 160.023s - 44/44 0.27/s
1:33:10 PM: success write out requires - 0.005s
1:33:12 PM: warning Browserslist: caniuse-lite is outdated. Please run:
1:33:12 PM: npx browserslist@latest --update-db
1:33:29 PM: success Building production JavaScript and CSS bundles - 18.920s
1:49:28 PM: Build exceeded maximum allowed runtime
1:49:40 PM: error Processing /opt/build/repo/.cache/caches/gatsby-source-filesystem/72802fb04a3bea3e342cb8c296c4b5eb/first%20year%20team%20building.png failed
1:49:40 PM: Original error:
1:49:40 PM: ENOENT: no such file or directory, open '/opt/build/repo/public/static/4b92d4a63b9933010759bd964f4a21a5/f3dec/first%20year%20team%20building.png'
1:49:40 PM: 
1:49:40 PM: 
1:49:40 PM:   WorkerError: Processing /opt/build/repo/.cache/caches/gatsby-source-filesystem  /72802fb04a3bea3e342cb8c296c4b5eb/first%20year%20team%20building.png failed
1:49:40 PM:   Original error:
1:49:40 PM:   ENOENT: no such file or directory, open '/opt/build/repo/public/static/4b92d4a  63b9933010759bd964f4a21a5/f3dec/first%20year%20team%20building.png'
1:49:40 PM:   
1:49:40 PM:   - jobs-manager.ts:318 enqueueJob
1:49:40 PM:     [repo]/[gatsby]/src/utils/jobs-manager.ts:318:21
1:49:40 PM:   
1:49:40 PM: 
1:49:40 PM: not finished Generating image thumbnails - 1149.449s
1:49:41 PM: ​
1:49:41 PM: ────────────────────────────────────────────────────────────────
1:49:41 PM:   "build.command" failed                                        
1:49:41 PM: ────────────────────────────────────────────────────────────────
1:49:41 PM: ​
1:49:41 PM:   Error message
1:49:41 PM:   Command failed with exit code 1: gatsby build
1:49:41 PM: ​
1:49:41 PM:   Error location
1:49:41 PM:   In Build command from Netlify app:
1:49:41 PM:   gatsby build
1:49:41 PM: ​
1:49:41 PM:   Resolved config
1:49:41 PM:   build:
1:49:41 PM:     command: gatsby build
1:49:41 PM:     commandOrigin: ui
1:49:41 PM:     environment:
1:49:41 PM:       - DEV_GATSBY_API_BASIC_AUTH_PASSWORD
1:49:41 PM:       - DEV_GATSBY_API_BASIC_AUTH_USERNAME
1:49:41 PM:       - DEV_GATSBY_API_KEY
1:49:41 PM:       - DEV_GATSBY_API_URL
1:49:41 PM:       - DEV_GATSBY_GMAP_KEY
1:49:41 PM:       - DEV_GATSBY_PUBLIC_URL
1:49:41 PM:       - GATSBY_API_BASIC_AUTH_PASSWORD
1:49:41 PM:       - GATSBY_API_BASIC_AUTH_USERNAME
1:49:41 PM:       - GATSBY_API_KEY
1:49:41 PM:       - GATSBY_API_URL
1:49:41 PM:       - GATSBY_GMAP_KEY
1:49:41 PM:       - GATSBY_PROJECT_NAME
1:49:41 PM:       - GATSBY_PUBLIC_URL
1:49:41 PM:       - INCOMING_HOOK_BODY
1:49:41 PM:       - INCOMING_HOOK_TITLE
1:49:41 PM:       - INCOMING_HOOK_URL
1:49:41 PM:       - INT_GATSBY_API_BASIC_AUTH_PASSWORD
1:49:41 PM:       - INT_GATSBY_API_BASIC_AUTH_USERNAME
1:49:41 PM:       - INT_GATSBY_API_KEY
1:49:41 PM:       - INT_GATSBY_API_URL
1:49:41 PM:       - INT_GATSBY_GMAP_KEY
1:49:41 PM:       - INT_GATSBY_PUBLIC_URL
1:49:41 PM:       - MASTER_GATSBY_API_BASIC_AUTH_PASSWORD
1:49:41 PM:       - MASTER_GATSBY_API_BASIC_AUTH_USERNAME
1:49:41 PM:       - MASTER_GATSBY_API_KEY
1:49:41 PM:       - MASTER_GATSBY_API_URL
1:49:41 PM:       - MASTER_GATSBY_GMAP_KEY
1:49:41 PM:       - MASTER_GATSBY_PUBLIC_URL
1:49:41 PM:       - NETLIFY_LFS_ORIGIN_URL
1:49:41 PM:       - NODE_TLS_REJECT_UNAUTHORIZED
1:49:41 PM:       - QA_GATSBY_API_BASIC_AUTH_PASSWORD
1:49:41 PM:       - QA_GATSBY_API_BASIC_AUTH_USERNAME
1:49:41 PM:       - QA_GATSBY_API_KEY
1:49:41 PM:       - QA_GATSBY_API_URL
1:49:41 PM:       - QA_GATSBY_GMAP_KEY
1:49:41 PM:       - QA_GATSBY_PUBLIC_URL
1:49:41 PM:       - STAGE_GATSBY_API_BASIC_AUTH_PASSWORD
1:49:41 PM:       - STAGE_GATSBY_API_BASIC_AUTH_USERNAME
1:49:41 PM:       - STAGE_GATSBY_API_KEY
1:49:41 PM:       - STAGE_GATSBY_API_URL
1:49:41 PM:       - STAGE_GATSBY_GMAP_KEY
1:49:41 PM:       - STAGE_GATSBY_PUBLIC_URL
1:49:41 PM:       - STORYBOOK_GATSBY_API_BASIC_AUTH_PASSWORD
1:49:41 PM:       - STORYBOOK_GATSBY_API_BASIC_AUTH_USERNAME
1:49:41 PM:       - STORYBOOK_GATSBY_API_KEY
1:49:41 PM:       - STORYBOOK_GATSBY_API_URL
1:49:41 PM:       - STORYBOOK_GATSBY_GMAP_KEY
1:49:41 PM:       - STORYBOOK_GATSBY_PUBLIC_URL
1:49:41 PM:       - ENABLE_GATSBY_REFRESH_ENDPOINT
1:49:41 PM:       - SHOW_UNPUBLISHED_CONTENT
1:49:41 PM:       - GTM_CONTAINER_ID
1:49:41 PM:     publish: /opt/build/repo/public
1:49:41 PM:   headers:
1:49:42 PM:     - for: /*      values:        Access-Control-Allow-Origin: '*'        Content-Security-Policy: frame-ancestors 'self' https://einstein.yu.edu https://cham.org http://*.montefiore.org https://*.montefiore.org http://localhost:* https://localhost:*;  plugins:    - inputs: {}      origin: config      package: netlify-plugin-gatsby-cache  redirects:    - from: /      status: 301      to: https://www.montefiore.org
1:49:42 PM: Execution timed out after 25m11.893026123s
1:49:42 PM: Error running command: Command did not finish within the time limit
1:49:42 PM: Failing build: Failed to build site
1:49:42 PM: Finished processing build request in 30m11.90163761s

Bumping this to see if anyone from support can help?

Hey there, @mediacurrent_it

Welcome to the Netlify Forums :netliconfetti:

Thanks for following up! I will take a look at this and share it with the team.

Hey there!

The build you provided appears to be timing out after 15 minutes. As a Pro customer, I’ve gone ahead and bumped that up to 30 minutes for you. Once your Gatsby site builds and is successfully cached, we find that you’ll not come close to that limit again (provided the cache remains in-tact) :grinning_face_with_smiling_eyes:!

Hope this helps!

1 Like

Thank you!

Is it possible to increase the build time up to 45 minutes on the same site? residencies-mvp. Need to get the cached assets to build on dev and stage right now and running into build time outs again.

cc: @hillary

1 Like

Hi @mediacurrent_it,

It’s done!

1 Like