My site name is: code-comments
I’m trying to follow the guide: [Support Guide] How do I access private repositories in the build environment?
The issue I’m having is understanding what to do with multiple private submodules. Per the guide:
You can use this workflow with multiple private submodules attached to the same repository, but that does take some extra work since GitHub does not allow Deploy Keys to be used in multiple places. You’ll have to instead add them to a user (perhaps you? or maybe a robot-account that you create on GitHub) that has access to all repos.
What does it mean to add them to a user? I tried adding the one key to my user as a new ssh key, but that seemed to fail?
I recognize that I’m asking Netlify to tell me how to use GitHub… but I’m hoping someone can at least point me in the right direction
Full build logs:
5:35:56 PM: Build ready to start
5:36:05 PM: build-image version: 9d79ad851d6eff3969322d6e5b1df3d597650c41
5:36:05 PM: build-image tag: v3.3.19
5:36:05 PM: buildbot version: 2cc7ea668a3e8f63326d15aab17e62cd1997fa2e
5:36:05 PM: Fetching cached dependencies
5:36:05 PM: Starting to download cache of 254.4KB
5:36:05 PM: Finished downloading cache in 83.177007ms
5:36:05 PM: Starting to extract cache
5:36:05 PM: Failed to fetch cache, continuing with build
5:36:05 PM: Starting to prepare the repo for build
5:36:05 PM: No cached dependencies found. Cloning fresh repo
5:36:05 PM: git clone https://github.com/stephencweiss/stephencharlesweiss.com
5:36:09 PM: Preparing Git Reference pull/379/head
5:36:16 PM: Starting build script
5:36:16 PM: Installing dependencies
5:36:16 PM: Python version set to 2.7
5:36:17 PM: Attempting node version '12' from .nvmrc
5:36:17 PM: Downloading and installing node v12.18.2...
5:36:18 PM: Downloading https://nodejs.org/dist/v12.18.2/node-v12.18.2-linux-x64.tar.xz...
5:36:18 PM: Computing checksum with sha256sum
5:36:18 PM: Checksums matched!
5:36:21 PM: Now using node v12.18.2 (npm v6.14.5)
5:36:21 PM: Started restoring cached build plugins
5:36:21 PM: Finished restoring cached build plugins
5:36:21 PM: Attempting ruby version 2.7.1, read from environment
5:36:22 PM: Using ruby version 2.7.1
5:36:23 PM: Using PHP version 5.6
5:36:23 PM: 5.2 is already installed.
5:36:23 PM: Using Swift version 5.2
5:36:23 PM: Started restoring cached node modules
5:36:23 PM: Finished restoring cached node modules
5:36:23 PM: Installing NPM modules using NPM version 6.14.5
5:37:21 PM: > sharp@0.25.4 install /opt/build/repo/node_modules/sharp
5:37:21 PM: > (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)
5:37:21 PM: info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.9.1/libvips-8.9.1-linux-x64.tar.gz
5:37:23 PM: > husky@4.2.5 install /opt/build/repo/node_modules/husky
5:37:23 PM: > node husky install
5:37:24 PM: husky > Setting up git hooks
5:37:24 PM: CI detected, skipping Git hooks installation.
5:37:24 PM: husky > Done
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/bmp/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/core/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/custom/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/gif/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/jpeg/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-blit/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-blur/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-circle/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-color/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:24 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-contain/node_modules/core-js
5:37:24 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-cover/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-crop/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-displace/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-dither/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-fisheye/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-flip/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-gaussian/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-invert/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-mask/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-normalize/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-print/node_modules/core-js
5:37:25 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-resize/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-rotate/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-scale/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-shadow/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugin-threshold/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/plugins/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/png/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/tiff/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/types/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:26 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/@jimp/utils/node_modules/core-js
5:37:26 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:27 PM: > core-js@2.6.11 postinstall /opt/build/repo/node_modules/core-js
5:37:27 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:27 PM: > core-js-pure@3.6.5 postinstall /opt/build/repo/node_modules/core-js-pure
5:37:27 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:27 PM: > ejs@2.7.4 postinstall /opt/build/repo/node_modules/ejs
5:37:27 PM: > node ./postinstall.js
5:37:27 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/jimp/node_modules/core-js
5:37:27 PM: > node -e "try{require('./postinstall')}catch(e){}"
5:37:28 PM: > gatsby-telemetry@1.3.14 postinstall /opt/build/repo/node_modules/gatsby-telemetry
5:37:28 PM: > node src/postinstall.js || true
5:37:28 PM: > cwebp-bin@5.1.0 postinstall /opt/build/repo/node_modules/cwebp-bin
5:37:28 PM: > node lib/install.js
5:37:29 PM: ✔ cwebp pre-build test passed successfully
5:37:29 PM: > mozjpeg@6.0.1 postinstall /opt/build/repo/node_modules/mozjpeg
5:37:29 PM: > node lib/install.js
5:37:29 PM: ✔ mozjpeg pre-build test passed successfully
5:37:29 PM: > pngquant-bin@5.0.2 postinstall /opt/build/repo/node_modules/pngquant-bin
5:37:29 PM: > node lib/install.js
5:37:30 PM: ✔ pngquant pre-build test passed successfully
5:37:30 PM: > gatsby-cli@2.12.52 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
5:37:30 PM: > node scripts/postinstall.js
5:37:30 PM: > gatsby@2.23.12 postinstall /opt/build/repo/node_modules/gatsby
5:37:30 PM: > node scripts/postinstall.js
5:37:30 PM: > husky@4.2.5 postinstall /opt/build/repo/node_modules/husky
5:37:30 PM: > opencollective-postinstall || exit 0
5:37:33 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
5:37:33 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
5:37:33 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/chokidar/node_modules/fsevents):
5:37:33 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
5:37:33 PM: added 2745 packages from 1369 contributors and audited 2756 packages in 69.747s
5:37:36 PM: 171 packages are looking for funding
5:37:36 PM: run `npm fund` for details
5:37:36 PM: found 1291 low severity vulnerabilities
5:37:36 PM: run `npm audit fix` to fix them, or `npm audit` for details
5:37:36 PM: NPM modules installed
5:37:36 PM: Started restoring cached go cache
5:37:36 PM: Finished restoring cached go cache
5:37:36 PM: go version go1.14.4 linux/amd64
5:37:36 PM: go version go1.14.4 linux/amd64
5:37:36 PM: Installing missing commands
5:37:36 PM: Verify run directory
5:37:38 PM:
5:37:38 PM: ┌─────────────────────────────┐
5:37:38 PM: │ Netlify Build │
5:37:38 PM: └─────────────────────────────┘
5:37:38 PM:
5:37:38 PM: ❯ Version
5:37:38 PM: @netlify/build 2.0.25
5:37:38 PM:
5:37:38 PM: ❯ Flags
5:37:38 PM: deployId: 5effb2cc0e71d0fc4a3aae0a
5:37:38 PM: mode: buildbot
5:37:38 PM:
5:37:38 PM: ❯ Current directory
5:37:38 PM: /opt/build/repo
5:37:38 PM:
5:37:38 PM: ❯ Config file
5:37:38 PM: No config file was defined: using default values.
5:37:38 PM:
5:37:38 PM: ❯ Context
5:37:38 PM: deploy-preview
5:37:38 PM:
5:37:38 PM: ┌───────────────────────────────────┐
5:37:38 PM: │ 1. Build command from Netlify app │
5:37:38 PM: └───────────────────────────────────┘
5:37:38 PM:
5:37:38 PM: $ npm run build
5:37:38 PM: > stephencharlesweiss.com@0.1.0 build /opt/build/repo
5:37:38 PM: > npm run pre-build && gatsby build
5:37:38 PM: > stephencharlesweiss.com@0.1.0 pre-build /opt/build/repo
5:37:38 PM: > npm run submodules && npm run clean && npm run site-stats
5:37:39 PM: > stephencharlesweiss.com@0.1.0 submodules /opt/build/repo
5:37:39 PM: > git submodule update --remote
5:37:39 PM: Host key verification failed.
5:37:39 PM: fatal: Could not read from remote repository.
5:37:39 PM: Please make sure you have the correct access rights
5:37:39 PM: and the repository exists.
5:37:39 PM: Unable to fetch in submodule path 'content'
5:37:39 PM: npm ERR! code ELIFECYCLE
5:37:39 PM: npm ERR! errno 1
5:37:39 PM: npm ERR! stephencharlesweiss.com@0.1.0 submodules: `git submodule update --remote`
5:37:39 PM: npm ERR! Exit status 1
5:37:39 PM: npm ERR!
5:37:39 PM: npm ERR! Failed at the stephencharlesweiss.com@0.1.0 submodules script.
5:37:39 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
5:37:39 PM: npm ERR! A complete log of this run can be found in:
5:37:39 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-07-03T22_37_39_294Z-debug.log
5:37:39 PM: npm ERR! code ELIFECYCLE
5:37:39 PM: npm ERR! errno 1
5:37:39 PM: npm ERR! stephencharlesweiss.com@0.1.0 pre-build: `npm run submodules && npm run clean && npm run site-stats`
5:37:39 PM: npm ERR! Exit status 1
5:37:39 PM: npm ERR!
5:37:39 PM: npm ERR! Failed at the stephencharlesweiss.com@0.1.0 pre-build script.
5:37:39 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
5:37:39 PM: npm ERR! A complete log of this run can be found in:
5:37:39 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-07-03T22_37_39_312Z-debug.log
5:37:39 PM: npm ERR! code ELIFECYCLE
5:37:39 PM: npm ERR! errno 1
5:37:39 PM: npm ERR! stephencharlesweiss.com@0.1.0 build: `npm run pre-build && gatsby build`
5:37:39 PM: npm ERR! Exit status 1
5:37:39 PM: npm ERR!
5:37:39 PM: npm ERR! Failed at the stephencharlesweiss.com@0.1.0 build script.
5:37:39 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
5:37:39 PM: npm ERR! A complete log of this run can be found in:
5:37:39 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-07-03T22_37_39_327Z-debug.log
5:37:39 PM:
5:37:39 PM: ┌─────────────────────────────┐
5:37:39 PM: │ "build.command" failed │
5:37:39 PM: └─────────────────────────────┘
5:37:39 PM:
5:37:39 PM: Error message
5:37:39 PM: Command failed with exit code 1: npm run build
5:37:39 PM:
5:37:39 PM: Error location
5:37:39 PM: In Build command from Netlify app:
5:37:39 PM: npm run build
5:37:39 PM:
5:37:39 PM: Resolved config
5:37:39 PM: build:
5:37:39 PM: command: npm run build
5:37:39 PM: commandOrigin: ui
5:37:39 PM: environment:
5:37:39 PM: - REVIEW_ID
5:37:39 PM: publish: /opt/build/repo/public
5:37:39 PM: Caching artifacts
5:37:39 PM: Started saving node modules
5:37:39 PM: Finished saving node modules
5:37:39 PM: Started saving build plugins
5:37:39 PM: Finished saving build plugins
5:37:39 PM: Started saving pip cache
5:37:39 PM: Finished saving pip cache
5:37:39 PM: Started saving emacs cask dependencies
5:37:39 PM: Finished saving emacs cask dependencies
5:37:39 PM: Started saving maven dependencies
5:37:39 PM: Finished saving maven dependencies
5:37:39 PM: Started saving boot dependencies
5:37:39 PM: Finished saving boot dependencies
5:37:39 PM: Started saving go dependencies
5:37:39 PM: Finished saving go dependencies
5:37:42 PM: Error running command: Build script returned non-zero exit code: 1
5:37:42 PM: Failing build: Failed to build site
5:37:43 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
5:37:43 PM: Finished processing build request in 1m37.856010622s