question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR Unable to establish one or more of the specified browser connections

See original GitHub issue

Are you requesting a feature or reporting a bug?

bug

What is the current behavior?

when I launch test with nightmare (using testcafe-browser-provider-nightmare) i get ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.

I use amazone EC2 instance, also i open some ports from amazon console, and runt tests using “DEBUG=* testcafe nightmare tests/ --ports 9991,9992 --hostname 127.0.0.1” - no luck(

What is the expected behavior?

test results expected

How would you reproduce the current behavior (if this is a bug)?

fails at any test

Provide the test code and the tested page URL (if applicable)

Tested with test.js example from testcafe

Specify your

  • operating system: ubuntu 14.04
  • testcafe version: 0.12.0-alpha4
  • node.js version: 4.2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10

github_iconTop GitHub Comments

4reactions
AndreyBelymcommented, Dec 11, 2017

Chrome needs the --no-sandbox flag in a Docker container, or container should be started in privileged mode.

testcafe 'chrome --no-sandbox' tests/
3reactions
AndreyBelymcommented, Aug 28, 2017

Hello @jackyxiao126, it’s likely

xvfb-run --server-num=99 --server-args='-ac -screen 0 1024x768x16' testcafe ...

Check the xvfb-run manual.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to establish one or more of the specified browser ...
ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure....
Read more >
TestCafe - Error : Cannot establish one or more browser ...
TestCafe - Error : Cannot establish one or more browser connections · Increase the value of the "browserInitTimeout" option if it is too...
Read more >
I am having problems running my UI tests pipeline (testcafe ...
ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure....
Read more >
Use the TestCafe Docker Image | Advanced Guides
Troubleshooting. 'Unable to establish one or more of the specified browser connections' error when running Chrome/Chromium in a CI system.
Read more >
testcafe-browser-provider-browserstack - npm
Unable to establish one or more of the specified browser connections. To keep within your account limitations, you can run tests sequentially ( ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found