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

Cypress dependency error #61

Open
ehmicky opened this issue Jun 8, 2020 · 0 comments
Open

Cypress dependency error #61

ehmicky opened this issue Jun 8, 2020 · 0 comments

Comments

@ehmicky
Copy link
Contributor

ehmicky commented Jun 8, 2020

Versions

  • What is this plugin's version? 1.3.11
  • What is Cypress version? 4,7.0
  • What Netlify build image are you using? build-image 3.3.14
  • What is the Node version if you know it? 10.21.0
  • What is the NPM version if you know it? Yarn 1.17.0

Describe the bug
Some users are experiencing the following build error:

Cypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.

----------

[1551:0608/113857.112439:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1551:0608/113857.112962:ERROR:edid_parser.cc(102)] Too short EDID data: manufacturer id
[1580:0608/113857.159219:WARNING:discardable_shared_memory_manager.cc(199)] Less than 64MB of free space in temporary directory for shared memory files: 63
[1596:0608/113857.256502:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[1580:0608/113858.232547:ERROR:edid_parser.cc(102)] Too short EDID data: manufacturer id
[1580:0608/113858.237719:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Inconsistency detected by ld.so: dl-tls.c: 493: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= GL(dl_tls_generation)' failed!
[1770:0608/113858.307990:ERROR:broker_posix.cc(43)] Invalid node channel message
[1770:0608/113913.323854:INFO:child_thread_impl.cc(831)] ChildThreadImpl::EnsureConnected()

----------

Platform: linux (Ubuntu Linux - 16.04)
Cypress Version: 4.7.0 
    /opt/build/repo/frontend/node_modules/cypress/lib/errors.js:373:15 
    /opt/build/repo/frontend/node_modules/bluebird/js/release/util.js:16:23 tryCatcher
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:547:31 Promise._settlePromiseFromHandler
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:604:18 Promise._settlePromise
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:649:10 Promise._settlePromise0
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:729:18 Promise._settlePromises
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:673:18 Promise._fulfill
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:466:57 Promise._resolveCallback
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:559:17 Promise._settlePromiseFromHandler
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:604:18 Promise._settlePromise
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:649:10 Promise._settlePromise0
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:729:18 Promise._settlePromises
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:673:18 Promise._fulfill
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:466:57 Promise._resolveCallback
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:559:17 Promise._settlePromiseFromHandler
    /opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:604:18 Promise._settlePromise

Logs and screenshots

1:37:37 PM: Build ready to start
1:37:39 PM: build-image version: 30f629161c0736b1a3ecd8b418e5eeffab5c0faf
1:37:39 PM: build-image tag: v3.3.14
1:37:39 PM: buildbot version: 960d989224ecbd0e01be03c5f7dffe3d8f543e02
1:37:39 PM: Fetching cached dependencies
1:37:39 PM: Starting to download cache of 341.0MB
1:37:42 PM: Finished downloading cache in 2.457979224s
1:37:42 PM: Starting to extract cache
1:38:00 PM: Finished extracting cache in 18.261837144s
1:38:01 PM: Finished fetching cache in 21.708018972s
1:38:01 PM: Starting to prepare the repo for build
1:38:01 PM: Preparing Git Reference refs/heads/master
1:38:03 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: 'frontend' versus '' in the Netlify UI
1:38:03 PM: Starting build script
1:38:03 PM: Installing dependencies
1:38:04 PM: Started restoring cached node version
1:38:07 PM: Finished restoring cached node version
1:38:09 PM: v10.21.0 is already installed.
1:38:10 PM: Now using node v10.21.0 (npm v6.14.4)
1:38:10 PM: Started restoring cached build plugins
1:38:10 PM: Finished restoring cached build plugins
1:38:10 PM: Attempting ruby version 2.6.2, read from environment
1:38:12 PM: Using ruby version 2.6.2
1:38:12 PM: Using PHP version 5.6
1:38:12 PM: 5.2 is already installed.
1:38:12 PM: Using Swift version 5.2
1:38:12 PM: Started restoring cached node modules
1:38:12 PM: Finished restoring cached node modules
1:38:12 PM: Started restoring cached yarn cache
1:38:12 PM: Finished restoring cached yarn cache
1:38:13 PM: Installing NPM modules using Yarn version 1.17.0
1:38:14 PM: yarn install v1.17.0
1:38:14 PM: [1/4] Resolving packages...
1:38:15 PM: success Already up-to-date.
1:38:15 PM: Done in 1.23s.
1:38:15 PM: NPM modules installed using Yarn
1:38:15 PM: Started restoring cached go cache
1:38:15 PM: Finished restoring cached go cache
1:38:15 PM: go version go1.12 linux/amd64
1:38:15 PM: go version go1.12 linux/amd64
1:38:15 PM: Installing missing commands
1:38:15 PM: Verify run directory
1:38:17 PM: ​
1:38:17 PM: ┌─────────────────────────────┐
1:38:17 PM: │        Netlify Build        │
1:38:17 PM: └─────────────────────────────┘
1:38:17 PM: ​
1:38:17 PM: ❯ Version
1:38:17 PM:   @netlify/build 1.0.14
1:38:17 PM: ​
1:38:17 PM: ❯ Flags
1:38:17 PM:   mode: buildbot
1:38:17 PM: ​
1:38:17 PM: ❯ Current directory
1:38:17 PM:   /opt/build/repo/frontend
1:38:17 PM: ​
1:38:17 PM: ❯ Config file
1:38:17 PM:   /opt/build/repo/netlify.toml
1:38:17 PM: ​
1:38:17 PM: ❯ Context
1:38:17 PM:   production
1:38:17 PM: ​
1:38:17 PM: ❯ Loading plugins
1:38:17 PM:    - [email protected] from netlify.toml
1:38:17 PM:    - [email protected] from netlify.toml and package.json
1:38:17 PM:    - [email protected] from netlify.toml
1:38:20 PM: ​
1:38:20 PM: ┌────────────────────────────────────────────────────────┐
1:38:20 PM: │ 1. onPreBuild command from netlify-plugin-gatsby-cache │
1:38:20 PM: └────────────────────────────────────────────────────────┘
1:38:20 PM: ​
1:38:20 PM: Found a Gatsby cache. We’re about to go FAST. ⚡️
1:38:20 PM: ​
1:38:20 PM: (netlify-plugin-gatsby-cache onPreBuild completed in 297ms)
1:38:20 PM: ​
1:38:20 PM: ┌───────────────────────────────────────────────────┐
1:38:20 PM: │ 2. onPreBuild command from netlify-plugin-cypress │
1:38:20 PM: └───────────────────────────────────────────────────┘
1:38:20 PM: ​
1:38:35 PM: ​
1:38:35 PM: (netlify-plugin-cypress onPreBuild completed in 15s)
1:38:35 PM: ​
1:38:35 PM: ┌────────────────────────────────────┐
1:38:35 PM: │ 3. build.command from netlify.toml │
1:38:35 PM: └────────────────────────────────────┘
1:38:35 PM: ​
1:38:35 PM: $ npm run build
1:38:36 PM: > [email protected] build /opt/build/repo/frontend
1:38:36 PM: > GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build --log-pages
1:38:40 PM: success open and validate gatsby-configs - 0.030s
1:38:41 PM: 
1:38:41 PM: success load plugins - 0.907s
1:38:41 PM: success onPreInit - 0.029s
1:38:41 PM: success initialize cache - 0.085s
1:38:41 PM: success copy gatsby files - 0.058s
1:38:41 PM: 
1:38:41 PM: warning [sanity] Using `watchMode` when not in develop mode might prevent your build from completing
1:38:41 PM: 
1:38:41 PM: info [sanity] Fetching remote GraphQL schema
1:38:41 PM: 
1:38:41 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
1:38:41 PM: 
1:38:41 PM: warning [sanity] Type `SanityAssetSourceData` has field with name `id`, which conflicts with Gatsby's internal properties. Renaming to `sanityId`
1:38:41 PM: 
1:38:41 PM: info [sanity] Stitching GraphQL schemas from SDL
1:38:41 PM: 
1:38:41 PM: success onPreBootstrap - 0.287s
1:38:41 PM: success createSchemaCustomization - 0.004s
1:38:41 PM: 
1:38:41 PM: info [sanity] Fetching export stream for dataset
1:38:42 PM: 
1:38:42 PM: info [sanity] Watch mode enabled, starting a listener
1:38:42 PM: info [sanity] Done exporting!
1:38:42 PM: success source and transform nodes - 1.010s
1:38:43 PM: 
1:38:43 PM: warning The type `SanityImageAsset` does not explicitly define the field `childImageSharp`.
1:38:43 PM: On types with the `@dontInfer` directive, or with the `infer` extension set to `false`, automatically adding fields for children types is deprecated.
1:38:43 PM: In Gatsby v3, only children fields explicitly set with the `childOf` extension will be added.
1:38:43 PM: success building schema - 0.469s
1:38:43 PM: 
1:38:43 PM: success createPages - 0.109s
1:38:43 PM: success createPagesStatefully - 0.073s
1:38:43 PM: success onPreExtractQueries - 0.002s
1:38:43 PM: success update schema - 0.030s
1:38:43 PM: 
1:38:43 PM: warning Using the global `graphql` tag is deprecated, and will not be supported in v3.
1:38:43 PM: Import it instead like:  import { graphql } from 'gatsby' in file:
1:38:43 PM: /opt/build/repo/frontend/src/templates/movie.js
1:38:44 PM: 
1:38:44 PM: success extract queries from components - 0.757s
1:38:44 PM: 
1:38:44 PM: success write out requires - 0.005s
1:38:44 PM: 
1:38:44 PM: success write out redirect data - 0.001s
1:38:44 PM: 
1:38:44 PM: success Build manifest and related icons - 0.300s
1:38:44 PM: success onPostBootstrap - 0.302s
1:38:44 PM: 
1:38:44 PM: 
1:38:44 PM: ⠀
1:38:44 PM: 
1:38:44 PM: 
1:38:44 PM: info bootstrap finished - 8.220s
1:38:44 PM: 
1:38:44 PM: ⠀
1:38:50 PM: 
1:38:50 PM: success Building production JavaScript and CSS bundles - 6.371s
1:38:51 PM: 
1:38:51 PM: success Rewriting compilation hashes - 0.019s
1:38:51 PM: 
1:38:51 PM: success run queries - 6.519s - 3/3 0.46/s
1:38:52 PM: success Building static HTML for pages - 0.953s - 18/18 18.88/s
1:38:52 PM: success Delete previous page data - 0.000s
1:38:52 PM: success onPostBuild - 0.001s
1:38:52 PM: info Done building in 15.813 sec
1:38:52 PM: info Built pages:
1:38:52 PM: Updated page: /movies/alien-covenant
1:38:52 PM: Updated page: /movies/walle
1:38:52 PM: Updated page: /movies/guardians-of-the-galaxy
1:38:52 PM: Updated page: /movies/interstellar
1:38:52 PM: Updated page: /movies/district-9
1:38:52 PM: Updated page: /movies/the-martian
1:38:52 PM: Updated page: /movies/blade-runner-2049
1:38:52 PM: Updated page: /movies/alien
1:38:52 PM: Updated page: /movies/the-dark-tower
1:38:52 PM: Updated page: /movies/aliens
1:38:52 PM: Updated page: /movies/elysium
1:38:52 PM: Updated page: /movies/prometheus
1:38:52 PM: Updated page: /movies/blade-runner
1:38:52 PM: Updated page: /movies/galaxy-quest
1:38:52 PM: Updated page: /404/
1:38:52 PM: Updated page: /about/
1:38:52 PM: Updated page: /
1:38:52 PM: Updated page: /404.html
1:38:52 PM: ​
1:38:52 PM: (build.command completed in 16.6s)
1:38:52 PM: ​
1:38:52 PM: ┌─────────────────────────────────────────────────────────┐
1:38:52 PM: │ 4. onPostBuild command from netlify-plugin-gatsby-cache │
1:38:52 PM: └─────────────────────────────────────────────────────────┘
1:38:52 PM: ​
1:38:52 PM: Stored the Gatsby cache to speed up future builds.
1:38:52 PM: ​
1:38:52 PM: (netlify-plugin-gatsby-cache onPostBuild completed in 270ms)
1:38:52 PM: ​
1:38:52 PM: ┌────────────────────────────────────────────────────┐
1:38:52 PM: │ 5. onPostBuild command from netlify-plugin-cypress │
1:38:52 PM: └────────────────────────────────────────────────────┘
1:38:52 PM: ​
1:38:53 PM: It looks like this is your first time using Cypress: 4.7.0
1:38:53 PM: 
1:38:53 PM: [11:38:53]  Verifying Cypress can run /opt/buildhome/.cache/Cypress/4.7.0/Cypress [started]
1:39:13 PM: [11:39:13]  Verifying Cypress can run /opt/buildhome/.cache/Cypress/4.7.0/Cypress [failed]
1:39:13 PM: 
1:39:13 PM: ​
1:39:13 PM: ┌────────────────────────────────────────────────┐
1:39:13 PM: │ Plugin "netlify-plugin-cypress" internal error │
1:39:13 PM: └────────────────────────────────────────────────┘
1:39:13 PM: ​
1:39:13 PM:   Error message
1:39:13 PM:   Error: Cypress failed to start.
1:39:13 PM: ​
1:39:13 PM:   This is usually caused by a missing library or dependency.
1:39:13 PM: ​
1:39:13 PM:   The error below should indicate which dependency is missing.
1:39:13 PM: ​
1:39:13 PM:   https://on.cypress.io/required-dependencies
1:39:13 PM: ​
1:39:13 PM:   If you are using Docker, we provide containers with all required dependencies installed.
1:39:13 PM: ​
1:39:13 PM:   ----------
1:39:13 PM: ​
1:39:13 PM:   [1551:0608/113857.112439:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
1:39:13 PM:   [1551:0608/113857.112962:ERROR:edid_parser.cc(102)] Too short EDID data: manufacturer id
1:39:13 PM:   [1580:0608/113857.159219:WARNING:discardable_shared_memory_manager.cc(199)] Less than 64MB of free space in temporary directory for shared memory files: 63
1:39:13 PM:   [1596:0608/113857.256502:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
1:39:13 PM:   [1580:0608/113858.232547:ERROR:edid_parser.cc(102)] Too short EDID data: manufacturer id
1:39:13 PM:   [1580:0608/113858.237719:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
1:39:13 PM:   Inconsistency detected by ld.so: dl-tls.c: 493: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= GL(dl_tls_generation)' failed!
1:39:13 PM:   [1770:0608/113858.307990:ERROR:broker_posix.cc(43)] Invalid node channel message
1:39:13 PM:   [1770:0608/113913.323854:INFO:child_thread_impl.cc(831)] ChildThreadImpl::EnsureConnected()
1:39:13 PM: ​
1:39:13 PM:   ----------
1:39:13 PM: ​
1:39:13 PM:   Platform: linux (Ubuntu Linux - 16.04)
1:39:13 PM:   Cypress Version: 4.7.0
1:39:13 PM: ​
1:39:13 PM:   Plugin details
1:39:13 PM:   Package:        netlify-plugin-cypress
1:39:13 PM:   Version:        1.3.11
1:39:13 PM:   Repository:     git+https://github.com/cypress-io/netlify-plugin-cypress.git
1:39:13 PM:   npm link:       https://www.npmjs.com/package/netlify-plugin-cypress
1:39:13 PM:   Report issues:  https://github.com/cypress-io/netlify-plugin-cypress/issues
1:39:13 PM: ​
1:39:13 PM:   Error location
1:39:13 PM:   In "onPostBuild" event in "netlify-plugin-cypress" from netlify.toml and package.json
1:39:13 PM:       at /opt/build/repo/frontend/node_modules/cypress/lib/errors.js:373:15
1:39:13 PM:       at tryCatcher (/opt/build/repo/frontend/node_modules/bluebird/js/release/util.js:16:23)
1:39:13 PM:       at Promise._settlePromiseFromHandler (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:547:31)
1:39:13 PM:       at Promise._settlePromise (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:604:18)
1:39:13 PM:       at Promise._settlePromise0 (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:649:10)
1:39:13 PM:       at Promise._settlePromises (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:729:18)
1:39:13 PM:       at Promise._fulfill (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:673:18)
1:39:13 PM:       at Promise._resolveCallback (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:466:57)
1:39:13 PM:       at Promise._settlePromiseFromHandler (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:559:17)
1:39:13 PM:       at Promise._settlePromise (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:604:18)
1:39:13 PM:       at Promise._settlePromise0 (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:649:10)
1:39:13 PM:       at Promise._settlePromises (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:729:18)
1:39:13 PM:       at Promise._fulfill (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:673:18)
1:39:13 PM:       at Promise._resolveCallback (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:466:57)
1:39:13 PM:       at Promise._settlePromiseFromHandler (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:559:17)
1:39:13 PM:       at Promise._settlePromise (/opt/build/repo/frontend/node_modules/bluebird/js/release/promise.js:604:18)
1:39:13 PM: ​
1:39:13 PM:   Error properties
1:39:13 PM:   { known: true, context: {} }
1:39:13 PM: ​
1:39:13 PM:   Resolved config
1:39:13 PM:   build:
1:39:13 PM:     base: /opt/build/repo/frontend
1:39:13 PM:     command: npm run build
1:39:13 PM:     publish: /opt/build/repo/frontend/public
1:39:13 PM:   plugins:
1:39:13 PM:     - inputs: {}
1:39:13 PM:       origin: config
1:39:13 PM:       package: netlify-plugin-gatsby-cache
1:39:13 PM:     - inputs: {}
1:39:13 PM:       origin: config
1:39:13 PM:       package: netlify-plugin-cypress
1:39:13 PM:     - inputs: {}
1:39:13 PM:       origin: config
1:39:13 PM:       package: netlify-plugin-a11y
1:39:13 PM: Caching artifacts
1:39:13 PM: Started saving node modules
1:39:13 PM: Finished saving node modules
1:39:13 PM: Started saving build plugins
1:39:13 PM: Finished saving build plugins
1:39:13 PM: Started saving yarn cache
1:39:13 PM: Finished saving yarn cache
1:39:13 PM: Started saving pip cache
1:39:20 PM: Finished saving pip cache
1:39:20 PM: Started saving emacs cask dependencies
1:39:20 PM: Finished saving emacs cask dependencies
1:39:20 PM: Started saving maven dependencies
1:39:20 PM: Finished saving maven dependencies
1:39:20 PM: Started saving boot dependencies
1:39:20 PM: Finished saving boot dependencies
1:39:20 PM: Started saving go dependencies
1:39:20 PM: Finished saving go dependencies
1:39:20 PM: Error running command: Build script returned non-zero exit code: 1
1:39:20 PM: Failing build: Failed to build site
1:39:20 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
1:39:20 PM: Finished processing build request in 1m40.956570312s

Link to the repo
This commit created the failure: ClareBee/demo-site@fe68d1d

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

1 participant