Hi. I am having a similar issue. I had a working build for a couple of months and then, yesterday, it began to repeatedly fail to rebuild. No code changes had been made, just content additions in the WordPress CMS.
I contacted the gatsby-source-wordpress-experimental dev [gatsby-source-wordpress: handle 429 errors · Issue #30314 · gatsbyjs/gatsby · GitHub](Github issue) and he suggested that it is an issue with the site being rate limited. He recommended I request the build server be whitelisted or for rate limiting to be turned off.
Are either of these possible with a Pro account?
Log below:
9:30:04 PM: Build ready to start
9:30:05 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
9:30:05 PM: build-image tag: v3.4.1
9:30:05 PM: buildbot version: 648208d76731cd5bca75c1e9bc99d2032a1f1473
9:30:06 PM: Fetching cached dependencies
9:30:06 PM: Starting to download cache of 793.4MB
9:30:12 PM: Finished downloading cache in 6.494990603s
9:30:12 PM: Starting to extract cache
9:30:26 PM: Finished extracting cache in 13.93448314s
9:30:26 PM: Finished fetching cache in 20.661781503s
9:30:26 PM: Starting to prepare the repo for build
9:30:27 PM: Preparing Git Reference refs/heads/master
9:30:29 PM: Starting build script
9:30:29 PM: Installing dependencies
9:30:29 PM: Python version set to 2.7
9:30:29 PM: Started restoring cached node version
9:30:32 PM: Finished restoring cached node version
9:30:32 PM: v12.18.0 is already installed.
9:30:33 PM: Now using node v12.18.0 (npm v6.14.4)
9:30:33 PM: Started restoring cached build plugins
9:30:33 PM: Finished restoring cached build plugins
9:30:33 PM: Attempting ruby version 2.7.1, read from environment
9:30:35 PM: Using ruby version 2.7.1
9:30:35 PM: Using PHP version 5.6
9:30:35 PM: 5.2 is already installed.
9:30:35 PM: Using Swift version 5.2
9:30:35 PM: Started restoring cached node modules
9:30:35 PM: Finished restoring cached node modules
9:30:35 PM: Started restoring cached go cache
9:30:35 PM: Finished restoring cached go cache
9:30:35 PM: go version go1.14.4 linux/amd64
9:30:35 PM: go version go1.14.4 linux/amd64
9:30:35 PM: Installing missing commands
9:30:35 PM: Verify run directory
9:30:37 PM:
9:30:37 PM: ┌─────────────────────────────┐
9:30:37 PM: │ Netlify Build │
9:30:37 PM: └─────────────────────────────┘
9:30:37 PM:
9:30:37 PM: ❯ Version
9:30:37 PM: @netlify/build 4.0.4
9:30:37 PM:
9:30:37 PM: ❯ Flags
9:30:37 PM: deployId: 5f7247cc0428fd7b048b2827
9:30:37 PM: mode: buildbot
9:30:37 PM:
9:30:37 PM: ❯ Current directory
9:30:37 PM: /opt/build/repo
9:30:37 PM:
9:30:37 PM: ❯ Config file
9:30:37 PM: No config file was defined: using default values.
9:30:37 PM:
9:30:37 PM: ❯ Context
9:30:37 PM: production
9:30:37 PM:
9:30:37 PM: ❯ Loading plugins
9:30:37 PM: - netlify-plugin-gatsby-cache@0.3.0 from Netlify app
9:30:37 PM: - netlify-plugin-image-optim@0.3.0 from Netlify app
9:30:37 PM: - netlify-plugin-inline-source@1.0.4 from Netlify app
9:30:37 PM: - netlify-plugin-inline-critical-css@1.1.3 from Netlify app
9:30:43 PM:
9:30:43 PM: ┌────────────────────────────────────────────────────────┐
9:30:43 PM: │ 1. onPreBuild command from netlify-plugin-gatsby-cache │
9:30:43 PM: └────────────────────────────────────────────────────────┘
9:30:43 PM:
9:30:54 PM: Found a Gatsby cache. We’re about to go FAST. ⚡️
9:30:54 PM:
9:30:54 PM: (netlify-plugin-gatsby-cache onPreBuild completed in 11.7s)
9:30:54 PM:
9:30:54 PM: ┌───────────────────────────────────┐
9:30:54 PM: │ 2. Build command from Netlify app │
9:30:54 PM: └───────────────────────────────────┘
9:30:54 PM:
9:30:54 PM: $ GATSBY_CONCURRENT_DOWNLOAD=200 gatsby build
9:30:58 PM: success open and validate gatsby-configs - 0.080s
9:31:02 PM: success load plugins - 1.607s
9:31:02 PM: success onPreInit - 0.017s
9:31:02 PM: success delete html and css files from previous builds - 0.043s
9:31:02 PM: success initialize cache - 0.009s
9:31:02 PM: success copy gatsby files - 0.034s
9:31:02 PM: success onPreBootstrap - 0.015s
9:31:04 PM: ⠀
9:31:04 PM: warning gatsby-source-wordpress The remote schema has changed since the last build, re-fetching all data
9:31:04 PM: info gatsby-source-wordpress Cached schema md5: 0650e022a08d2819f1bc5aefb8ed8446
9:31:04 PM: info gatsby-source-wordpress Remote schema md5: 563bc9df39c9b9039cce8fa9b31b9040
9:31:04 PM: ⠀
9:31:04 PM: success gatsby-source-wordpress diff schemas - 0.690s
9:31:06 PM: success gatsby-source-wordpress writing GraphQL queries to disk at ./WordPress/GraphQL/ - 0.307s
9:31:06 PM: success gatsby-source-wordpress ingest WPGraphQL schema - 3.102s
9:31:06 PM: success createSchemaCustomization - 4.241s
9:31:07 PM: success gatsby-source-wordpress Availability - 0.688s - fetched 3
9:31:07 PM: success gatsby-source-wordpress Fuel - 0.690s - fetched 2
9:31:07 PM: success gatsby-source-wordpress Make - 0.715s - fetched 5
9:31:07 PM: success gatsby-source-wordpress Comment - 0.815s - fetched 0
9:31:07 PM: success gatsby-source-wordpress Menu - 0.877s - fetched 2
9:31:07 PM: success gatsby-source-wordpress Category - 0.973s - fetched 4
9:31:08 PM: success gatsby-source-wordpress PostFormat - 1.000s - fetched 0
9:31:08 PM: success gatsby-source-wordpress ContentType - 1.024s - fetched 4
9:31:08 PM: success gatsby-source-wordpress MenuItem - 1.175s - fetched 18
9:31:08 PM: success gatsby-source-wordpress Taxonomy - 1.234s - fetched 8
9:31:08 PM: success gatsby-source-wordpress UserRole - 1.276s - fetched 0
9:31:08 PM: success gatsby-source-wordpress Tag - 1.305s - fetched 0
9:31:08 PM: success gatsby-source-wordpress User - 1.410s - fetched 2
9:31:08 PM: success gatsby-source-wordpress Car - 1.436s - fetched 6
9:31:08 PM: success gatsby-source-wordpress Page - 1.549s - fetched 10
9:31:13 PM: success gatsby-source-wordpress Post - 6.378s - fetched 82
9:31:13 PM: success gatsby-source-wordpress MediaItem - 0.173s - fetched 0
9:31:13 PM: success gatsby-source-wordpress creating nodes - 0.174s
9:31:13 PM: success gatsby-source-wordpress fetching nodes - 6.559s - 146 total
9:31:14 PM: success gatsby-source-wordpress fetch root fields - 0.486s
9:31:14 PM: success Checking for changed pages - 0.000s
9:31:14 PM: success source and transform nodes - 7.339s
9:31:14 PM: success building schema - 0.804s
9:31:15 PM: success createPages - 0.215s
9:31:15 PM: success Checking for changed pages - 0.000s
9:31:15 PM: success createPagesStatefully - 0.136s
9:31:15 PM: success updating schema - 0.098s
9:31:15 PM: success onPreExtractQueries - 0.001s
9:31:16 PM: success extract queries from components - 1.261s
9:31:16 PM: success write out redirect data - 0.002s
9:31:17 PM: success Build manifest and related icons - 0.358s
9:31:17 PM: success onPostBootstrap - 0.360s
9:31:17 PM: info bootstrap finished - 22.203s
9:31:17 PM: error (node:1311) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
9:31:17 PM: success run static queries - 0.903s - 3/3 3.32/s
9:31:19 PM: success Downloading remote files - 2.349s - 1/1 0.43/s
9:31:20 PM: error gatsby-source-wordpress Request failed with status code 429
9:31:20 PM: Error occured while updating a single "mediaItem" node.
9:31:20 PM: GraphQL request to https://headless.apsspecialistvehicles.co.uk/wp/graphql failed.
9:31:20 PM: Please ensure the following statements are true
9:31:20 PM: - your WordPress URL is correct in gatsby-config.js
9:31:20 PM: - your server is responding to requests
9:31:20 PM: - WPGraphQL and WPGatsby are installed in your WordPress backend
9:31:20 PM: not finished run page queries - 2.403s
9:31:20 PM:
9:31:20 PM: ┌─────────────────────────────┐
9:31:20 PM: │ "build.command" failed │
9:31:20 PM: └─────────────────────────────┘
9:31:20 PM:
9:31:20 PM: Error message
9:31:20 PM: Command failed with exit code 1: GATSBY_CONCURRENT_DOWNLOAD=200 gatsby build
9:31:20 PM:
9:31:20 PM: Error location
9:31:20 PM: In Build command from Netlify app:
9:31:20 PM: GATSBY_CONCURRENT_DOWNLOAD=200 gatsby build
9:31:20 PM:
9:31:20 PM: Resolved config
9:31:20 PM: build:
9:31:20 PM: command: GATSBY_CONCURRENT_DOWNLOAD=200 gatsby build
9:31:20 PM: commandOrigin: ui
9:31:20 PM: environment:
9:31:20 PM: - GATSBY_WPGRAPHQL_URL
9:31:20 PM: publish: /opt/build/repo/public
9:31:20 PM: plugins:
9:31:20 PM: - inputs: {}
9:31:20 PM: origin: ui
9:31:20 PM: package: netlify-plugin-gatsby-cache
9:31:20 PM: - inputs: {}
9:31:20 PM: origin: ui
9:31:20 PM: package: netlify-plugin-image-optim
9:31:20 PM: - inputs: {}
9:31:20 PM: origin: ui
9:31:20 PM: package: netlify-plugin-inline-source
9:31:20 PM: - inputs: {}
9:31:20 PM: origin: ui
9:31:20 PM: package: netlify-plugin-inline-critical-css
9:31:20 PM: Caching artifacts
9:31:20 PM: Started saving node modules
9:31:20 PM: Finished saving node modules
9:31:20 PM: Started saving build plugins
9:31:20 PM: Finished saving build plugins
9:31:20 PM: Started saving pip cache
9:31:20 PM: Finished saving pip cache
9:31:20 PM: Started saving emacs cask dependencies
9:31:20 PM: Finished saving emacs cask dependencies
9:31:20 PM: Started saving maven dependencies
9:31:20 PM: Finished saving maven dependencies
9:31:20 PM: Started saving boot dependencies
9:31:21 PM: Finished saving boot dependencies
9:31:21 PM: Started saving go dependencies
9:31:21 PM: Finished saving go dependencies
9:31:21 PM: Error running command: Build script returned non-zero exit code: 2
9:31:21 PM: Failing build: Failed to build site
9:31:21 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
9:31:21 PM: Finished processing build request in 1m15.122357443s