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

Tried to deploy to Netlify but I get an error #524

Open
gabrielmaiaf opened this issue Mar 20, 2020 · 7 comments
Open

Tried to deploy to Netlify but I get an error #524

gabrielmaiaf opened this issue Mar 20, 2020 · 7 comments

Comments

@gabrielmaiaf
Copy link

Bug report

Deploy fails showing following error:
Error: Callback was already called.

What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
1-Cloned repository
2-npm run build in Netlify
3-Shows error

My repository: https://github.com/gabrielmaiaf/grupo-vision-cms

What is the expected behavior?
Build runs normally on Netlify

Other relevant information:
Locally runs normally in Windows, only build on Netlify fails

Node.js version: 10.19.0
NPM/Yarn version: 6.13.4 / 1.9.4
Operating System:
Additional tools:

@fairuzi10
Copy link

I can confirm this issue as well. My commit which has successfully published few days ago get an error if I try to deploy (build) it again. The Node and Yarn version exactly match.

@ZoltanVeres
Copy link
Collaborator

Are you guys using the new beta version of Netlify's Build Plugins? Can somebody post a screenshot or text about the error message? This starter is not yet compatible with the new beta It is possible that the build process has some issues, in that case we have to report it to https://github.com/netlify/build repository

@somed00d
Copy link

somed00d commented Apr 23, 2020

@ZoltanVeres Here is full error message. Everything standard, I just clicked the button, confirmed my repo name, and then off it went only to fail. Have tried it twice with the same results.

11:35:20 AM: Build ready to start
11:35:22 AM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
11:35:22 AM: build-image tag: v3.3.7
11:35:22 AM: buildbot version: e2864b9f6fb42f8598086b4caa617ac9e650a222
11:35:23 AM: Fetching cached dependencies
11:35:23 AM: Failed to fetch cache, continuing with build
11:35:23 AM: Starting to prepare the repo for build
11:35:24 AM: No cached dependencies found. Cloning fresh repo
11:35:24 AM: git clone https://github.com/netlify-templates/gatsby-starter-netlify-cms
11:35:26 AM: Preparing Git Reference refs/heads/master
11:35:26 AM: Found Netlify configuration file netlify.toml in site root
11:35:26 AM: Found Netlify configuration file(s). Overriding site configuration
11:35:26 AM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'lambda' versus '' in the Netlify UI
11:35:26 AM: Creating functions prep folder
11:35:26 AM: Starting build script
11:35:26 AM: Installing dependencies
11:35:28 AM: Downloading and installing node v10.20.1...
11:35:28 AM: Downloading https://nodejs.org/dist/v10.20.1/node-v10.20.1-linux-x64.tar.xz...
11:35:28 AM: 
###############################
11:35:28 AM:                   43.2%
11:35:28 AM: 
########################################################
11:35:28 AM: ################ 100.0%
11:35:28 AM: Computing checksum with sha256sum
11:35:28 AM: Checksums matched!
11:35:30 AM: Now using node v10.20.1 (npm v6.14.4)
11:35:31 AM: Attempting ruby version 2.6.2, read from environment
11:35:32 AM: Using ruby version 2.6.2
11:35:32 AM: Using PHP version 5.6
11:35:32 AM: Started restoring cached node modules
11:35:32 AM: Finished restoring cached node modules
11:35:32 AM: Started restoring cached yarn cache
11:35:32 AM: Finished restoring cached yarn cache
11:35:32 AM: Installing yarn at version 1.9.4
11:35:32 AM: Installing Yarn!
11:35:32 AM: > Downloading tarball...
11:35:32 AM: [1/2]: https://yarnpkg.com/downloads/1.9.4/y
11:35:32 AM: arn-v1.9.4.tar.gz --> /tmp/yarn.tar.gz.T1PNnxAZCH
11:35:32 AM:   %
11:35:32 AM: Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
11:35:32 AM:                                  Dload  Upload   Total   Spent    Left  Speed
11:35:32 AM: 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:35:32 AM: 
  0    78    0     0    0     0      0      0 --:--:-- --:--:--
11:35:32 AM:  --:--:--     0
100    78  100    78    0     0    268      0 --
11:35:32 AM: :--:-- --:--
11:35:32 AM: :-- --:
11:35:32 AM: --:--   268
11:35:33 AM: 
100    91  100    91    0     0    150      0
11:35:33 AM: --:--:-- --:--:-- --:--:--   150
11:35:33 AM: 
100   629  100   629    0     0
11:35:33 AM:   635      0 --:--:-- --:--:-- --:--:--   635
11:35:33 AM: 
  0  915k    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--
11:35:33 AM:   0
11:35:34 AM: 
100  915k  100  915k    0     0   642k      0  0:00:01  0:00:01 --:--:-- 6313k
11:35:34 AM: [2/2]: https://yarnpkg.com
11:35:34 AM: /downloads/1.9.4/yarn-v1.9.4.tar.gz.asc -->
11:35:34 AM:  /tmp/ya
11:35:34 AM: rn.tar.gz.T1PNnxAZC
11:35:34 AM: H.asc
11:35:34 AM: 1
11:35:34 AM: 0
11:35:34 AM: 0
11:35:34 AM:    82
11:35:34 AM:  100    82    0     0   2965      0 --:--:-- --:--:-- --:--:--  2965
11:35:34 AM: 
100    95  100    95    0
11:35:34 AM:   0   1717      0 --:--:-- --:--:-- --:--:--  1717
11:35:34 AM: 1
11:35:34 AM: 0
11:35:34 AM: 0
11:35:34 AM: 6
11:35:34 AM: 3
11:35:34 AM: 3
11:35:34 AM: 1
11:35:34 AM: 0
11:35:34 AM: 0
11:35:34 AM: 6
11:35:34 AM: 3
11:35:34 AM: 3
11:35:34 AM:  0     0   3245      0 --:--:-- --:--:--
11:35:34 AM: --:--:--  3245
11:35:34 AM: 
100   832  100   832    0     0   3490
11:35:34 AM:      0 --:--:-- --:--:-- --:--:--  3490
11:35:34 AM: > Verifying integrity...
11:35:34 AM: gpg: Signature made Fri 03 Aug 2018 07:53:36 PM UTC using RSA key ID B6FF4DE3
11:35:34 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
11:35:34 AM: gpg: Note: This key has expired!
11:35:34 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
11:35:34 AM:      Subkey fingerprint: E219 30C4 D0A4 AA46 1858  1F7A E074 D16E B6FF 4DE3
11:35:34 AM: > GPG signature looks good
11:35:34 AM: > Extracting to ~/.yarn...
11:35:34 AM: > Adding to $PATH...
11:35:34 AM: > Successfully installed Yarn 1.9.4! Please open another terminal where the `yarn` command will now be available.
11:35:35 AM: Installing NPM modules using Yarn version 1.9.4
11:35:35 AM: yarn install v1.9.4
11:35:35 AM: [1/4] Resolving packages...
11:35:36 AM: [2/4] Fetching packages...
11:35:36 AM: (node:1364) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
11:35:59 AM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
11:35:59 AM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
11:35:59 AM: info fsevents@1.2.11: The platform "linux" is incompatible with this module.
11:35:59 AM: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
11:35:59 AM: [3/4] Linking dependencies...
11:35:59 AM: warning "gatsby > @pmmmwh/react-refresh-webpack-plugin@0.2.0" has unmet peer dependency "sockjs-client@^1.4.0".
11:35:59 AM: warning "gatsby > react-hot-loader@4.12.20" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
11:35:59 AM: 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".
11:35:59 AM: warning "gatsby > gatsby-cli > ink@2.7.1" has unmet peer dependency "@types/react@>=16.8.0".
11:35:59 AM: warning "gatsby > socket.io > engine.io > ws@7.2.3" has unmet peer dependency "bufferutil@^4.0.1".
11:35:59 AM: warning "gatsby > socket.io > engine.io > ws@7.2.3" has unmet peer dependency "utf-8-validate@^5.0.2".
11:35:59 AM: warning "gatsby-plugin-netlify > webpack-assets-manifest@3.1.1" has unmet peer dependency "webpack@>=4.4.0".
11:35:59 AM: warning "gatsby-plugin-sass > sass-loader@7.3.1" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
11:35:59 AM: warning " > lodash-webpack-plugin@0.11.5" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
11:35:59 AM: warning "netlify-cms-app > netlify-cms-widget-code@1.1.4" has unmet peer dependency "codemirror@^5.46.0".
11:35:59 AM: warning "netlify-cms-app > netlify-cms-widget-code > react-codemirror2@6.0.1" has unmet peer dependency "codemirror@5.x".
11:35:59 AM: warning "netlify-cms-app > netlify-cms-core > redux-notifications > react-redux@4.4.10" has incorrect peer dependency "redux@^2.0.0 || ^3.0.0".
11:35:59 AM: warning " > netlify-cms-media-library-cloudinary@1.3.4" has unmet peer dependency "netlify-cms-lib-util@^2.1.3-beta.0".
11:36:14 AM: [4/4] Building fresh packages...
11:36:20 AM: Done in 45.06s.
11:36:20 AM: NPM modules installed using Yarn
11:36:21 AM: Started restoring cached go cache
11:36:21 AM: Finished restoring cached go cache
11:36:21 AM: unset GOOS;
11:36:21 AM: unset GOARCH;
11:36:21 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
11:36:21 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
11:36:21 AM: go version >&2;
11:36:21 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
11:36:21 AM: go version go1.12 linux/amd64
11:36:21 AM: Installing missing commands
11:36:21 AM: Verify run directory
11:36:21 AM: Executing user command: npm run build
11:36:22 AM: > gatsby-starter-netlify-cms@1.1.3 build /opt/build/repo
11:36:22 AM: > npm run clean && gatsby build
11:36:22 AM: > gatsby-starter-netlify-cms@1.1.3 clean /opt/build/repo
11:36:22 AM: > gatsby clean
11:36:23 AM: info Deleting .cache, public
11:36:23 AM: info Successfully deleted directories
11:36:25 AM: success open and validate gatsby-configs - 0.071s
11:36:26 AM: success load plugins - 1.144s
11:36:26 AM: success onPreInit - 0.011s
11:36:26 AM: success delete html and css files from previous builds - 0.013s
11:36:26 AM: success initialize cache - 0.007s
11:36:26 AM: success copy gatsby files - 0.039s
11:36:26 AM: success onPreBootstrap - 0.003s
11:36:26 AM: success createSchemaCustomization - 0.012s
11:36:27 AM: success source and transform nodes - 0.190s
11:36:27 AM: success building schema - 0.374s
11:36:27 AM: success createPages - 0.060s
11:36:27 AM: success createPagesStatefully - 0.168s
11:36:27 AM: success onPreExtractQueries - 0.000s
11:36:27 AM: success update schema - 0.035s
11:36:28 AM: success extract queries from components - 0.405s
11:36:28 AM: success write out requires - 0.003s
11:36:28 AM: success write out redirect data - 0.001s
11:36:28 AM: success onPostBootstrap - 0.000s
11:36:28 AM: ⠀
11:36:28 AM: info bootstrap finished - 4.732 s
11:36:28 AM: ⠀
11:36:35 AM: error UNHANDLED EXCEPTION Callback was already called.
11:36:35 AM: 
11:36:35 AM:   Error: Callback was already called.
11:36:35 AM:   
11:36:35 AM:   - async.js:16 throwError
11:36:35 AM:     [repo]/[neo-async]/async.js:16:11
11:36:35 AM:   
11:36:35 AM:   - async.js:2818 
11:36:35 AM:     [repo]/[neo-async]/async.js:2818:7
11:36:35 AM:   
11:36:35 AM:   - next_tick.js:61 process._tickCallback
11:36:35 AM:     internal/process/next_tick.js:61:11
11:36:35 AM:   
11:36:35 AM: 
11:36:35 AM: not finished run queries - 6.956s
11:36:35 AM: not finished Generating image thumbnails - 6.920s
11:36:35 AM: not finished Building production JavaScript and CSS bundles - 6.832s
11:36:35 AM: npm
11:36:35 AM:  ERR! code
11:36:35 AM:  ELIFECYCLE
11:36:35 AM: npm
11:36:35 AM: ERR!
11:36:35 AM: errno
11:36:35 AM:  1
11:36:35 AM: npm
11:36:35 AM: ERR! gatsby-starter-netlify-cms@1.1.3 build: `npm run clean && gatsby build`
11:36:35 AM: npm
11:36:35 AM: ERR!
11:36:35 AM:  Exit status 1
11:36:35 AM: npm
11:36:35 AM: ERR!
11:36:35 AM: npm
11:36:35 AM: ERR!
11:36:35 AM:  Failed at the gatsby-starter-netlify-cms@1.1.3 build script.
11:36:35 AM: npm
11:36:35 AM: ERR!
11:36:35 AM:  This is probably not a problem with npm. There is likely additional logging output above.
11:36:35 AM: npm ERR!
11:36:35 AM:  A complete log of this run can be found in:
11:36:35 AM: npm ERR!     /opt/buildhome/.npm/_logs/2020-04-23T15_36_35_290Z-debug.log
11:36:35 AM: Function Dir: /opt/build/repo/lambda
11:36:35 AM: TempDir: /tmp/zisi-5ea1b5b806538dc0328a2c94
11:36:35 AM: Prepping functions with zip-it-and-ship-it 0.3.1
11:36:36 AM: [ { path: '/tmp/zisi-5ea1b5b806538dc0328a2c94/hello.zip',
11:36:36 AM:     runtime: 'js' } ]
11:36:36 AM: Prepping functions complete
11:36:36 AM: Caching artifacts
11:36:36 AM: Started saving node modules
11:36:36 AM: Finished saving node modules
11:36:36 AM: Started saving yarn cache
11:36:36 AM: Finished saving yarn cache
11:36:36 AM: Started saving pip cache
11:36:36 AM: Finished saving pip cache
11:36:36 AM: Started saving emacs cask dependencies
11:36:36 AM: Finished saving emacs cask dependencies
11:36:36 AM: Started saving maven dependencies
11:36:36 AM: Finished saving maven dependencies
11:36:36 AM: Started saving boot dependencies
11:36:36 AM: Finished saving boot dependencies
11:36:36 AM: Started saving go dependencies
11:36:36 AM: Finished saving go dependencies
11:36:40 AM: Error running command: Build script returned non-zero exit code: 1
11:36:40 AM: Failing build: Failed to build site
11:36:40 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
11:36:40 AM: Finished processing build request in 1m17.99504223s

@dimamarkus
Copy link

Confirm +1. Having the same exact error with a clean slate Netlify account/configuration.

@ZoltanVeres
Copy link
Collaborator

Sorry for not getting back sooner.
This was a result of running the build using Node 8. By setting the the Node runtime to version 12 and updating the packages solved this particular problem.
You can find the details on PR #552, which got merged in.
Let us know if the issue is still there!

@marharyta
Copy link

Very much still here, and I am using node v12.16.1

@maxcell
Copy link
Contributor

maxcell commented Aug 9, 2022

Howdy folks, if you want to test this again, this has received several updates but if you go through and clone the project and connect it to Netlify you should be back in business!

Edit: Worth noting that Gatsby has upgraded its needed Node version to be at least Node 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants