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

SauceLabsTunnel Error: Failed to start Selenium listener #285

Closed
zanona opened this issue Oct 13, 2014 · 13 comments
Closed

SauceLabsTunnel Error: Failed to start Selenium listener #285

zanona opened this issue Oct 13, 2014 · 13 comments
Labels
invalid This wasn't actually an issue

Comments

@zanona
Copy link

zanona commented Oct 13, 2014

Hey guys, I am using the same configurations as in per the tutorial however, when trying to run test with my SauceLabs free OSS account locally and I get:

$ intern-runner config=tests/intern.js 
Listening on 0.0.0.0:9000
Starting tunnel...
Using no proxy for connecting to Sauce Labs REST API.
Started scproxy on port 56202.
Starting secure remote tunnel VM...
Secure remote tunnel VM provisioned.
Tunnel ID: 99d01c76f00c4c75819f8fc2d3759322
Secure remote tunnel VM is now: running
Remote tunnel host is: maki78116.miso.saucelabs.com
Using no proxy for connecting to tunnel VM.
Starting Selenium listener...
Establishing secure TLS connection to tunnel...
Cleaning up.
Finished! Deleting tunnel.
Error: Failed to start Selenium listener (exit code 2).
Error: Failed to start Selenium listener (exit code 2).
  at reject  <../../Dropbox/Mackup/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:354:17>
  at readStartupMessage  <../../Dropbox/Mackup/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:382:12>
  at <../../Dropbox/Mackup/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:435:12>
  at Array.some  <native>
  at Socket.<anonymous>  <../../Dropbox/Mackup/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:429:21>
  at Socket.emit  <events.js:117:20>
  at Socket.<anonymous>  <_stream_readable.js:764:14>
  at Socket.emit  <events.js:92:17>
  at emitReadable_  <_stream_readable.js:426:10>
  at emitReadable  <_stream_readable.js:422:5>
$

One interesting thing is that I am also using codeship.io to automate tests on push to github repo and from their server it seems to work fine.

Is there any specific configuration I should set locally (mac) to make it work?

Thanks

@vladikoff
Copy link
Member

Also experiencing this issue with latest Sauce Labs Tunnel sc tool.

@neonstalwart
Copy link
Member

do you have anything listening on port 4444? i just had the same problem and fixed it by stopping my local selenium server.

@zanona
Copy link
Author

zanona commented Oct 13, 2014

@neonstalwart nothing running on 4444 unfortunately.

$ lsof -wni tcp:4444
$ 

I don't have selenium locally installed as well, if that helps.

@vladikoff
Copy link
Member

@zanona Try downgrading to 2.0.1, I bet it will work

@zanona
Copy link
Author

zanona commented Oct 13, 2014

Hey guys, that persists even on 2.0.1, I have installed sc tool and apparently there is a firewall error since that is not connecting as well. I assume this issue might be with SauceLabs connect itself and not intern. I will try to get in touch with them.

Thanks for your help.

@csnover csnover closed this as completed Oct 13, 2014
@csnover csnover added the invalid This wasn't actually an issue label Oct 13, 2014
@d48
Copy link

d48 commented Nov 4, 2014

hey @zanona, did you ever find out what this issue was? I'm running intern-tutorial version 2.0.0 that uses intern version 2.1.1 and get the exact same thing above

@zanona
Copy link
Author

zanona commented Nov 4, 2014

@d48 unfortunately I haven't found the issue. Since it was on my local machine and I was fine running tests remotely, which seemed to work without problems.

@d48
Copy link

d48 commented Nov 4, 2014

thanks for the info @zanona. will post if I find anything

@d48
Copy link

d48 commented Nov 4, 2014

Just to give context, when I initially ran intern-runner, I got this error:

Listening on 0.0.0.0:9000
Starting tunnel...
Using no proxy for connecting to Sauce Labs REST API.
Started scproxy on port 57603.
Starting secure remote tunnel VM...
Secure remote tunnel VM provisioned.
Tunnel ID: 4f6deb05a2614d75acd7fdac6b2d9814
Secure remote tunnel VM is now: booting
Secure remote tunnel VM is now: running
Remote tunnel host is: maki76037.miso.saucelabs.com
Using no proxy for connecting to tunnel VM.
Starting Selenium listener...
Establishing secure TLS connection to tunnel...
Selenium listener started on port 4444.
Connection established.
Ready
SyntaxError: Unexpected token .
  at Function.vm.runInThisContext  <node_modules/intern/node_modules/istanbul/lib/hook.js:163:16>
  at <node_modules/intern/node_modules/dojo/dojo.js:760:8>
  at <fs.js:266:14>
  at Object.oncomplete  <fs.js:107:15>

And then when re-running intern-runner, I got same error as original post. I don't know the cause of the initial error in hook.js. Hopefully someone can give some insight.

@d48
Copy link

d48 commented Nov 5, 2014

@zanona I had some error in my functional test syntax. copy and pasting what they had on Step 5 made the tests run fine locally so the issue was my typing. The error was masked because when re-running intern-runner it gave me error like you noted originally. For anyone else getting this, make sure no other errors are reported initially

@kmoe
Copy link

kmoe commented Nov 14, 2014

I'm still getting the "Failed to start Selenium listener" error too.

@kmoe
Copy link

kmoe commented Nov 14, 2014

Fixed it by killing the process on port 4444.

@d48
Copy link

d48 commented Nov 18, 2014

@kmoe that's what I had to do as well as it attached to the port on the initial run and blocked it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This wasn't actually an issue
Projects
None yet
Development

No branches or pull requests

6 participants