Error running command: Build script returned non-zero exit code: 1 (No already answer sufficed)

Hi, I’ve been getting this error every time my new project tries to build. I did run gridsome build local and it built alright, so I’m bummed by its protest about Error: Can't resolve '~/components/partials/Actionbar' in '/opt/build/repo/src/components', which apparently is what’s causing the error Error running command: Build script returned non-zero exit code: 1 and then I dunno what to do to fix it…full build log is as follows

11:56:43 AM: Build ready to start
11:56:44 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
11:56:44 AM: build-image tag: v3.3.2
11:56:44 AM: buildbot version: 38cc4984170575781fef71bee035f0855939acb8
11:56:45 AM: Fetching cached dependencies
11:56:45 AM: Failed to fetch cache, continuing with build
11:56:45 AM: Starting to prepare the repo for build
11:56:45 AM: No cached dependencies found. Cloning fresh repo
11:56:45 AM: git clone git@gitlab.com:k16e/adx_v1
11:56:47 AM: Preparing Git Reference refs/heads/master
11:56:47 AM: Starting build script
11:56:47 AM: Installing dependencies
11:56:49 AM: Downloading and installing node v10.16.3...
11:56:49 AM: Downloading https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz...
11:56:49 AM:   0.8%
11:56:50 AM: 
########################################################
11:56:50 AM: ################ 100.0%
11:56:50 AM: Computing checksum with sha256sum
11:56:50 AM: Checksums matched!
11:56:53 AM: Now using node v10.16.3 (npm v6.9.0)
11:56:53 AM: Attempting ruby version 2.6.2, read from environment
11:56:55 AM: Using ruby version 2.6.2
11:56:55 AM: Using PHP version 5.6
11:56:55 AM: Started restoring cached node modules
11:56:55 AM: Finished restoring cached node modules
11:56:55 AM: Started restoring cached yarn cache
11:56:55 AM: Finished restoring cached yarn cache
11:56:55 AM: Installing yarn at version 1.17.0
11:56:55 AM: Installing Yarn!
11:56:55 AM: > Downloading tarball...
11:56:55 AM: [
11:56:55 AM: 1
11:56:55 AM: /
11:56:55 AM: 2
11:56:55 AM: ]
11:56:55 AM: :
11:56:55 AM: h
11:56:55 AM: t
11:56:55 AM: tps://yarnpkg.com/do
11:56:55 AM: wnloads/1.17.0/yarn-v1.17.0.tar.gz
11:56:55 AM: --> /tmp/yarn.tar.gz.BpMdbCmO3G
11:56:55 AM:   % Total    % Received % Xferd  Av
11:56:55 AM: erage Speed   Time    Time     Time  Current
11:56:55 AM:                                  Dload  Upload   Total   Spent    Left  Speed
11:56:55 AM: 
  0     0    0
11:56:55 AM:    0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:56:55 AM: 
  0     0    0     0    0     0      0
11:56:55 AM:    0 --:--:-- --:--:-- --:--:--     0
11:56:56 AM: 
100    93  100    93    0     0    276      0 -
11:56:56 AM: -:--:-- --:--:-- --:--:--   275
11:56:56 AM: 
100   609    0   609    0     0    828      0
11:56:56 AM: --:--:-- --:--:-- --:--:--   828
11:56:56 AM: 2
11:56:56 AM: 3 1213k   23  287k    0     0   250k      0  0:00:04  0:00:01  0:00:03  250k
11:56:56 AM: 
100 1213k  100 1213k    0     0  1006k      0  0:00:01
11:56:56 AM:   0:00:01 --:--:-- 15.8M
11:56:56 AM: [2/2]: https://ya
11:56:56 AM: rnpkg.com/downloads/1.17.0/yarn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.BpMdbCmO3G.asc
11:56:57 AM: 
100    97  100    97    0     0   1170
11:56:57 AM:   0 --:--:-- --:--:-- --:--:--  1170
11:56:57 AM: 
100   613    0   613
11:56:57 AM:   0     0   3347      0 --:--:-- --:--:-- --:--:--  3347
11:56:57 AM: 1
11:56:57 AM: 0
11:56:57 AM: 0
11:56:57 AM: 8
11:56:57 AM: 3
11:56:57 AM: 2  100   832    0     0   3539
11:56:57 AM:   0 --:--:-- --:--:-- --:--:--  3539
11:56:57 AM: > Verifying integrity...
11:56:57 AM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC using RSA key ID 69475BAA
11:56:57 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
11:56:57 AM: gpg: WARNING: This key is not certified with a trusted signature!
11:56:57 AM: gpg:          There is no indication that the signature belongs to the owner.
11:56:57 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
11:56:57 AM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
11:56:57 AM: > GPG signature looks good
11:56:57 AM: > Extracting to ~/.yarn...
11:56:57 AM: > Adding to $PATH...
11:56:57 AM: > We've added the following to your /opt/buildhome/.profile
11:56:57 AM: > If this isn't the profile of your current shell then please add the following to your correct profile:
11:56:57 AM: export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
11:56:57 AM: 
11:56:58 AM: > Successfully installed Yarn 1.17.0! Please open another terminal where the `yarn` command will now be available.
11:56:58 AM: Installing NPM modules using Yarn version 1.17.0
11:56:59 AM: yarn install v1.17.0
11:56:59 AM: [1/4] Resolving packages...
11:57:00 AM: [2/4] Fetching packages...
11:57:24 AM: info fsevents@1.2.9: The platform "linux" is incompatible with this module.
11:57:24 AM: info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
11:57:24 AM: [3/4] Linking dependencies...
11:57:24 AM: warning "gridsome-plugin-remark-shiki > shiki > shiki-themes > vscode-textmate@4.0.1" has unmet peer dependency "oniguruma@^7.0.0".
11:57:24 AM: warning " > @fortawesome/vue-fontawesome@0.1.7" has unmet peer dependency "vue@~2".
11:57:24 AM: warning " > vue-eslint-parser@6.0.4" has incorrect peer dependency "eslint@^5.0.0".
11:57:33 AM: [4/4] Building fresh packages...
11:57:37 AM: Done in 38.24s.
11:57:37 AM: NPM modules installed using Yarn
11:57:38 AM: Started restoring cached go cache
11:57:38 AM: Finished restoring cached go cache
11:57:38 AM: unset GOOS;
11:57:38 AM: unset GOARCH;
11:57:38 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
11:57:38 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
11:57:38 AM: go version >&2;
11:57:38 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
11:57:38 AM: go version go1.12 linux/amd64
11:57:38 AM: Installing missing commands
11:57:38 AM: Verify run directory
11:57:38 AM: Executing user command: gridsome build
11:57:38 AM: Gridsome v0.7.1
11:57:39 AM: Initializing plugins...
11:57:40 AM: Load sources - 0.19s
11:57:40 AM: Create GraphQL schema - 0.29s
11:57:40 AM: Create pages and templates - 0.08s
11:57:40 AM: Generate temporary code - 0.02s
11:57:40 AM: Bootstrap finish - 1.64s
11:57:40 AM: Compiling assets...
11:58:00 AM: Error: Can't resolve '~/components/partials/Actionbar' in '/opt/build/repo/src/components'
11:58:00 AM:     at doResolve (/opt/build/repo/node_modules/enhanced-resolve/lib/Resolver.js:180:19)
11:58:00 AM:     at hook.callAsync (/opt/build/repo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
11:58:00 AM:     at _fn0 (eval at create (/opt/build/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
11:58:00 AM:     at resolver.doResolve (/opt/build/repo/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:37:5)
11:58:00 AM:     at hook.callAsync (/opt/build/repo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
11:58:00 AM:     at _fn0 (eval at create (/opt/build/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
11:58:00 AM:     at hook.callAsync (/opt/build/repo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
11:58:00 AM:     at _fn0 (eval at create (/opt/build/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
11:58:00 AM:     at resolver.doResolve (/opt/build/repo/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:42:38)
11:58:00 AM:     at hook.callAsync (/opt/build/repo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
11:58:00 AM:     at _fn0 (eval at create (/opt/build/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:657:1)
11:58:00 AM:     at resolver.doResolve (/opt/build/repo/node_modules/enhanced-resolve/lib/AliasPlugin.js:47:40)
11:58:00 AM:     at hook.callAsync (/opt/build/repo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
11:58:00 AM:     at _fn0 (eval at create (/opt/build/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
11:58:00 AM:     at resolver.doResolve (/opt/build/repo/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:37:5)
11:58:00 AM:     at hook.callAsync (/opt/build/repo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
11:58:00 AM: Skipping functions preparation step: no functions directory set
11:58:00 AM: Caching artifacts
11:58:00 AM: Started saving node modules
11:58:00 AM: Finished saving node modules
11:58:00 AM: Started saving yarn cache
11:58:00 AM: Finished saving yarn cache
11:58:00 AM: Started saving pip cache
11:58:00 AM: Finished saving pip cache
11:58:00 AM: Started saving emacs cask dependencies
11:58:00 AM: Finished saving emacs cask dependencies
11:58:00 AM: Started saving maven dependencies
11:58:00 AM: Finished saving maven dependencies
11:58:00 AM: Started saving boot dependencies
11:58:00 AM: Finished saving boot dependencies
11:58:00 AM: Started saving go dependencies
11:58:00 AM: Finished saving go dependencies
11:58:03 AM: Error running command: Build script returned non-zero exit code: 1
11:58:03 AM: Failing build: Failed to build site
11:58:03 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
11:58:04 AM: Finished processing build request in 1m19.227128158s

Thanks for your help!

1 Like

hi @k16e - do you have a component called Actionbar in that location? If yes, is this file added to your git repo? If yes, was this file pushed to the remote repository?