Trying to deploy a Gatsby site but keep getting stuck. I’ve tried clearing the Netify UI cache, deleting node_modules, yarn.lock and running yarn
again to rebuild. I’ve also pasted my package-json
file below the log.
trusting-volhard-3d6797
10:37:20 PM: Build ready to start
10:37:21 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
10:37:21 PM: build-image tag: v3.4.1
10:37:21 PM: buildbot version: 4c73738fafb40608518be6837f4675455e8cfe64
10:37:21 PM: Fetching cached dependencies
10:37:21 PM: Starting to download cache of 254.8KB
10:37:21 PM: Finished downloading cache in 75.67934ms
10:37:21 PM: Starting to extract cache
10:37:21 PM: Failed to fetch cache, continuing with build
10:37:21 PM: Starting to prepare the repo for build
10:37:22 PM: No cached dependencies found. Cloning fresh repo
10:37:22 PM: git clone https://github.com/dsound-zz/50AndFullStack
10:37:22 PM: Preparing Git Reference refs/heads/master
10:37:24 PM: Different publish path detected, going to use the one specified in the Netlify
configuration file: 'public' versus 'public/' in the Netlify UI
10:37:24 PM: Starting build script
10:37:24 PM: Installing dependencies
10:37:24 PM: Python version set to 2.7
10:37:25 PM: v12.18.0 is already installed.
10:37:25 PM: Now using node v12.18.0 (npm v6.14.4)
10:37:25 PM: Started restoring cached build plugins
10:37:25 PM: Finished restoring cached build plugins
10:37:25 PM: Attempting ruby version 2.7.1, read from environment
10:37:27 PM: Using ruby version 2.7.1
10:37:27 PM: Using PHP version 5.6
10:37:27 PM: 5.2 is already installed.
10:37:27 PM: Using Swift version 5.2
10:37:27 PM: Started restoring cached node modules
10:37:27 PM: Finished restoring cached node modules
10:37:27 PM: Started restoring cached yarn cache
10:37:27 PM: Finished restoring cached yarn cache
10:37:27 PM: Installing yarn at version 1.22.4
10:37:27 PM: Installing Yarn!
10:37:27 PM: > Downloading tarball...
10:37:27 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz -->
/tmp/yarn.tar.gz.8Bqd5JCFIa
10:37:27 PM: % Total % Received % Xferd Average Speed Time Time Time Current
10:37:27 PM: Dload Upload Total Spent Left Speed
10:37:27 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
10:37:27 PM: 100 80 100 80 0 0 224 0 --:--:-- --:--:-- --:--:-- 224
10:37:28 PM: 100 93 100 93 0 0 136 0 --:--:-- --:--:-- --:--:-- 136
10:37:28 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
10:37:28 PM: 100 630 100 630 0 0 676 0 --:--:-- --:--:-- --:--:-- 2985
10:37:28 PM: 100 1215k 100 1215k 0 0 899k 0 0:00:01 0:00:01 --:--:-- 899k
10:37:28 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc -->
/tmp/yarn.tar.gz.8Bqd5JCFIa.asc
10:37:28 PM: 100 84 100 84 0 0 2105 0 --:--:-- --:--:-- --:--:-- 2105
10:37:28 PM: 100 97 100 97 0 0 1323 0 --:--:-- --:--:-- --:--:-- 1323
10:37:28 PM: 100 634 100 634 0 0 5988 0 --:--:-- --:--:-- --:--:-- 5988
10:37:28 PM: 100 1028 100 1028 0 0 7031 0 --:--:-- --:--:-- --:--:-- 7031
10:37:29 PM: > Verifying integrity...
10:37:29 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID
69475BAA
10:37:29 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
10:37:29 PM: gpg: WARNING: This key is not certified with a trusted signature!
10:37:29 PM: gpg: There is no indication that the signature belongs to the owner.
10:37:29 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
10:37:29 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
10:37:29 PM: > GPG signature looks good
10:37:29 PM: > Extracting to ~/.yarn...
10:37:29 PM: > Adding to $PATH...
10:37:29 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn`
command will now be available.
10:37:29 PM: Installing NPM modules using Yarn version 1.22.4
10:37:30 PM: yarn install v1.22.4
10:37:30 PM: [1/4] Resolving packages...
10:37:31 PM: [2/4] Fetching packages...
10:37:35 PM: warning url-loader@1.1.2: Invalid bin field for "url-loader".
10:37:57 PM: info fsevents@2.1.3: The platform "linux" is incompatible with this module.
10:37:57 PM: info "fsevents@2.1.3" is an optional dependency and failed compatibility check.
Excluding it from installation.
10:37:57 PM: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
10:37:57 PM: info "fsevents@1.2.13" is an optional dependency and failed compatibility check.
`Excluding it from installation.`
10:37:57 PM: [3/4] Linking dependencies...
10:37:57 PM: warning "gatsby > @pmmmwh/react-refresh-webpack-plugin@0.3.3" has incorrect
peer dependency "react-refresh@^0.8.2".
10:37:57 PM: warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer
`dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev ||
>=`
`3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".`
10:37:57 PM: warning "gatsby > gatsby-cli > gatsby-recipes > gatsby-interface@0.0.166" has
incorrect peer dependency "gatsby@2.6.0".
10:37:57 PM: warning "gatsby > gatsby-cli > gatsby-recipes > gatsby-interface@0.0.166" has
incorrect peer dependency "react@16.8.1".
10:37:57 PM: warning "gatsby > gatsby-cli > gatsby-recipes > gatsby-interface@0.0.166" has
incorrect peer dependency "react-dom@16.8.1".
10:37:57 PM: warning "gatsby-plugin-sass > sass-loader@7.3.1" has unmet peer dependency
"webpack@^3.0.0 || ^4.0.0".
10:38:14 PM: [4/4] Building fresh packages...
10:38:20 PM: Done in 50.14s.
10:38:20 PM: NPM modules installed using Yarn
10:38:20 PM: Started restoring cached go cache
10:38:20 PM: Finished restoring cached go cache
10:38:20 PM: go version go1.14.4 linux/amd64
10:38:20 PM: go version go1.14.4 linux/amd64
10:38:20 PM: Installing missing commands
10:38:20 PM: Verify run directory
10:38:21 PM:
10:38:21 PM: ┌─────────────────────────────┐
10:38:21 PM: │ Netlify Build │
10:38:21 PM: └─────────────────────────────┘
10:38:21 PM:
10:38:21 PM: ❯ Version
10:38:21 PM: @netlify/build 3.1.5
10:38:21 PM:
10:38:21 PM: ❯ Flags
10:38:21 PM: deployId: 5f2b6cdfdbfb5ed95e458b15
10:38:21 PM: mode: buildbot
10:38:21 PM: timersFile: /tmp/substage_times.txt
10:38:21 PM:
10:38:21 PM: ❯ Current directory
10:38:21 PM: /opt/build/repo
10:38:21 PM:
10:38:21 PM: ❯ Config file
10:38:21 PM: No config file was defined: using default values.
10:38:21 PM:
10:38:21 PM: ❯ Context
10:38:21 PM: production
10:38:21 PM:
10:38:21 PM: ┌───────────────────────────────────┐
10:38:21 PM: │ 1. Build command from Netlify app │
10:38:21 PM: └───────────────────────────────────┘
10:38:21 PM:
10:38:21 PM: $ gatsby build
10:38:24 PM: success open and validate gatsby-configs - 0.020s
10:38:25 PM: success load plugins - 0.674s
10:38:25 PM: success onPreInit - 0.004s
10:38:25 PM: success delete html and css files from previous builds - 0.024s
10:38:25 PM: success initialize cache - 0.011s
10:38:25 PM: success copy gatsby files - 0.112s
10:38:25 PM: error Problems with gatsby-source-contentful plugin options:
10:38:25 PM: spaceId: undefined - "spaceId" is required
10:38:25 PM: accessToken: "***************************************bdk0"
10:38:25 PM: host (default value): "cdn.contentful.com"
10:38:25 PM: environment (default value): "master"
10:38:25 PM: downloadLocal (default value): false
10:38:25 PM: localeFilter (default value): [Function]
10:38:25 PM: forceFullSync (default value): false
10:38:25 PM: pageLimit (default value): 100
10:38:25 PM: useNameForId (default value): true
10:38:25 PM: not finished onPreBootstrap - 0.028s
10:38:25 PM:
10:38:25 PM: ┌─────────────────────────────┐
10:38:25 PM: │ "build.command" failed │
10:38:25 PM: └─────────────────────────────┘
10:38:25 PM:
10:38:25 PM: Error message
10:38:25 PM: Command failed with exit code 1: gatsby build
10:38:25 PM:
10:38:25 PM: Error location
10:38:25 PM: In Build command from Netlify app:
10:38:25 PM: gatsby build
10:38:25 PM:
10:38:25 PM: Resolved config
10:38:25 PM: build:
10:38:25 PM: command: gatsby build
10:38:25 PM: commandOrigin: ui
10:38:25 PM: environment:
10:38:25 PM: - CI
10:38:25 PM: - CONTENTFUL_ACCESS_TOKEN
10:38:25 PM: - CONTENTFUL_SPACE
10:38:25 PM: publish: /opt/build/repo/public
10:38:25 PM: Caching artifacts
10:38:25 PM: Started saving node modules
10:38:25 PM: Finished saving node modules
10:38:25 PM: Started saving build plugins
10:38:25 PM: Finished saving build plugins
10:38:25 PM: Started saving yarn cache
10:38:25 PM: Finished saving yarn cache
10:38:25 PM: Started saving pip cache
10:38:25 PM: Finished saving pip cache
10:38:25 PM: Started saving emacs cask dependencies
10:38:25 PM: Finished saving emacs cask dependencies
10:38:25 PM: Started saving maven dependencies
10:38:25 PM: Finished saving maven dependencies
10:38:25 PM: Started saving boot dependencies
10:38:25 PM: Finished saving boot dependencies
10:38:25 PM: Started saving go dependencies
10:38:25 PM: Finished saving go dependencies
10:38:28 PM: Error running command: Build script returned non-zero exit code: 1
10:38:28 PM: Failing build: Failed to build site
10:38:28 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
10:38:28 PM: Finished processing build request in 1m7.188162047s`Preformatted text`
My package-json
file:
{
"name": "gatsby-starter-hello-world",
"private": true,
"description": "A simplified bare-bones starter for Gatsby",
"version": "0.1.0",
"license": "0BSD",
"scripts": {
"build": "gatsby build",
"develop": "env-cmd -f .env gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
},
"dependencies": {
"@contentful/rich-text-react-renderer": "^14.1.1",
"gatsby": "^2.10.00",
"gatsby-plugin-react-helmet": "^3.3.10",
"gatsby-plugin-sass": "^2.3.12",
"gatsby-plugin-sharp": "^2.6.24",
"gatsby-remark-images": "^3.0.10",
"gatsby-remark-relative-images": "^0.3.0",
"gatsby-source-contentful": "^2.3.34",
"gatsby-source-filesystem": "^2.3.19",
"gatsby-transformer-remark": "^2.8.25",
"node-sass": "^4.14.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^6.1.0",
"yarn": "^1.22.4"
},
"devDependencies": {
"env-cmd": "^10.1.0",
"prettier": "2.0.5"
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-hello-world"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}