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 can't detect DISPLAY or is unable to look at DISPLAY export/set variable #18183

Closed
jhderojasUVa opened this issue Sep 21, 2021 · 5 comments
Labels
stale no activity on this issue for a long period

Comments

@jhderojasUVa
Copy link

jhderojasUVa commented Sep 21, 2021

Current behavior

When trying to run Cypress 8.3.1 inside a Docker image in a Jenkins job with an error:
[FAILED] [678:0921/135247.479719:ERROR:browser_main_loop.cc(1402)] Unable to open X display.

More information
Running the command npx cypress info on the pipeline also fails with this message:

+ npx cypress info
The Test Runner unexpectedly exited via a exit event with signal SIGABRT

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: linux (Debian - 10.9)
Cypress Version: 8.3.1

Docker image used: cypress/browsers:node14.17.0-chrome91-ff89

Added on that image the script that runs the xvfb Xvfb :99 -screen 0 1024x768x24 -nolisten tcp &

Tested setting the export DISPLAY=:99 and unset DISPLAY on the step of the pipeline (in order to make Cypress open their own xvfb) with no success (same error).

Also, on the pipeline, I added this line xdpyinfo -display :99 >/dev/null 2>&1 && echo "Display is: In use" || echo "Display is: Free" to check if the Xvfb is running and on that display and yes, it is.

Debug Mode
Opened Cypress with DEBUG=cypress:* and export DISPLAY variable:

$ DEBUG=cypress:* cypress run --config-file './cypress.json' --browser /opt/google/chrome/chrome --headless
2021-09-21T15:24:46.822Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress","run","--config-file","./cypress.json","--browser","/opt/google/chrome/chrome","--headless"]
2021-09-21T15:24:46.824Z cypress:cli NODE_OPTIONS is not set
2021-09-21T15:24:46.825Z cypress:cli:cli program parsing arguments
2021-09-21T15:24:46.847Z cypress:cli:cli running Cypress with args [ Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } ]
2021-09-21T15:24:46.979Z cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', 'run', '--config-file', './cypress.json', '--browser', '/opt/google/chrome/chrome', '--headless' ], opts: Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } }
2021-09-21T15:24:46.982Z cypress:cli parsed cli options { browser: '/opt/google/chrome/chrome', configFile: './cypress.json', headless: true }
2021-09-21T15:24:46.983Z cypress:cli verifying Cypress app
2021-09-21T15:24:46.984Z cypress:cli checking environment variables
2021-09-21T15:24:46.989Z cypress:cli checking if executable exists /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:24:46.994Z cypress:cli Binary is executable? : true
2021-09-21T15:24:46.995Z cypress:cli binaryDir is  /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:24:46.995Z cypress:cli Reading binary package.json from: /.cache/Cypress/8.4.0/Cypress/resources/app/package.json
2021-09-21T15:24:47.003Z cypress:cli Found binary version 8.4.0 installed in: /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:24:47.005Z cypress:cli could not read binary_state.json file at "/.cache/Cypress/8.4.0/binary_state.json"
2021-09-21T15:24:47.005Z cypress:cli {}
2021-09-21T15:24:47.005Z cypress:cli is Verified ? undefined
2021-09-21T15:24:47.006Z cypress:cli running binary verification check 8.4.0
[STARTED] Task without title.
2021-09-21T15:24:47.013Z cypress:cli clearing out the verified version
2021-09-21T15:24:47.015Z cypress:cli DISPLAY environment variable is set to xvfb:99 on Linux
Assuming this DISPLAY points at working X11 server,
Cypress will not spawn own Xvfb

NOTE: if the X11 server is NOT working, Cypress will exit without explanation,
  see https://github.com/cypress-io/cypress/issues/4034
Solution: Unset the DISPLAY variable and try again:
  DISPLAY= npx cypress run ...
2021-09-21T15:24:47.015Z cypress:cli needs Xvfb? false
2021-09-21T15:24:47.016Z cypress:cli spawning, should retry on display problem? true
2021-09-21T15:24:47.016Z cypress:cli disabling Electron sandbox
2021-09-21T15:24:47.016Z cypress:cli running smoke test
2021-09-21T15:24:47.016Z cypress:cli using Cypress executable /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:24:47.016Z cypress:cli smoke test command: /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=131
2021-09-21T15:24:47.017Z cypress:cli smoke test timeout 30000 ms
2021-09-21T15:24:48.629Z cypress:cli Smoke test failed: Error: Command was killed with SIGABRT (Aborted): /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=131
�[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[600:0921/152448.584823:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.
    at makeError (/apps/jenkins/workspace/weather_test/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/apps/jenkins/workspace/weather_test/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  shortMessage: 'Command was killed with SIGABRT (Aborted): /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=131',
  command: '/.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=131',
  exitCode: undefined,
  signal: 'SIGABRT',
  signalDescription: 'Aborted',
  stdout: '',
  stderr: '\x1B[1m\x1B[47m\x1B[31mA JavaScript error occurred in the main process\n' +
    '\x1B[30mUncaught Exception:\n' +
    "Error: Failed to get 'appData' path\n" +
    '    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)\n' +
    '    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)\n' +
    '    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)\n' +
    '    at __webpack_require__ (electron/js2c/browser_init.js:1:128)\n' +
    '    at electron/js2c/browser_init.js:1:1200\n' +
    '    at electron/js2c/browser_init.js:1:1267\n' +
    '    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)\n' +
    '    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)\n' +
    '    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)\n' +
    '    at Module._load (internal/modules/cjs/loader.js:747:15)\x1B[0m\n' +
    '[600:0921/152448.584823:ERROR:browser_main_loop.cc(1402)] Unable to open X display.\n' +
    'The futex facility returned an unexpected error code.',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
2021-09-21T15:24:48.630Z cypress:cli error message: �[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[600:0921/152448.584823:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.
[FAILED] Cypress failed to start.
[FAILED] 
[FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
[FAILED] 
[FAILED] Please refer to the error below for more details.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] �[1m�[47m�[31mA JavaScript error occurred in the main process
[FAILED] �[30mUncaught Exception:
[FAILED] Error: Failed to get 'appData' path
[FAILED] at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
[FAILED] at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
[FAILED] at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
[FAILED] at __webpack_require__ (electron/js2c/browser_init.js:1:128)
[FAILED] at electron/js2c/browser_init.js:1:1200
[FAILED] at electron/js2c/browser_init.js:1:1267
[FAILED] at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
[FAILED] at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
[FAILED] at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
[FAILED] at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[FAILED] [600:0921/152448.584823:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
[FAILED] The futex facility returned an unexpected error code.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux (Debian - 10.9)
[FAILED] Cypress Version: 8.4.0
Cypress failed to start.

This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies

Please refer to the error below for more details.

Opened Cypress with DEBUG=cypress:* and no DISPLAY variable:

$ DEBUG=cypress:* cypress run --config-file './cypress.json' --browser /opt/google/chrome/chrome --headless
2021-09-21T15:31:56.674Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress","run","--config-file","./cypress.json","--browser","/opt/google/chrome/chrome","--headless"]
2021-09-21T15:31:56.676Z cypress:cli NODE_OPTIONS is not set
2021-09-21T15:31:56.676Z cypress:cli:cli program parsing arguments
2021-09-21T15:31:56.683Z cypress:cli:cli running Cypress with args [ Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } ]
2021-09-21T15:31:56.816Z cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', 'run', '--config-file', './cypress.json', '--browser', '/opt/google/chrome/chrome', '--headless' ], opts: Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } }
2021-09-21T15:31:56.819Z cypress:cli parsed cli options { browser: '/opt/google/chrome/chrome', configFile: './cypress.json', headless: true }
2021-09-21T15:31:56.820Z cypress:cli verifying Cypress app
2021-09-21T15:31:56.821Z cypress:cli checking environment variables
2021-09-21T15:31:56.826Z cypress:cli checking if executable exists /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:31:56.833Z cypress:cli Binary is executable? : true
2021-09-21T15:31:56.834Z cypress:cli binaryDir is  /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:31:56.835Z cypress:cli Reading binary package.json from: /.cache/Cypress/8.4.0/Cypress/resources/app/package.json
2021-09-21T15:31:56.842Z cypress:cli Found binary version 8.4.0 installed in: /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:31:56.844Z cypress:cli could not read binary_state.json file at "/.cache/Cypress/8.4.0/binary_state.json"
2021-09-21T15:31:56.845Z cypress:cli {}
2021-09-21T15:31:56.845Z cypress:cli is Verified ? undefined
2021-09-21T15:31:56.845Z cypress:cli running binary verification check 8.4.0
[STARTED] Task without title.
2021-09-21T15:31:56.852Z cypress:cli clearing out the verified version
2021-09-21T15:31:56.855Z cypress:cli DISPLAY environment variable is set to xvfb:99 on Linux
Assuming this DISPLAY points at working X11 server,
Cypress will not spawn own Xvfb

NOTE: if the X11 server is NOT working, Cypress will exit without explanation,
  see https://github.com/cypress-io/cypress/issues/4034
Solution: Unset the DISPLAY variable and try again:
  DISPLAY= npx cypress run ...
2021-09-21T15:31:56.855Z cypress:cli needs Xvfb? false
2021-09-21T15:31:56.855Z cypress:cli spawning, should retry on display problem? true
2021-09-21T15:31:56.855Z cypress:cli disabling Electron sandbox
2021-09-21T15:31:56.855Z cypress:cli running smoke test
2021-09-21T15:31:56.856Z cypress:cli using Cypress executable /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:31:56.856Z cypress:cli smoke test command: /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=808
2021-09-21T15:31:56.856Z cypress:cli smoke test timeout 30000 ms
2021-09-21T15:31:58.482Z cypress:cli Smoke test failed: Error: Command was killed with SIGABRT (Aborted): /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=808
�[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[585:0921/153158.443724:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.
    at makeError (/apps/jenkins/workspace/weather_test/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/apps/jenkins/workspace/weather_test/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  shortMessage: 'Command was killed with SIGABRT (Aborted): /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=808',
  command: '/.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=808',
  exitCode: undefined,
  signal: 'SIGABRT',
  signalDescription: 'Aborted',
  stdout: '',
  stderr: '\x1B[1m\x1B[47m\x1B[31mA JavaScript error occurred in the main process\n' +
    '\x1B[30mUncaught Exception:\n' +
    "Error: Failed to get 'appData' path\n" +
    '    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)\n' +
    '    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)\n' +
    '    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)\n' +
    '    at __webpack_require__ (electron/js2c/browser_init.js:1:128)\n' +
    '    at electron/js2c/browser_init.js:1:1200\n' +
    '    at electron/js2c/browser_init.js:1:1267\n' +
    '    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)\n' +
    '    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)\n' +
    '    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)\n' +
    '    at Module._load (internal/modules/cjs/loader.js:747:15)\x1B[0m\n' +
    '[585:0921/153158.443724:ERROR:browser_main_loop.cc(1402)] Unable to open X display.\n' +
    'The futex facility returned an unexpected error code.',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
2021-09-21T15:31:58.483Z cypress:cli error message: �[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[585:0921/153158.443724:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.
[FAILED] Cypress failed to start.
[FAILED] 
[FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
[FAILED] 
[FAILED] Please refer to the error below for more details.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] �[1m�[47m�[31mA JavaScript error occurred in the main process
[FAILED] �[30mUncaught Exception:
[FAILED] Error: Failed to get 'appData' path
[FAILED] at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
[FAILED] at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
[FAILED] at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
[FAILED] at __webpack_require__ (electron/js2c/browser_init.js:1:128)
[FAILED] at electron/js2c/browser_init.js:1:1200
[FAILED] at electron/js2c/browser_init.js:1:1267
[FAILED] at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
[FAILED] at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
[FAILED] at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
[FAILED] at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[FAILED] [585:0921/153158.443724:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
[FAILED] The futex facility returned an unexpected error code.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux (Debian - 10.9)
[FAILED] Cypress Version: 8.4.0
Cypress failed to start.

This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies

Please refer to the error below for more details.

----------

�[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
at __webpack_require__ (electron/js2c/browser_init.js:1:128)
at electron/js2c/browser_init.js:1:1200
at electron/js2c/browser_init.js:1:1267
at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[585:0921/153158.443724:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.

----------

Platform: linux (Debian - 10.9)
Cypress Version: 8.4.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed with exit code 1: yarn cy:ci
    at makeError (/apps/jenkins/workspace/weather_test/node_modules/start-server-and-test/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/apps/jenkins/workspace/weather_test/node_modules/start-server-and-test/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  shortMessage: 'Command failed with exit code 1: yarn cy:ci',
  command: 'yarn cy:ci',
  escapedCommand: '"yarn cy:ci"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
error Command failed with exit code 1.

Opened Cypress with DEBUG=cypress:* with unset DISPLAY variable:

$ DEBUG=cypress:* cypress run --config-file './cypress.json' --browser /opt/google/chrome/chrome --headless
2021-09-21T15:39:30.036Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress","run","--config-file","./cypress.json","--browser","/opt/google/chrome/chrome","--headless"]
2021-09-21T15:39:30.038Z cypress:cli NODE_OPTIONS is not set
2021-09-21T15:39:30.039Z cypress:cli:cli program parsing arguments
2021-09-21T15:39:30.045Z cypress:cli:cli running Cypress with args [ Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } ]
2021-09-21T15:39:30.174Z cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', 'run', '--config-file', './cypress.json', '--browser', '/opt/google/chrome/chrome', '--headless' ], opts: Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } }
2021-09-21T15:39:30.177Z cypress:cli parsed cli options { browser: '/opt/google/chrome/chrome', configFile: './cypress.json', headless: true }
2021-09-21T15:39:30.178Z cypress:cli verifying Cypress app
2021-09-21T15:39:30.179Z cypress:cli checking environment variables
2021-09-21T15:39:30.184Z cypress:cli checking if executable exists /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:39:30.191Z cypress:cli Binary is executable? : true
2021-09-21T15:39:30.191Z cypress:cli binaryDir is  /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:39:30.192Z cypress:cli Reading binary package.json from: /.cache/Cypress/8.4.0/Cypress/resources/app/package.json
2021-09-21T15:39:30.201Z cypress:cli Found binary version 8.4.0 installed in: /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:39:30.203Z cypress:cli could not read binary_state.json file at "/.cache/Cypress/8.4.0/binary_state.json"
2021-09-21T15:39:30.203Z cypress:cli {}
2021-09-21T15:39:30.204Z cypress:cli is Verified ? undefined
2021-09-21T15:39:30.204Z cypress:cli running binary verification check 8.4.0
[STARTED] Task without title.
2021-09-21T15:39:30.211Z cypress:cli clearing out the verified version
2021-09-21T15:39:30.213Z cypress:cli DISPLAY environment variable is set to xvfb:99 on Linux
Assuming this DISPLAY points at working X11 server,
Cypress will not spawn own Xvfb

NOTE: if the X11 server is NOT working, Cypress will exit without explanation,
  see https://github.com/cypress-io/cypress/issues/4034
Solution: Unset the DISPLAY variable and try again:
  DISPLAY= npx cypress run ...
2021-09-21T15:39:30.214Z cypress:cli needs Xvfb? false
2021-09-21T15:39:30.214Z cypress:cli spawning, should retry on display problem? true
2021-09-21T15:39:30.214Z cypress:cli disabling Electron sandbox
2021-09-21T15:39:30.214Z cypress:cli running smoke test
2021-09-21T15:39:30.214Z cypress:cli using Cypress executable /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:39:30.215Z cypress:cli smoke test command: /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=143
2021-09-21T15:39:30.215Z cypress:cli smoke test timeout 30000 ms
2021-09-21T15:39:31.858Z cypress:cli Smoke test failed: Error: Command was killed with SIGABRT (Aborted): /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=143
�[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[598:0921/153931.802540:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.
    at makeError (/apps/jenkins/workspace/weather_test/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/apps/jenkins/workspace/weather_test/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  shortMessage: 'Command was killed with SIGABRT (Aborted): /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=143',
  command: '/.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=143',
  exitCode: undefined,
  signal: 'SIGABRT',
  signalDescription: 'Aborted',
  stdout: '',
  stderr: '\x1B[1m\x1B[47m\x1B[31mA JavaScript error occurred in the main process\n' +
    '\x1B[30mUncaught Exception:\n' +
    "Error: Failed to get 'appData' path\n" +
    '    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)\n' +
    '    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)\n' +
    '    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)\n' +
    '    at __webpack_require__ (electron/js2c/browser_init.js:1:128)\n' +
    '    at electron/js2c/browser_init.js:1:1200\n' +
    '    at electron/js2c/browser_init.js:1:1267\n' +
    '    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)\n' +
    '    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)\n' +
    '    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)\n' +
    '    at Module._load (internal/modules/cjs/loader.js:747:15)\x1B[0m\n' +
    '[598:0921/153931.802540:ERROR:browser_main_loop.cc(1402)] Unable to open X display.\n' +
    'The futex facility returned an unexpected error code.',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
2021-09-21T15:39:31.859Z cypress:cli error message: �[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[598:0921/153931.802540:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.
[FAILED] Cypress failed to start.
[FAILED] 
[FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
[FAILED] 
[FAILED] Please refer to the error below for more details.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] �[1m�[47m�[31mA JavaScript error occurred in the main process
[FAILED] �[30mUncaught Exception:
[FAILED] Error: Failed to get 'appData' path
[FAILED] at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
[FAILED] at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
[FAILED] at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
[FAILED] at __webpack_require__ (electron/js2c/browser_init.js:1:128)
[FAILED] at electron/js2c/browser_init.js:1:1200
[FAILED] at electron/js2c/browser_init.js:1:1267
[FAILED] at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
[FAILED] at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
[FAILED] at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
[FAILED] at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[FAILED] [598:0921/153931.802540:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
[FAILED] The futex facility returned an unexpected error code.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux (Debian - 10.9)
[FAILED] Cypress Version: 8.4.0
Cypress failed to start.

This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies

Please refer to the error below for more details.

----------

�[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
at __webpack_require__ (electron/js2c/browser_init.js:1:128)
at electron/js2c/browser_init.js:1:1200
at electron/js2c/browser_init.js:1:1267
at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[598:0921/153931.802540:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.

----------

Platform: linux (Debian - 10.9)
Cypress Version: 8.4.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed with exit code 1: yarn cy:ci
    at makeError (/apps/jenkins/workspace/weather_test/node_modules/start-server-and-test/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/apps/jenkins/workspace/weather_test/node_modules/start-server-and-test/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  shortMessage: 'Command failed with exit code 1: yarn cy:ci',
  command: 'yarn cy:ci',
  escapedCommand: '"yarn cy:ci"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Desired behavior

  • Verify Cypress correctly
  • Run the test headless or, at least run the cypress info and have some response

It will be great, also, to have a environment variable into Cypress to set the DISPLAY manually, something like CYPRESS_DISPLAY.

Test code to reproduce

There's no code because it fails at pipeline time when showing the info, so...

Cypress Version

8.3.1

Other

No response

@jhderojasUVa
Copy link
Author

jhderojasUVa commented Sep 21, 2021

I removed the DISPLAY variable (also) from the docker argument failing in the same way... but you can look that Cypress tries to open xvfb with some error about the rights of a file (the user who runs the pipeline, of course is not root, and I put on the log with ** before to be easy to find it) here is the debug if needed:

$ DEBUG=cypress:* cypress run --config-file './cypress.json' --browser /opt/google/chrome/chrome --headless
2021-09-21T15:50:19.045Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress","run","--config-file","./cypress.json","--browser","/opt/google/chrome/chrome","--headless"]
2021-09-21T15:50:19.047Z cypress:cli NODE_OPTIONS is not set
2021-09-21T15:50:19.048Z cypress:cli:cli program parsing arguments
2021-09-21T15:50:19.055Z cypress:cli:cli running Cypress with args [ Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } ]
2021-09-21T15:50:19.184Z cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', 'run', '--config-file', './cypress.json', '--browser', '/opt/google/chrome/chrome', '--headless' ], opts: Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 20, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/apps/jenkins/workspace/weather_test/journeys/weather/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, configFile: './cypress.json', browser: '/opt/google/chrome/chrome', headless: true, args: [], [Symbol(kCapture)]: false } }
2021-09-21T15:50:19.187Z cypress:cli parsed cli options { browser: '/opt/google/chrome/chrome', configFile: './cypress.json', headless: true }
2021-09-21T15:50:19.188Z cypress:cli verifying Cypress app
2021-09-21T15:50:19.189Z cypress:cli checking environment variables
2021-09-21T15:50:19.195Z cypress:cli checking if executable exists /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:50:19.206Z cypress:cli Binary is executable? : true
2021-09-21T15:50:19.207Z cypress:cli binaryDir is  /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:50:19.207Z cypress:cli Reading binary package.json from: /.cache/Cypress/8.4.0/Cypress/resources/app/package.json
2021-09-21T15:50:19.211Z cypress:cli Found binary version 8.4.0 installed in: /.cache/Cypress/8.4.0/Cypress
2021-09-21T15:50:19.214Z cypress:cli could not read binary_state.json file at "/.cache/Cypress/8.4.0/binary_state.json"
2021-09-21T15:50:19.214Z cypress:cli {}
2021-09-21T15:50:19.214Z cypress:cli is Verified ? undefined
2021-09-21T15:50:19.215Z cypress:cli running binary verification check 8.4.0
[STARTED] Task without title.
2021-09-21T15:50:19.222Z cypress:cli clearing out the verified version
2021-09-21T15:50:19.224Z cypress:cli undefined DISPLAY environment variable
2021-09-21T15:50:19.225Z cypress:cli Cypress will spawn its own Xvfb
2021-09-21T15:50:19.225Z cypress:cli needs Xvfb? true
2021-09-21T15:50:19.225Z cypress:cli Starting Xvfb
**2021-09-21T15:50:19.244Z cypress:xvfb _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root**

2021-09-21T15:50:19.250Z cypress:cli disabling Electron sandbox
2021-09-21T15:50:19.251Z cypress:cli running smoke test
2021-09-21T15:50:19.251Z cypress:cli using Cypress executable /.cache/Cypress/8.4.0/Cypress/Cypress
2021-09-21T15:50:19.251Z cypress:cli smoke test command: /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=304
2021-09-21T15:50:19.251Z cypress:cli smoke test timeout 30000 ms
2021-09-21T15:50:50.389Z cypress:cli Smoke test failed: Error: Command timed out after 30000 milliseconds: /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=304
Timed out
�[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[589:0921/155021.212605: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
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[624:0921/155021.696568:ERROR:viz_main_impl.cc(160)] Exiting GPU process due to errors during initialization
[638:0921/155021.728310:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[638:0921/155021.728889:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
    at timeoutKill (/apps/jenkins/workspace/weather_test/node_modules/execa/lib/kill.js:65:23)
    at Timeout._onTimeout (/apps/jenkins/workspace/weather_test/node_modules/execa/lib/kill.js:81:4)
    at listOnTimeout (internal/timers.js:555:17)
    at processTimers (internal/timers.js:498:7) {
  timedOut: true,
  signal: 'SIGTERM',
  originalMessage: 'Timed out',
  shortMessage: 'Command timed out after 30000 milliseconds: /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=304\n' +
    'Timed out',
  command: '/.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=304',
  exitCode: undefined,
  signalDescription: 'Termination',
  stdout: '',
  stderr: '\x1B[1m\x1B[47m\x1B[31mA JavaScript error occurred in the main process\n' +
    '\x1B[30mUncaught Exception:\n' +
    "Error: Failed to get 'appData' path\n" +
    '    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)\n' +
    '    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)\n' +
    '    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)\n' +
    '    at __webpack_require__ (electron/js2c/browser_init.js:1:128)\n' +
    '    at electron/js2c/browser_init.js:1:1200\n' +
    '    at electron/js2c/browser_init.js:1:1267\n' +
    '    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)\n' +
    '    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)\n' +
    '    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)\n' +
    '    at Module._load (internal/modules/cjs/loader.js:747:15)\x1B[0m\n' +
    '[589:0921/155021.212605: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\n' +
    'libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)\n' +
    '[624:0921/155021.696568:ERROR:viz_main_impl.cc(160)] Exiting GPU process due to errors during initialization\n' +
    '[638:0921/155021.728310:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader\n' +
    '[638:0921/155021.728889:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader',
  failed: true,
  isCanceled: false,
  killed: false
}
2021-09-21T15:50:50.390Z cypress:cli error message: �[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
    at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
    at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[589:0921/155021.212605: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
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[624:0921/155021.696568:ERROR:viz_main_impl.cc(160)] Exiting GPU process due to errors during initialization
[638:0921/155021.728310:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[638:0921/155021.728889:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
2021-09-21T15:50:50.390Z cypress:cli error timedOut is true
2021-09-21T15:50:50.405Z cypress:cli Stopping Xvfb
[FAILED] Cypress verification timed out.
[FAILED] 
[FAILED] This command failed with the following output:
[FAILED] 
[FAILED] /.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=304
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] �[1m�[47m�[31mA JavaScript error occurred in the main process
[FAILED] �[30mUncaught Exception:
[FAILED] Error: Failed to get 'appData' path
[FAILED] at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
[FAILED] at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
[FAILED] at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
[FAILED] at __webpack_require__ (electron/js2c/browser_init.js:1:128)
[FAILED] at electron/js2c/browser_init.js:1:1200
[FAILED] at electron/js2c/browser_init.js:1:1267
[FAILED] at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
[FAILED] at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
[FAILED] at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
[FAILED] at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[FAILED] [589:0921/155021.212605: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
[FAILED] libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[FAILED] [624:0921/155021.696568:ERROR:viz_main_impl.cc(160)] Exiting GPU process due to errors during initialization
[FAILED] [638:0921/155021.728310:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[FAILED] [638:0921/155021.728889:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux (Debian - 10.9)
[FAILED] Cypress Version: 8.4.0
Cypress verification timed out.

This command failed with the following output:

/.cache/Cypress/8.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=304

----------

�[1m�[47m�[31mA JavaScript error occurred in the main process
�[30mUncaught Exception:
Error: Failed to get 'appData' path
at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1350)
at Object.<anonymous> (electron/js2c/browser_init.js:193:2129)
at Object../lib/browser/init.ts (electron/js2c/browser_init.js:193:3441)
at __webpack_require__ (electron/js2c/browser_init.js:1:128)
at electron/js2c/browser_init.js:1:1200
at electron/js2c/browser_init.js:1:1267
at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
at Module._load (internal/modules/cjs/loader.js:747:15)�[0m
[589:0921/155021.212605: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
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[624:0921/155021.696568:ERROR:viz_main_impl.cc(160)] Exiting GPU process due to errors during initialization
[638:0921/155021.728310:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[638:0921/155021.728889:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader

----------

Platform: linux (Debian - 10.9)
Cypress Version: 8.4.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed with exit code 1: yarn cy:ci
    at makeError (/apps/jenkins/workspace/weather_test/node_modules/start-server-and-test/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/apps/jenkins/workspace/weather_test/node_modules/start-server-and-test/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  shortMessage: 'Command failed with exit code 1: yarn cy:ci',
  command: 'yarn cy:ci',
  escapedCommand: '"yarn cy:ci"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

@exiledturtle
Copy link

hi, any updates on how to resolve this? getting the exact same error when I run npx cypress verify:

[2314:0406/103501.235298:ERROR:browser_main_loop.cc(1438)] Unable to open X display.
The futex facility returned an unexpected error code.

----------

Platform: linux (Ubuntu - 20.04)
Cypress Version: 7.7.0

@kenobi-io
Copy link

same issue

❯ /home/../.cache/Cypress/10.10.0/Cypress/Cypress --smoke-test --ping=101
[8203:1012/104109.529617:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[8203:1012/104109.529677:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
[1]    8203 segmentation fault  /home/.../.cache/Cypress/10.10.0/Cypress/Cypress --smoke-test --ping=101

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 15, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

4 participants