Getting error on open cypress test runner in centos 7 #249
Description
HI Team,
I followed the below steps to install cypress and to run cypress. Getting the below error,
Steps:
- mkdir mycpress
- cd mycypress
- npm init
- npm install cypress --save-dev
- ./node_modules/.bin/cypress open
now the test runner is opening but i can see this error messages in cli and not running example testcase . Here below is the output. But after login vncviewer session there is executing the test without any error.
kindly suggest how to resolve this?
Output:
mycypress]$ ./node_modules/.bin/cypress open
It looks like this is your first time using Cypress: 6.6.0
✔ Verified Cypress! /home/skrajan/.cache/Cypress/6.6.0/Cypress
Opening Cypress...
[7080:0302/003009.789465:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[7080:0302/003016.536141:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Error msg in test runner for firefox:
Title: Error launching browser
Message: Cypress failed to make a connection to Firefox.
This usually indicates there was a problem opening the Firefox browser.
Error details:
Error: connect ECONNREFUSED 127.0.0.1:41735
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
Stack trace:
Error: Cypress failed to make a connection to Firefox.
This usually indicates there was a problem opening the Firefox browser.
Error details:
Error: connect ECONNREFUSED 127.0.0.1:41735
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
at get (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/lib/errors.js:966:15)
at Object.throwErr [as throw] (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/lib/errors.js:984:9)
at /home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/lib/browsers/firefox.js:387:25
at tryCatcher (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/skrajan/.cache/Cypress/6.6.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:456:21)
In Chrome(88): Browser is opening and running example testcase but with initial error msg.
[7080:0302/003838.893348:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[7080:0302/003838.896959:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[7080:0302/003844.274522:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Failed to connect to Chrome, retrying in 1 second (attempt 18/62)
Failed to connect to Chrome, retrying in 1 second (attempt 19/62)
Failed to connect to Chrome, retrying in 1 second (attempt 20/62)
Failed to connect to Chrome, retrying in 1 second (attempt 21/62)
Failed to connect to Chrome, retrying in 1 second (attempt 22/62)
Failed to connect to Chrome, retrying in 1 second (attempt 23/62)
Failed to connect to Chrome, retrying in 1 second (attempt 24/62)
Failed to connect to Chrome, retrying in 1 second (attempt 25/62)
Failed to connect to Chrome, retrying in 1 second (attempt 26/62)
Failed to connect to Chrome, retrying in 1 second (attempt 27/62)
Failed to connect to Chrome, retrying in 1 second (attempt 28/62)
Failed to connect to Chrome, retrying in 1 second (attempt 29/62)
Failed to connect to Chrome, retrying in 1 second (attempt 30/62)
Failed to connect to Chrome, retrying in 1 second (attempt 31/62)
HEAD / - - ms - -
HEAD / - - ms - -
HEAD / - - ms - -
POST /ListAccounts?gpsia=1&source=ChromiumBrowser&json=standard 200 79.545 ms - -
GET /chrome-variations/seed?osname=linux&channel=stable&milestone=88 200 86.919 ms - -
GET /__/ 200 13.589 ms - -
GET /__cypress/runner/cypress_runner.css 200 5.278 ms - -
GET /__cypress/runner/cypress_runner.js 200 4.795 ms - -
GET /__cypress/runner/fonts/fa-solid-900.woff2 200 4.186 ms - 76120
GET /__cypress/iframes/integration/examples/actions.spec.js 200 10.141 ms - 914
GET /__cypress/static/favicon.ico 200 9.322 ms - -