Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. with FF version 26.0 and selenium standalone jar 2.39
Asked Answered
D

5

7

I am trying to connect to selenium 2.30 with FF version 26.0 installed in my AWS unix machine but I am getting below error when I start both my client which access selenium.

Also, when I try the same with selenium standalone jar 2.38.0, it works fine but suddenely after some time in a day or two, it starts giving below error with 2.38.0 as well. Not sure why this is happening? Any idea??

project is I have a multithreadin app wherein client keeps executing some threads which pings some URLS and all, it keeps on happening unless some issue like below occurs.

Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Unable to connect to host 127.0.0.1     on port 7055 after 45000 ms. Firefox console output:
Error: no display specified
Error: no display specified

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.4.76-65.111.amzn1.x86_64', java.version:  '1.7.0_51'
 Driver info: driver.version: FirefoxDriver
    at      org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:250)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:197)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
Defant answered 14/8, 2014 at 5:32 Comment(2)
you can refer the link here for the answer - #20897868Mediatory
Possible duplicate of Selenium webdriver not working with Firefox 26.0Kerriekerrigan
E
7

Update your selenium jars. The new version of firefox(Or different browser) is not supporting old jars of selenium.

Download both Selenium Server (formerly the Selenium RC Server) Selenium Client & WebDriver Language Bindings

Replace them with old jars you are using. Update your Mozilla also so you can get the updated results

source:- http://docs.seleniumhq.org/download/

Elodea answered 16/9, 2014 at 11:24 Comment(0)
R
4

It looks like you have two different errors going on:

  1. Unable to connect to host 127.0.0.1 on port 7055
  2. Error: no display specified

The reason for the Unable to connect error is that the version of Selenium Server does not know how to work with the newer version of Firefox. You need to download a newer version of the Selenium Server that supports the newer version of Firefox.

The reason for the Error: no display specified error is that Firefox is being launched, but there is no X server (GUI) running on the remote host. You can use X11 forwarding to run Firefox on the remote host, but display it on your local host. On Mac OS X, you will need to download XQuartz in order to use X11 forwarding.

Resurrect answered 31/12, 2014 at 4:11 Comment(1)
Upgrading to a new version of Selenium Server worked for us.Wheeling
O
0

Can you try upgrading your firefox and give it a try.

Your firefox should be latest and selenium version should be 2.44. Let us know how it works

Outbid answered 21/9, 2015 at 15:45 Comment(0)
C
0

This is browser compatibility issue. I was finally successful after 3 days of full try. I first tried latest version of selenium server , firefox browser and latest webdriver , But I got the same error. I finally successed after downgrading my firefox from 50.0 t0 34.0 with latest php webdriver v.(0.9.1) by Lukasz Kolczynski and selenium server 2.45.0. Please check browser compatibiliy with selenium server from here and workout similarly.

Chant answered 30/11, 2016 at 5:4 Comment(0)
C
0

I resolved the issue with Only

export DISPLAY=IP:DisplayNum or export DISPLAY=:DisplayNum for localhost; So that can vnc connect and see the vnc desktop :1 if $DISPLAY is not :1.

export DISPLAY=:1
Cabbageworm answered 20/11, 2017 at 3:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.