Cypress hangs when running in docker container in Concourse CI
See original GitHub issueCurrent behavior:
Cypress v4.4.0
is run inside a docker container in our CI. After thecypress:server:plugins
debug messages it just hangs and the only output is from cypress:server:util:process_profiler
every 10 seconds.
The docker image is built on cypress/included:4.4.1
.
> <project> cy:run:debug /opt/src/app
> DEBUG=cypress:* npm run cy:run
> <project> cy:run /opt/src/app
> cypress run --headless -b chrome
cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/opt/src/app/node_modules/.bin/cypress","run","--headless","-b","chrome"] +0ms
cypress:cli NODE_OPTIONS is not set +0ms
cypress:cli:cli program parsing arguments +2ms
cypress:cli:cli running Cypress with args [ Command { commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _noHelp: false, _exitCallback: undefined, _executableFile: undefined, parent: Command { commands: [Array], options: [Array], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _usage: '<command> [options]', _events: [Object: null prototype], _eventsCount: 9, rawArgs: [Array], args: [] }, _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, _events: [Object: null prototype] { 'option:browser': [Function], 'option:ci-build-id': [Function], 'option:config': [Function], 'option:config-file': [Function], 'option:env': [Function], 'option:group': [Function], 'option:key': [Function], 'option:headed': [Function], 'option:headless': [Function], 'option:no-exit': [Function], 'option:parallel': [Function], 'option:port': [Function], 'option:project': [Function], 'option:record': [Function], 'option:reporter': [Function], 'option:reporter-options': [Function], 'option:spec': [Function], 'option:tag': [Function], 'option:dev': [Function] }, _eventsCount: 19, exit: true, headless: true, browser: 'chrome' } ] +2ms
cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/opt/src/app/node_modules/.bin/cypress', 'run', '--headless', '-b', 'chrome' ], opts: Command { commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _noHelp: false, _exitCallback: undefined, _executableFile: undefined, parent: Command { commands: [Array], options: [Array], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _usage: '<command> [options]', _events: [Object: null prototype], _eventsCount: 9, rawArgs: [Array], args: [] }, _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, _events: [Object: null prototype] { 'option:browser': [Function], 'option:ci-build-id': [Function], 'option:config': [Function], 'option:config-file': [Function], 'option:env': [Function], 'option:group': [Function], 'option:key': [Function], 'option:headed': [Function], 'option:headless': [Function], 'option:no-exit': [Function], 'option:parallel': [Function], 'option:port': [Function], 'option:project': [Function], 'option:record': [Function], 'option:reporter': [Function], 'option:reporter-options': [Function], 'option:spec': [Function], 'option:tag': [Function], 'option:dev': [Function] }, _eventsCount: 19, exit: true, headless: true, browser: 'chrome' } } +206ms
cypress:cli parsed cli options { browser: 'chrome', headless: true } +212ms
cypress:cli verifying Cypress app +0ms
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +1ms
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +0ms
cypress:cli using environment variable CYPRESS_CACHE_FOLDER /root/.cache/Cypress +0ms
cypress:cli checking environment variables +1ms
cypress:cli checking if executable exists /root/.cache/Cypress/4.4.0/Cypress/Cypress +18ms
cypress:cli Binary is executable? : true +3ms
cypress:cli binaryDir is /root/.cache/Cypress/4.4.0/Cypress +1ms
cypress:cli Reading binary package.json from: /root/.cache/Cypress/4.4.0/Cypress/resources/app/package.json +22ms
cypress:cli Found binary version 4.4.0 installed in: /root/.cache/Cypress/4.4.0/Cypress +3ms
cypress:cli could not read binary_state.json file at "/root/.cache/Cypress/4.4.0/binary_state.json" +4ms
cypress:cli {} +0ms
cypress:cli is Verified ? undefined +2ms
cypress:cli running binary verification check 4.4.0 +0ms
25l[13:08:16] Verifying Cypress can run /root/.cache/Cypress/4.4.0/Cypress [started]
cypress:cli clearing out the verified version +4ms
cypress:cli undefined DISPLAY environment variable +0ms
cypress:cli Cypress will spawn its own Xvfb +0ms
cypress:cli needs Xvfb? true +6ms
cypress:cli Starting Xvfb +1ms
cypress:cli disabling Electron sandbox +41ms
cypress:cli running smoke test +1ms
cypress:cli using Cypress executable /root/.cache/Cypress/4.4.0/Cypress/Cypress +0ms
cypress:cli smoke test command: /root/.cache/Cypress/4.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=2 +0ms
cypress:cli smoke test timeout 30000 ms +0ms
cypress:cli smoke test stdout "It looks like you are running the Cypress binary directly.
This is not the recommended approach, and Cypress may not work correctly.
Please install the 'cypress' NPM package and follow the instructions here:
https://on.cypress.io/installing-cypress
2" +11s
cypress:cli Stopping Xvfb +11s
cypress:cli write verified: true +44ms
cypress:cli could not read binary_state.json file at "/root/.cache/Cypress/4.4.0/binary_state.json" +11s
[13:08:27] Verifying Cypress can run /root/.cache/Cypress/4.4.0/Cypress [completed]
25h cypress:cli:run processing run options { browser: 'chrome', headless: true, key: null, spec: null, reporter: null, reporterOptions: null, project: '/opt/src/app' } +0ms
cypress:cli:run --key is not set, looking up environment variable CYPRESS_RECORD_KEY +1ms
cypress:cli:run run to spawn.start args ["--run-project","/opt/src/app","--browser","chrome","--headed",false] +0ms
cypress:cli undefined DISPLAY environment variable +49ms
cypress:cli Cypress will spawn its own Xvfb +0ms
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +11s
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +0ms
cypress:cli using environment variable CYPRESS_CACHE_FOLDER /root/.cache/Cypress +6ms
cypress:cli needs to start own Xvfb? true +0ms
cypress:cli Starting Xvfb +2ms
cypress:cli spawning, should retry on display problem? false +18ms
cypress:cli passing DISPLAY :99 +7ms
cypress:cli spawning Cypress with executable: /root/.cache/Cypress/4.4.0/Cypress/Cypress +0ms
cypress:cli spawn args [ '--no-sandbox', '--', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', false, '--cwd', '/opt/src/app' ] { detached: false, stdio: [ 'inherit', 'inherit', 'pipe' ] } +0ms
cypress:cli piping child STDERR to process STDERR +4ms
cypress:ts Running without ts-node hook in environment "production" +0ms
cypress:server:appdata path: /root/.config/Cypress/cy/production/browsers +0ms
cypress:server:util:node_options NODE_OPTIONS check passed, not forking { NODE_OPTIONS: '--max-http-header-size=1048576 --http-parser=legacy' } +0ms
cypress:server:util:node_options restoring NODE_OPTIONS { NODE_OPTIONS: '--max-http-header-size=1048576 --http-parser=legacy', ORIGINAL_NODE_OPTIONS: undefined } +2ms
cypress:server:cypress starting cypress with argv [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress', '--no-sandbox', '--', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', 'false', '--cwd', '/opt/src/app' ] +0ms
cypress:server:args argv array: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', 'false', '--cwd', '/opt/src/app' ] +0ms
cypress:server:args argv parsed: { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true } +6ms
cypress:server:util:proxy found proxy environment variables { npm_config_proxy: '', npm_config_https_proxy: '' } +0ms
cypress:server:args options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {} } +2ms
cypress:server:args argv options: { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +0ms
cypress:server:cypress from argv [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', 'false', '--cwd', '/opt/src/app' ] got options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +11ms
cypress:server:cypress scaling electron app in headless mode +0ms
cypress:server:appdata path: /root/.config/Cypress/cy/production +477ms
cypress:server:cypress starting in mode run with options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +99ms
cypress:server:cypress running Electron currently +1ms
cypress:server:appdata path: /root/.config/Cypress/cy/production +1s
cypress:server:appdata path: /root/.config/Cypress/cy/production/cache +7ms
cypress:server:video using ffmpeg from /root/.cache/Cypress/4.4.0/Cypress/resources/app/packages/server/node_modules/@ffmpeg-installer/linux-x64/ffmpeg +0ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler βββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββ¬βββββββββββββ¬βββββββββββββ¬βββββββββββββββββ¬βββββββββββ¬βββββββββββββββ¬ββββββββββββββ
cypress:server:util:process_profiler β (index) β group β processCount β pids β cpuPercent β meanCpuPercent β memRssMb β meanMemRssMb β maxMemRssMb β
cypress:server:util:process_profiler βββββββββββΌββββββββββββββββββββΌβββββββββββββββΌβββββββββββββΌβββββββββββββΌβββββββββββββββββΌβββββββββββΌβββββββββββββββΌββββββββββββββ€
cypress:server:util:process_profiler β 0 β 'cypress' β 1 β '312' β 0 β 0 β 161.12 β 161.12 β 161.12 β
cypress:server:util:process_profiler β 1 β 'electron-shared' β 1 β '320' β 0 β 0 β 39.89 β 39.89 β 39.89 β
cypress:server:util:process_profiler β 2 β 'other' β 2 β '461, 462' β 0 β 0 β 3.43 β 3.43 β 3.43 β
cypress:server:util:process_profiler β 3 β 'TOTAL' β 4 β '-' β 0 β 0 β 204.45 β 204.45 β 204.45 β
cypress:server:util:process_profiler βββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββ΄βββββββββββββ΄βββββββββββββ΄βββββββββββββββββ΄βββββββββββ΄βββββββββββββββ΄ββββββββββββββ +0ms
cypress:server:run run mode ready with options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +0ms
cypress:server:browsers getAllBrowsersWith { nameOrPath: undefined } +0ms
cypress:server:browsers:utils getBrowsers +0ms
cypress:launcher detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, profile: true, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ] }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, profile: true, binary: [ 'chromium-browser', 'chromium' ] }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, profile: true, binary: 'google-chrome-canary' }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, profile: true, binary: 'firefox' }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, profile: true, binary: [ 'firefox-developer-edition', 'firefox' ] }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, profile: true, binary: [ 'firefox-nightly', 'firefox-trunk' ] }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, profile: true, binary: 'edge' }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, profile: true, binary: 'edge-canary' }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, profile: true, binary: 'edge-beta' }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, profile: true, binary: 'edge-dev' } ] +0ms
cypress:launcher checking one browser chrome +266ms
cypress:launcher looking up chrome on linux platform +3ms
cypress:launcher finding version string using command "google-chrome --version" +0ms
cypress:launcher checking one browser chrome +1s
cypress:launcher looking up chrome on linux platform +0ms
cypress:launcher finding version string using command "chrome --version" +0ms
cypress:launcher checking one browser chrome +2s
cypress:launcher looking up chrome on linux platform +12ms
cypress:launcher finding version string using command "google-chrome-stable --version" +5ms
cypress:launcher Received error detecting browser binary: "chrome" with error: Command failed with ENOENT: chrome --version
spawn chrome ENOENT +11s
cypress:launcher browser chrome not installed +8ms
cypress:launcher stdout: "Google Chrome 80.0.3987.116" +147ms
cypress:launcher stdout: "Google Chrome 80.0.3987.116" +1ms
cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"stable","displayName":"Chrome","version":"80.0.3987.116","path":"google-chrome"} +0ms
cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"stable","displayName":"Chrome","version":"80.0.3987.116","path":"google-chrome-stable"} +1ms
cypress:launcher browser chrome version 80.0.3987.116 major version 80 +1ms
cypress:launcher browser chrome version 80.0.3987.116 major version 80 +0ms
cypress:launcher checking one browser chromium +21ms
cypress:launcher looking up chromium on linux platform +0ms
cypress:launcher finding version string using command "chromium-browser --version" +0ms
cypress:launcher checking one browser chromium +117ms
cypress:launcher looking up chromium on linux platform +1ms
cypress:launcher finding version string using command "chromium --version" +1ms
cypress:launcher Received error detecting browser binary: "chromium" with error: Command failed with ENOENT: chromium --version
spawn chromium ENOENT +97ms
cypress:launcher Received error detecting browser binary: "chromium-browser" with error: Command failed with ENOENT: chromium-browser --version
spawn chromium-browser ENOENT +0ms
cypress:launcher browser chromium not installed +0ms
cypress:launcher browser chromium not installed +0ms
cypress:launcher checking one browser chrome +3ms
cypress:launcher looking up chrome on linux platform +0ms
cypress:launcher finding version string using command "google-chrome-canary --version" +0ms
cypress:launcher Received error detecting browser binary: "google-chrome-canary" with error: Command failed with ENOENT: google-chrome-canary --version
spawn google-chrome-canary ENOENT +166ms
cypress:launcher browser chrome not installed +3ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler βββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββββββββββ¬βββββββββββββ¬βββββββββββββββββ¬βββββββββββ¬βββββββββββββββ¬ββββββββββββββ
cypress:server:util:process_profiler β (index) β group β processCount β pids β cpuPercent β meanCpuPercent β memRssMb β meanMemRssMb β maxMemRssMb β
cypress:server:util:process_profiler βββββββββββΌββββββββββββββββββββΌβββββββββββββββΌβββββββββββββββββββββββΌβββββββββββββΌβββββββββββββββββΌβββββββββββΌβββββββββββββββΌββββββββββββββ€
cypress:server:util:process_profiler β 0 β 'cypress' β 1 β '312' β 23.02 β 11.51 β 190.68 β 175.9 β 190.68 β
cypress:server:util:process_profiler β 1 β 'electron-shared' β 2 β '320, 496' β 0 β 0 β 39.86 β 39.87 β 39.89 β
cypress:server:util:process_profiler β 2 β 'other' β 4 β '497, 499, 530, 531' β 59.4 β 29.7 β 3.32 β 3.38 β 3.43 β
cypress:server:util:process_profiler β 3 β 'TOTAL' β 7 β '-' β 82.42 β 41.21 β 233.86 β 219.16 β 233.86 β
cypress:server:util:process_profiler βββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββββββββββ΄βββββββββββββ΄βββββββββββββββββ΄βββββββββββ΄βββββββββββββββ΄ββββββββββββββ +16s
cypress:launcher checking one browser firefox +5ms
cypress:launcher looking up firefox on linux platform +0ms
cypress:launcher finding version string using command "firefox --version" +0ms
cypress:launcher stdout: "Mozilla Firefox 74.0" +2s
cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"stable","displayName":"Firefox","version":"74.0","path":"firefox","info":"Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue)."} +650ms
cypress:launcher browser firefox version 74.0 major version 74 +201ms
cypress:launcher checking one browser firefox +810ms
cypress:launcher looking up firefox on linux platform +583ms
cypress:launcher finding version string using command "firefox-developer-edition --version" +1s
cypress:launcher checking one browser firefox +1m
cypress:launcher looking up firefox on linux platform +19ms
cypress:launcher finding version string using command "firefox --version" +0ms
cypress:launcher Received error detecting browser binary: "firefox-developer-edition" with error: Command failed with ENOENT: firefox-developer-edition --version
spawn firefox-developer-edition ENOENT +2s
cypress:launcher browser firefox not installed +1ms
cypress:launcher stdout: "Mozilla Firefox 74.0" +229ms
cypress:launcher Could not extract version from stdout using regex: { stdout: 'Mozilla Firefox 74.0', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m } +1ms
cypress:launcher Received error detecting browser binary: "firefox" with error: Browser not installed: firefox +0ms
cypress:launcher browser firefox not installed +0ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler βββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββββ¬βββββββββββββ¬βββββββββββββββββ¬βββββββββββ¬βββββββββββββββ¬ββββββββββββββ
cypress:server:util:process_profiler β (index) β group β processCount β pids β cpuPercent β meanCpuPercent β memRssMb β meanMemRssMb β maxMemRssMb β
cypress:server:util:process_profiler βββββββββββΌββββββββββββββββββββΌβββββββββββββββΌββββββββββββββββββΌβββββββββββββΌβββββββββββββββββΌβββββββββββΌβββββββββββββββΌββββββββββββββ€
cypress:server:util:process_profiler β 0 β 'cypress' β 1 β '312' β 18.39 β 13.8 β 179.34 β 177.05 β 190.68 β
cypress:server:util:process_profiler β 1 β 'electron-shared' β 3 β '320, 496, 533' β 1.09 β 0.36 β 44.86 β 41.54 β 44.86 β
cypress:server:util:process_profiler β 2 β 'other' β 3 β '567, 569, 570' β 0 β 19.8 β 15.4 β 7.38 β 15.4 β
cypress:server:util:process_profiler β 3 β 'TOTAL' β 7 β '-' β 19.48 β 33.97 β 239.59 β 225.97 β 239.59 β
cypress:server:util:process_profiler βββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββ΄ββββββββββββββββββ΄βββββββββββββ΄βββββββββββββββββ΄βββββββββββ΄βββββββββββββββ΄ββββββββββββββ +1m
cypress:launcher checking one browser firefox +4ms
cypress:launcher looking up firefox on linux platform +1ms
cypress:launcher finding version string using command "firefox-nightly --version" +0ms
cypress:launcher checking one browser firefox +14ms
cypress:launcher looking up firefox on linux platform +1ms
cypress:launcher finding version string using command "firefox-trunk --version" +0ms
cypress:launcher Received error detecting browser binary: "firefox-trunk" with error: Command failed with ENOENT: firefox-trunk --version
spawn firefox-trunk ENOENT +16ms
cypress:launcher Received error detecting browser binary: "firefox-nightly" with error: Command failed with ENOENT: firefox-nightly --version
spawn firefox-nightly ENOENT +1ms
cypress:launcher browser firefox not installed +0ms
cypress:launcher browser firefox not installed +0ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge --version" +0ms
cypress:launcher Received error detecting browser binary: "edge" with error: Command failed with ENOENT: edge --version
spawn edge ENOENT +14ms
cypress:launcher browser edge not installed +0ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge-canary --version" +0ms
cypress:launcher Received error detecting browser binary: "edge-canary" with error: Command failed with ENOENT: edge-canary --version
spawn edge-canary ENOENT +15ms
cypress:launcher browser edge not installed +1ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge-beta --version" +0ms
cypress:launcher Received error detecting browser binary: "edge-beta" with error: Command failed with ENOENT: edge-beta --version
spawn edge-beta ENOENT +16ms
cypress:launcher browser edge not installed +0ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge-dev --version" +0ms
cypress:launcher Received error detecting browser binary: "edge-dev" with error: Command failed with ENOENT: edge-dev --version
spawn edge-dev ENOENT +18ms
cypress:launcher browser edge not installed +0ms
cypress:server:browsers:utils found browsers { browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 } ] } +2m
cypress:server:browsers:utils adding Electron browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } +1ms
cypress:server:run found all system browsers [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ] +2m
cypress:server:open_project open_project create /opt/src/app +0ms
cypress:server:open_project and options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function] } +21ms
cypress:server:project Project created /opt/src/app +0ms
cypress:server:open_project opening project /opt/src/app +2ms
cypress:server:open_project and options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function], onReloadBrowser: [Function: onReloadBrowser] } +0ms
cypress:server:project opening project instance /opt/src/app +1ms
cypress:server:project project open options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function], onReloadBrowser: [Function: onReloadBrowser] } +1ms
cypress:server:project project options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function], onReloadBrowser: [Function: onReloadBrowser], onFocusTests: [Function: onFocusTests], onSettingsChanged: false } +0ms
cypress:server:config setting config object +0ms
cypress:server:config config is { defaultCommandTimeout: 10000, requestTimeout: 10000 } +0ms
cypress:server:config merged config with options, got { defaultCommandTimeout: 10000, requestTimeout: 10000, envFile: {}, projectRoot: '/opt/src/app', projectName: 'app', morgan: false, isTextTerminal: true, socketId: 'edxrj', report: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ] } +0ms
cypress:server:config using CYPRESS_INTERNAL_ENV production +15ms
cypress:server:config resolved config is { value: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], from: 'default' } +1ms
cypress:server:validation browsers [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ] +0ms
cypress:server:config setting support file /opt/src/app/cypress/support +4ms
cypress:server:config for project root /opt/src/app +1ms
cypress:server:config set support folder /opt/src/app/cypress/support +1ms
cypress:server:config setting plugins file /opt/src/app/cypress/plugins +1ms
cypress:server:config for project root /opt/src/app +0ms
cypress:server:config set pluginsFile to /opt/src/app/cypress/plugins/index.js +0ms
cypress:server:config set scaffold paths +1ms
cypress:server:scaffold scaffolded files ["cypress/integration/examples/actions.spec.js","cypress/integration/examples/aliasing.spec.js","cypress/integration/examples/assertions.spec.js","cypress/integration/examples/connectors.spec.js","cypress/integration/examples/cookies.spec.js","cypress/integration/examples/cypress_api.spec.js","cypress/integration/examples/files.spec.js","cypress/integration/examples/local_storage.spec.js","cypress/integration/examples/location.spec.js","cypress/integration/examples/misc.spec.js","cypress/integration/examples/navigation.spec.js","cypress/integration/examples/network_requests.spec.js","cypress/integration/examples/querying.spec.js","cypress/integration/examples/spies_stubs_clocks.spec.js","cypress/integration/examples/traversal.spec.js","cypress/integration/examples/utilities.spec.js","cypress/integration/examples/viewport.spec.js","cypress/integration/examples/waiting.spec.js","cypress/integration/examples/window.spec.js","cypress/fixtures/example.json","cypress/support/commands.js","cypress/support/index.js","cypress/plugins/index.js"] +0ms
cypress:server:config got file tree +6ms
cypress:server:project get saved state +46ms
cypress:server:saved_state noop saved state +0ms
cypress:server:project scaffolding with plugins file /opt/src/app/cypress/plugins/index.js +4ms
cypress:server:scaffold plugins folder /opt/src/app/cypress/plugins +7ms
cypress:server:scaffold verify scaffolding in /opt/src/app/cypress/plugins +0ms
cypress:server:scaffold folder /opt/src/app/cypress/plugins already exists +1ms
cypress:server:project typescript path: /opt/src/app/node_modules/typescript/lib/typescript.js +10ms
cypress:server:plugins plugins.init /opt/src/app/cypress/plugins/index.js +0ms
cypress:server:plugins forking to run /root/.cache/Cypress/4.4.0/Cypress/resources/app/packages/server/lib/plugins/child/index.js +0ms
cypress:server:plugins:child pluginsFile: /opt/src/app/cypress/plugins/index.js +0ms
cypress:server:plugins:child typescript path: /root/.cache/Cypress/4.4.0/Cypress/resources/app/packages/server/node_modules/typescript/lib/typescript.js +6s
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler βββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββββ¬βββββββββββββ¬βββββββββββββββββ¬βββββββββββ¬βββββββββββββββ¬ββββββββββββββ
cypress:server:util:process_profiler β (index) β group β processCount β pids β cpuPercent β meanCpuPercent β memRssMb β meanMemRssMb β maxMemRssMb β
cypress:server:util:process_profiler βββββββββββΌββββββββββββββββββββΌβββββββββββββββΌββββββββββββββββββΌβββββββββββββΌβββββββββββββββββΌβββββββββββΌβββββββββββββββΌββββββββββββββ€
cypress:server:util:process_profiler β 0 β 'cypress' β 1 β '312' β 7.38 β 12.2 β 163.08 β 173.55 β 190.68 β
cypress:server:util:process_profiler β 1 β 'electron-shared' β 3 β '320, 496, 533' β 0 β 0.27 β 42.48 β 41.77 β 44.86 β
cypress:server:util:process_profiler β 2 β 'plugin' β 1 β '599' β 0 β 0 β 32.05 β 32.05 β 32.05 β
cypress:server:util:process_profiler β 3 β 'other' β 2 β '607, 608' β 0 β 14.85 β 2.11 β 6.06 β 15.4 β
cypress:server:util:process_profiler β 4 β 'TOTAL' β 7 β '-' β 7.38 β 27.32 β 239.71 β 229.4 β 239.71 β
cypress:server:util:process_profiler βββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββ΄ββββββββββββββββββ΄βββββββββββββ΄βββββββββββββββββ΄βββββββββββ΄βββββββββββββββ΄ββββββββββββββ +14s
Desired behavior:
Cypress should not hang with no output or explanation as to why itβs stopped.
Test code to reproduce
Cannot reproduce locally.
Versions
Cypress: v4.4.0 Docker base image: cypress/included:4.4.1 Browser: Chrome
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Cypress Test Failing With "Out Of Memory" Error In Docker
I noticed that Cypress tests were downloading a few static assets in a continuous stream. Cypress hangs when running in docker container in...
Read more >Introduction | Cypress Documentation
What you'll learn An overview of Continuous Integration How to run Cypress tests in Continuous Integration How to configure Cypress in various CI....
Read more >Continuous Integration - cypress - w3resource
This issue describes exactly what you have to do. Whenever you are running on Linux, Cypress will need an X11 server; otherwise it...
Read more >Contributing to Cypress - NotABug
Docker. Sometimes tests pass locally, but fail in CI. Our CI environment is dockerized. In order to run the image used in CI...
Read more >Pipelines everywhere - Medium
This task references a cypress docker-image which is used to run our task and the run script invokes a shell script cypress.sh ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you share what type of memory constraints?
We have managed to recreate the issue using a basic Create React App with Cypress installed. Itβs just using the default tests that come with Cypress and still stalls on the same line before running any of the tests.
This confirms to me that itβs an issue with using Cypress on the Concourse CI and not with our application. Have you got any examples of usage on Concourse?