Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues on Netlify #10

Closed
dacarva opened this issue Aug 26, 2019 · 4 comments
Closed

Build issues on Netlify #10

dacarva opened this issue Aug 26, 2019 · 4 comments
Labels
question Further information is requested

Comments

@dacarva
Copy link

dacarva commented Aug 26, 2019

Hello, I just tried to deploy the out-of-the-box repository to Netlify to share it with my team and I am having issues on deployment. Here is the log file:

2:46:36 PM: Build ready to start
2:46:39 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
2:46:39 PM: build-image tag: v3.3.2
2:46:39 PM: buildbot version: ef8d0929ed0baabafd8bbb7d0b021e1fc24180c0
2:46:39 PM: Fetching cached dependencies
2:46:40 PM: Starting to download cache of 255.0KB
2:46:40 PM: Finished downloading cache in 111.705752ms
2:46:40 PM: Starting to extract cache
2:46:40 PM: Failed to fetch cache, continuing with build
2:46:40 PM: Starting to prepare the repo for build
2:46:40 PM: No cached dependencies found. Cloning fresh repo
2:46:40 PM: git clone https://github.com/dacarva/cannvest-investor-dashboard
2:46:41 PM: Preparing Git Reference refs/heads/master
2:46:42 PM: Starting build script
2:46:42 PM: Installing dependencies
2:46:44 PM: Downloading and installing node v10.16.3...
2:46:44 PM: Downloading https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz...
2:46:44 PM: 0.5%
2:46:44 PM: #
2:46:44 PM: #
2:46:44 PM: #
2:46:44 PM: #
2:46:44 PM: #################
2:46:44 PM: 29
2:46:44 PM: .4%
2:46:45 PM:
############################
2:46:45 PM: ############################## 81.9%
2:46:45 PM:
########################################################################
2:46:45 PM: 100.0%
2:46:45 PM: Computing checksum with sha256sum
2:46:45 PM: Checksums matched!
2:46:49 PM: Now using node v10.16.3 (npm v6.9.0)
2:46:49 PM: Attempting ruby version 2.6.2, read from environment
2:46:51 PM: Using ruby version 2.6.2
2:46:51 PM: Using PHP version 5.6
2:46:51 PM: Started restoring cached node modules
2:46:51 PM: Finished restoring cached node modules
2:46:51 PM: Started restoring cached yarn cache
2:46:51 PM: Finished restoring cached yarn cache
2:46:51 PM: Installing yarn at version 1.17.0
2:46:51 PM: Installing Yarn!
2:46:51 PM: > Downloading tarball...
2:46:51 PM: [1/2]: https://
2:46:51 PM: yarnpkg.com/downloads/1.17.0/yarn-v1.17.0.tar.gz --> /tmp/yarn.tar.gz.kfMAFLUuxR
2:46:51 PM: % Total % Received % Xf
2:46:51 PM: erd Average Speed Time Time Time Current
2:46:51 PM: D
2:46:51 PM: load Upload Total Spent Left Speed
2:46:51 PM:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2:46:52 PM:
100 93 100 93 0 0 342
2:46:52 PM: 0 --:--:-- --:--:-- --:--:-- 341
100 93 100 93 0 0 342 0 --:--:-- --:--:-- --:--:-- 341
2:46:52 PM:
100 609 0 609 0 0 923 0 --:--:-- --:--:-- --:--:--
2:46:52 PM: 923
2:46:53 PM:
100 1213k 100 1213k 0 0 1081k
2:46:53 PM: 0 0:00:01 0:00:01 --:--:-- 1081k
2:46:53 PM: [2/2]: https://yarnpkg.
2:46:53 PM: com/downloads/1.17.0/yarn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.kfMAF
2:46:53 PM: LUuxR.asc
2:46:53 PM:
100 97 100 97
2:46:53 PM: 0 0 1621 0 --:--:-- --:--:-- --:--:-- 1621
2:46:53 PM:
0 0 0 0 0 0 0 0 --:--:-- --:--:--
2:46:53 PM: --:--:-- 0
100 613 0 613 0 0 3475 0 --:--:-- --:--:-- --:--:-- 598k
2:46:53 PM:
100 832 100 832 0 0 3896
2:46:53 PM: 0 --:--:-- --:--:-- --:--:-- 3896
2:46:53 PM: > Verifying integrity...
2:46:53 PM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC using RSA key ID 69475BAA
2:46:53 PM: gpg: Good signature from "Yarn Packaging yarn@dan.cx"
2:46:53 PM: gpg: WARNING: This key is not certified with a trusted signature!
2:46:53 PM: gpg: There is no indication that the signature belongs to the owner.
2:46:53 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
2:46:53 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
2:46:53 PM: > GPG signature looks good
2:46:53 PM: > Extracting to ~/.yarn...
2:46:53 PM: > Adding to $PATH...
2:46:53 PM: > We've added the following to your /opt/buildhome/.profile
2:46:53 PM: > If this isn't the profile of your current shell then please add the following to your correct profile:
2:46:53 PM: export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
2:46:53 PM:
2:46:54 PM: > Successfully installed Yarn 1.17.0! Please open another terminal where the yarn command will now be available.
2:46:54 PM: Installing NPM modules using Yarn version 1.17.0
2:46:55 PM: yarn install v1.17.0
2:46:55 PM: [1/4] Resolving packages...
2:46:56 PM: [2/4] Fetching packages...
2:47:22 PM: info fsevents@1.2.9: The platform "linux" is incompatible with this module.
2:47:22 PM: info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
2:47:22 PM: [3/4] Linking dependencies...
2:47:22 PM: warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
2:47:22 PM: warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
2:47:22 PM: warning " > sass-loader@7.1.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
2:47:32 PM: [4/4] Building fresh packages...
2:47:36 PM: Done in 40.84s.
2:47:36 PM: NPM modules installed using Yarn
2:47:37 PM: Started restoring cached go cache
2:47:37 PM: Finished restoring cached go cache
2:47:37 PM: unset GOOS;
2:47:37 PM: unset GOARCH;
2:47:37 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
2:47:37 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:47:37 PM: go version >&2;
2:47:37 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
2:47:37 PM: go version go1.12 linux/amd64
2:47:37 PM: Installing missing commands
2:47:37 PM: Verify run directory
2:47:37 PM: Executing user command: npm run build
2:47:37 PM: > vue-black-dashboard-pro@1.0.0 build /opt/build/repo
2:47:37 PM: > vue-cli-service build
2:47:38 PM: - Building for production...
2:47:41 PM: ERROR Failed to compile with 1 errors7:47:41 PM
2:47:41 PM: Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
2:47:41 PM: Thread Loader (Worker 0)
2:47:41 PM: No ESLint configuration found.
2:47:41 PM: at PoolWorker.fromErrorObj (/opt/build/repo/node_modules/thread-loader/dist/WorkerPool.js:258:12)
2:47:41 PM: at Config.getLocalConfigHierarchy (/opt/build/repo/node_modules/eslint/lib/config.js:255:39)
2:47:41 PM: at Config.getConfigHierarchy (/opt/build/repo/node_modules/eslint/lib/config.js:179:43)
2:47:41 PM: at Config.getConfigVector (/opt/build/repo/node_modules/eslint/lib/config.js:286:21)
2:47:41 PM: at Config.getConfig (/opt/build/repo/node_modules/eslint/lib/config.js:329:29)
2:47:41 PM: at processText (/opt/build/repo/node_modules/eslint/lib/cli-engine.js:163:33)
2:47:41 PM: at CLIEngine.executeOnText (/opt/build/repo/node_modules/eslint/lib/cli-engine.js:620:17)
2:47:41 PM: at lint (/opt/build/repo/node_modules/eslint-loader/index.js:263:17)
2:47:41 PM: at transform (/opt/build/repo/node_modules/eslint-loader/index.js:237:18)
2:47:41 PM: at /opt/build/repo/node_modules/loader-fs-cache/index.js:127:18
2:47:41 PM: at ReadFileContext.callback (/opt/build/repo/node_modules/loader-fs-cache/index.js:31:14)
2:47:41 PM: You may use special comments to disable some warnings.
2:47:41 PM: Use // eslint-disable-next-line to ignore the next line.
2:47:41 PM: Use /* eslint-disable */ to ignore all warnings in a file.
2:47:41 PM: ERROR Build failed with errors.
2:47:41 PM: npm
2:47:41 PM: ERR! code ELIFECYCLE
2:47:41 PM: npm
2:47:41 PM: ERR! errno 1
2:47:41 PM: npm
2:47:41 PM: ERR! vue-black-dashboard-pro@1.0.0 build: vue-cli-service build
2:47:41 PM: npm ERR!
2:47:41 PM: Exit status 1
2:47:41 PM: npm
2:47:41 PM: ERR!
2:47:41 PM: npm
2:47:41 PM: ERR! Failed at the vue-black-dashboard-pro@1.0.0 build script.
2:47:41 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2:47:41 PM: npm
2:47:41 PM: ERR! A complete log of this run can be found in:
2:47:41 PM: npm ERR! /opt/buildhome/.npm/_logs/2019-08-26T19_47_41_496Z-debug.log
2:47:41 PM: Skipping functions preparation step: no functions directory set
2:47:41 PM: Caching artifacts
2:47:41 PM: Started saving node modules
2:47:41 PM: Finished saving node modules
2:47:41 PM: Started saving yarn cache
2:47:41 PM: Finished saving yarn cache
2:47:41 PM: Started saving pip cache
2:47:41 PM: Finished saving pip cache
2:47:41 PM: Started saving emacs cask dependencies
2:47:41 PM: Finished saving emacs cask dependencies
2:47:41 PM: Started saving maven dependencies
2:47:41 PM: Finished saving maven dependencies
2:47:41 PM: Started saving boot dependencies
2:47:41 PM: Finished saving boot dependencies
2:47:41 PM: Started saving go dependencies
2:47:41 PM: Finished saving go dependencies
2:47:45 PM: Error running command: Build script returned non-zero exit code: 1
2:47:45 PM: Failing build: Failed to build site
2:47:45 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
2:47:45 PM: Finished processing build request in 1m6.169769032s

@cristijora
Copy link
Contributor

Hey @dacarva Most likely it's because of the node version. Can you try to force Node 8.x
You can do so under Build & Deploy -> Environment
Screen Shot 2019-08-27 at 4 18 57 PM

@cristijora cristijora added the question Further information is requested label Aug 27, 2019
@dacarva
Copy link
Author

dacarva commented Aug 27, 2019

@cristijora I did as you said. Created the .nvmrc file with node version 8.12. Still the same issue.

`10:19:41 AM: Build ready to start
10:19:45 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
10:19:45 AM: build-image tag: v3.3.2
10:19:45 AM: buildbot version: ef8d0929ed0baabafd8bbb7d0b021e1fc24180c0
10:19:45 AM: Fetching cached dependencies
10:19:45 AM: Starting to download cache of 255.0KB
10:19:45 AM: Finished downloading cache in 79.397256ms
10:19:45 AM: Starting to extract cache
10:19:45 AM: Failed to fetch cache, continuing with build
10:19:45 AM: Starting to prepare the repo for build
10:19:45 AM: No cached dependencies found. Cloning fresh repo
10:19:45 AM: git clone https://github.com/dacarva/cannvest-investor-dashboard
10:19:46 AM: Preparing Git Reference refs/heads/master
10:19:47 AM: Starting build script
10:19:47 AM: Installing dependencies
10:19:48 AM: Attempting node version 'v8.12.0' from .nvmrc
10:19:48 AM: Downloading and installing node v8.12.0...
10:19:49 AM: Downloading https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-x64.tar.xz...
10:19:49 AM: 0.0
10:19:49 AM: %
10:19:49 AM:

10:19:49 AM: 6.5%
10:19:50 AM:
########
10:19:50 AM: 12.2%
10:19:50 AM:
############
10:19:50 AM: 16.8%
10:19:50 AM:
################
10:19:50 AM: 22.7%
10:19:50 AM:
###################
10:19:50 AM: 27.4%
10:19:50 AM:
###########################
10:19:50 AM: 37.7%
10:19:50 AM:
####################################
10:19:50 AM: 50.1%
10:19:50 AM:
#####################################
10:19:50 AM: ####### 61.6%
10:19:50 AM:
###############################################
10:19:50 AM: 65.9%
10:19:50 AM:
######################################################
10:19:50 AM: 75.5%
10:19:51 AM: ###########################
10:19:51 AM: ################################## 84.8%
10:19:51 AM:
#####################################################
10:19:51 AM: ################### 100.0%
10:19:51 AM: Computing checksum with sha256sum
10:19:51 AM: Checksums matched!
10:19:53 AM: Now using node v8.12.0 (npm v6.4.1)
10:19:54 AM: Attempting ruby version 2.6.2, read from environment
10:19:55 AM: Using ruby version 2.6.2
10:19:55 AM: Using PHP version 5.6
10:19:55 AM: Started restoring cached node modules
10:19:55 AM: Finished restoring cached node modules
10:19:55 AM: Started restoring cached yarn cache
10:19:55 AM: Finished restoring cached yarn cache
10:19:55 AM: Installing yarn at version 1.17.0
10:19:55 AM: Installing Yarn!
10:19:55 AM: > Downloading tarball...
10:19:55 AM: [1/2]: https://yarnpkg.com/downloads/1.17.0/yarn-v1.17.0.tar.gz --
10:19:55 AM: > /tmp/yarn.tar.gz.IjgBCHRo59
10:19:55 AM: % To
10:19:55 AM: tal % Received % Xferd Average Speed Time Time Time Current
10:19:55 AM: Dload Upload Total Spent Left Spee
10:19:55 AM: d
10:19:55 AM:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:-
10:19:55 AM: -:-- 0
10:19:56 AM:
100 93 100 93 0 0 332
10:19:56 AM: 0 --:--:-- --:--:-- --:--:-- 333
10:19:56 AM:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
10:19:56 AM: 0
100 609 0 609 0 0 889 0 --:--:-- --:--:-- --:--:-- 594k
10:19:56 AM:
100 1213k 100 1213k 0 0 1095k 0 0:00:0
10:19:56 AM: 1 0:00:01 --:--:-- 1095k
10:19:56 AM: [2/2]: ht
10:19:56 AM: tps://yarnpkg.com/downloads/1.17.0/yarn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.IjgBCHRo59.asc
10:19:56 AM:
100 97 100 97 0 0 2566 0
10:19:56 AM: --:--:-- --:--:-- --:--:-- 2566
10:19:57 AM:
100 613 0 613 0 0 23
10:19:57 AM: 67 0 --:--:-- --:--:-- --:--:-- 2367
10:19:57 AM:
100 832 100 832
10:19:57 AM: 0 0 2765 0 --:--:-- --:--:-- --:--:-- 2765
10:19:57 AM: > Verifying integrity...
10:19:57 AM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC using RSA key ID 69475BAA
10:19:57 AM: gpg: Good signature from "Yarn Packaging yarn@dan.cx"
10:19:57 AM: gpg: WARNING: This key is not certified with a trusted signature!
10:19:57 AM: gpg: There is no indication that the signature belongs to the owner.
10:19:57 AM: Primary key fingerprint:
10:19:57 AM: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
10:19:57 AM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
10:19:57 AM: > GPG signature looks good
10:19:57 AM: > Extracting to ~/.yarn...
10:19:57 AM: > Adding to $PATH...
10:19:57 AM: > We've added the following to your /opt/buildhome/.profile
10:19:57 AM: > If this isn't the profile of your current shell then please add the following to your correct profile:
10:19:57 AM: export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
10:19:57 AM:
10:19:58 AM: > Successfully installed Yarn 1.17.0! Please open another terminal where the yarn command will now be available.
10:19:58 AM: Installing NPM modules using Yarn version 1.17.0
10:19:59 AM: yarn install v1.17.0
10:19:59 AM: [1/4] Resolving packages...
10:20:00 AM: [2/4] Fetching packages...
10:20:20 AM: info fsevents@1.2.9: The platform "linux" is incompatible with this module.
10:20:20 AM: info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
10:20:20 AM: [3/4] Linking dependencies...
10:20:20 AM: warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
10:20:20 AM: warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
10:20:20 AM: warning " > sass-loader@7.1.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
10:20:28 AM: [4/4] Building fresh packages...
10:20:30 AM: Done in 30.88s.
10:20:30 AM: NPM modules installed using Yarn
10:20:30 AM: Started restoring cached go cache
10:20:30 AM: Finished restoring cached go cache
10:20:30 AM: unset GOOS;
10:20:30 AM: unset GOARCH;
10:20:30 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
10:20:30 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
10:20:30 AM: go version >&2;
10:20:30 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
10:20:30 AM: go version go1.12 linux/amd64
10:20:30 AM: Installing missing commands
10:20:30 AM: Verify run directory
10:20:30 AM: Executing user command: npm run build
10:20:30 AM: > vue-black-dashboard-pro@1.0.0 build /opt/build/repo
10:20:30 AM: > vue-cli-service build
10:20:31 AM: - Building for production...
10:20:34 AM: ERROR Failed to compile with 1 errors15:20:34
10:20:34 AM: Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
10:20:34 AM: Thread Loader (Worker 0)
10:20:34 AM: No ESLint configuration found.
10:20:34 AM: at PoolWorker.fromErrorObj (/opt/build/repo/node_modules/thread-loader/dist/WorkerPool.js:258:12)
10:20:34 AM: at /opt/build/repo/node_modules/thread-loader/dist/WorkerPool.js:200:29
10:20:34 AM: at mapSeries (/opt/build/repo/node_modules/neo-async/async.js:3624:14)
10:20:34 AM: at Config.getLocalConfigHierarchy (/opt/build/repo/node_modules/eslint/lib/config.js:255:39)
10:20:34 AM: at Config.getConfigHierarchy (/opt/build/repo/node_modules/eslint/lib/config.js:179:43)
10:20:34 AM: at Config.getConfigVector (/opt/build/repo/node_modules/eslint/lib/config.js:286:21)
10:20:34 AM: at Config.getConfig (/opt/build/repo/node_modules/eslint/lib/config.js:329:29)
10:20:34 AM: at processText (/opt/build/repo/node_modules/eslint/lib/cli-engine.js:163:33)
10:20:34 AM: at CLIEngine.executeOnText (/opt/build/repo/node_modules/eslint/lib/cli-engine.js:620:17)
10:20:34 AM: at lint (/opt/build/repo/node_modules/eslint-loader/index.js:263:17)
10:20:34 AM: at transform (/opt/build/repo/node_modules/eslint-loader/index.js:237:18)
10:20:34 AM: at /opt/build/repo/node_modules/loader-fs-cache/index.js:127:18
10:20:34 AM: at ReadFileContext.callback (/opt/build/repo/node_modules/loader-fs-cache/index.js:31:14)
10:20:34 AM: You may use special comments to disable some warnings.
10:20:34 AM: Use // eslint-disable-next-line to ignore the next line.
10:20:34 AM: Use /* eslint-disable */ to ignore all warnings in a file.
10:20:34 AM: ERROR Build failed with errors.
10:20:34 AM: npm
10:20:34 AM: ERR! code ELIFECYCLE
10:20:34 AM: npm ERR! errno 1
10:20:34 AM: npm
10:20:34 AM: ERR! vue-black-dashboard-pro@1.0.0 build: vue-cli-service build
10:20:34 AM: npm ERR! Exit status 1
10:20:34 AM: npm ERR!
10:20:34 AM: npm ERR! Failed at the vue-black-dashboard-pro@1.0.0 build script.
10:20:34 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
10:20:34 AM: npm
10:20:34 AM: ERR! A complete log of this run can be found in:
10:20:34 AM: npm ERR! /opt/buildhome/.npm/_logs/2019-08-27T15_20_34_069Z-debug.log
10:20:34 AM: Skipping functions preparation step: no functions directory set
10:20:34 AM: Caching artifacts
10:20:34 AM: Started saving node modules
10:20:34 AM: Finished saving node modules
10:20:34 AM: Started saving yarn cache
10:20:34 AM: Finished saving yarn cache
10:20:34 AM: Started saving pip cache
10:20:34 AM: Finished saving pip cache
10:20:34 AM: Started saving emacs cask dependencies
10:20:34 AM: Finished saving emacs cask dependencies
10:20:34 AM: Started saving maven dependencies
10:20:34 AM: Finished saving maven dependencies
10:20:34 AM: Started saving boot dependencies
10:20:34 AM: Finished saving boot dependencies
10:20:34 AM: Started saving go dependencies
10:20:34 AM: Finished saving go dependencies
10:20:36 AM: Error running command: Build script returned non-zero exit code: 1
10:20:36 AM: Failing build: Failed to build site
10:20:36 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
10:20:36 AM: Finished processing build request in 51.835126594s`

@cristijora
Copy link
Contributor

Try adding the variable like I showed above. Not sure nvmrc works in Netlify. It's strange because I personally deployed this black dashboard configuration on netlify at least on 3 different projects.
Do you have anything else added custom in the project?

@dacarva
Copy link
Author

dacarva commented Aug 27, 2019

I didn't change anything but I downloaded the repository again, commited and deployed successfully. Not sure what happened but it's fixed now.
Thanks

@dacarva dacarva closed this as completed Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants