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.

Unable to connect to host 127.0.0.1 on port 7056 / Selenium 2.53 with ff 45.0

See original GitHub issue

Meta -

OS: Selenium Version: Browser: Browser Version:

After upgrading from 2.45 jar to 2.53 and ff37 to ff45 I’m getting this error. Please give me a feedback asap. I`ve tried 2.52 and ff44 - same issue was raised Tests are trigger by a jenkins job, if matters.

Expected Behavior - Firefox should start without problems

Actual Behavior - Error from summary is thrown

`Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Unable to connect to host 127.0.0.1 on port 7056 after 45000 ms. Firefox console output:

Build info: version: ‘2.53.0’, revision: ‘4c2593c’, time: ‘2016-02-11 19:06:42’ System info: host: ‘v-is-jk-01.synygy.net’, ip: ‘10.220.10.103’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘3.8.13-55.2.1.el6uek.x86_64’, java.version: ‘1.8.0_31’ Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129) at sun.reflect.GeneratedConstructorAccessor26.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:91) at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:68) at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60) at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222) at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)`

Here is also my firefox profile: `private FirefoxProfile getFirefoxProfileSettings() {

    FirefoxProfile firefoxProfile = new FirefoxProfile();
    firefoxProfile.setPreference("browser.download.folderList", 2);
    firefoxProfile.setPreference("browser.download.manager.showWhenStarting", false);
    firefoxProfile.setPreference("browser.download.dir",<validPath>);   
    firefoxProfile.setPreference("plugin.disable_full_page_plugin_for_types", "application/pdf,application/vnd.fdf");
    firefoxProfile.setPreference("browser.helperApps.alwaysAsk.force", false);
    firefoxProfile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/pdf);
    firefoxProfile.setPreference("pdfjs.disabled", true);
    firefoxProfile.setEnableNativeEvents(false);
    firefoxProfile.setPreference("dom.max_script_run_time", 0);
    firefoxProfile.setPreference("dom.max_chrome_script_run_time", 0);
    return firefoxProfile;

}

`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:31 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
cgoldbergcommented, Apr 5, 2016

@testingcode Xvfb has nothing to do with the errors shown… and “working for me” is totally unhelpful.

0reactions
usmanpashacommented, Jan 23, 2018

Guys, Any help regarding this issue?

1516714878286 geckodriver INFO Listening on 127.0.0.1:21838 FAILED CONFIGURATION: @BeforeClass beforeMethod org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:21838 [localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) Build info: version: ‘3.4.0’, revision: ‘unknown’, time: ‘unknown’ System info: host: ‘MV-IMAGE-E17-8.local’, ip: ‘2001:f40:902:a86d:d827:6352:4f97:f545’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.12.6’, java.version: ‘1.8.0_131’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webdriver Unable to connect to host 127.0.0.1 on port 7055 ...
The reason for the Unable to connect error is that the version of Selenium Server does not know how to work with the...
Read more >
How to solve Not Connected Exception Unable to ... - YouTube
Today in this video we will discuss how to solve NotConnectedException: Unable to connect to host 127.0.0.1 in Selenium Webdriver.
Read more >
How to fix common Selenium errors? - Ultimate QA
Selenium.WebDriverException: Failed to start up socket within 45000 ms. Attempted to connect to the following addresses: 127.0.0.1:7055.
Read more >
Unable to connect to host 127.0.0.1 on port 7055 - Grokbase
I get following error when I try to work in grid environment. I have Firefox 45.0.1 on the node with Selenium 2.48.2
Read more >
How To Launch Firefox in Selenium using GeckoDriver
In order to launch Firefox Browser using Selenium we need to use ... Unable to connect to host 127.0.0.1 on port 7055 after...
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