SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
346 stars 194 forks source link

Cannot find port in Linux #7350

Open lukeis opened 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 7350

What steps will reproduce the problem?
1. "1025 65535" in /proc/sys/net/ipv4/ip_local_port_range
2. Run any test with non-root user

What is the expected output? What do you see instead?

To be able to get a free port and run the tests. Instead I got an exception that could
not get a free port. (RuntimeException: Unable to find a free port (PortProber.java:59))

Selenium version: 2.33.0
OS: Ubuntu Linux 14.04
Browser: Phantom.js
Browser version: 1.9.0

Looks like a there is a bug in the method getNonEphemeralPort of PortProber.

 https://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/net/PortProber.java?r=812152e7951621ce72439003ca79f5149bfd5d32

Reported by herbert.fischer on 2014-05-14 14:29:42

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 17:46:58