Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms #5333

Closed
lukeis opened this issue Mar 4, 2016 · 19 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 5333

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1
on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\CUROLO~1\AppData\Local\Temp\anonymous1750425972055862709webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on ffxtlbr@babylon.com installed in app-global
*** WARN addons.xpi: Add-on is invalid: Error: Directory C:\Program Files (x86)\Mozilla
Firefox\extensions\ffxtlbr@babylon.com does not contain a valid install manifest
*** WARN addons.xpi: Could not uninstall invalid item from locked install location
*** LOG addons.xpi: New add-on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} installed in
app-global
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in
app-global
*** LOG addons.xpi: New add-on avg@toolbar installed in winreg-app-global
*** LOG addons.xpi: New add-on linkfilter@kaspersky.ru installed in winreg-app-global
*** LOG addons.xpi: New add-on virtualKeyboard@kaspersky.ru installed in winreg-app-global
*** LOG addons.xpi: New add-on KavAntiBanner@Kaspersky.ru installed in winreg-app-global
*** LOG addons.xpi: New add-on 64ffxtbr@TelevisionFanatic.com installed in winreg-app-global
*** LOG addons.xpi: New add-on 4zffxtbr@VideoDownloadConverter_4z.com installed in
winreg-app-global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\CUROLO~1\AppData\Local\Temp\anonymous1750425972055862709webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:243)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:109)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:189)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:178)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:91)
    at test_1.setUp(test_1.java:20)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


Reported by waghpratibha on 2013-03-13 09:31:46


- _Attachment: [Selenium unable to connect to host and port 7055.docx](https://storage.googleapis.com/google-code-attachments/selenium/issue-5333/comment-0/Selenium unable to connect to host and port 7055.docx)_
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi everyone,

Kindly help me to solve this issue and i am very much worried how to solve this problem
so could you please send me reply the same

Reported by waghpratibha on 2013-03-13 09:34:49

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

What version of Selenium? What version of Firefox?

Reported by arran.huxtable on 2013-03-13 09:50:33

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Thank you very much for immediate replay

Selenium Version : selenium-java-2.31.0
Firefox version : 19:0

please reply to me asap

Reported by waghpratibha on 2013-03-13 10:42:12

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I had this issue this morning and was resolved by upgrading to selenium 2.31.0. I was
previously on 2.28.0 and ran into the issue after upgrading to Firefox 19

Reported by japena03 on 2013-03-13 21:58:08

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Could you run the browser before? What changed?

Reported by barancev on 2013-03-23 19:22:06

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2013-03-23 19:22:24

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi,

from my point of view, something is wrong with installed ff addons.
Please, run ff and remove all unnecessary, broken and unsupported in installed ff version
add-ons. Also if you don't test addons i'd recommend to remove all addons at all.

After that, try again.

Reported by a.u.savchuk on 2013-04-07 13:24:00

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi,

This problem can be solved if you use Selenium version 2.30 and FF 19. It works well
with these combinations. Even if you upgrade your selenium version from 2.32 rather
than 2.31, the problem gets resolved.

Reported by dharmeshverma91 on 2013-04-30 06:40:40

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Closing due to inactivity as there is no answer from the initiator for more than a month.

Reported by barancev on 2013-04-30 06:45:48

  • Status changed: Invalid
  • Labels added: Browser-Firefox
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

You need to Uninstall the currently installed Firefox. Reinstall the FF with minimum
version 18.0.1   This really works.

Reported by guru.b.sajjan on 2013-06-07 15:12:36

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

[junit] org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host
127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
14:29:06     [junit] Error: no display specified
14:29:06     [junit] Error: no display specified
14:29:06     [junit] 
14:29:06     [junit]    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
14:29:06     [junit]    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:251)
14:29:06     [junit]    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
14:29:06     [junit]    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:197)
14:29:06     [junit]    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
14:29:06     [junit]    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
14:29:06     [junit]    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:99)
14:29:06     [junit]    at nz.co.niwa.osd.web.test.tech.RemoteControlTestCase.setUpRemoteControlTestCase(RemoteControlTestCase.java:62)


getting the same error unable to connect to host 127.0.0.1 i am using FF19.0 and selenium
2.35.0.jar please reply asap !!

Reported by shaibal929 on 2013-08-28 02:35:27

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I run into the same problem.I used the latest version of FF and selenium jar files.

Is any body can help?

Reported by luisa.luyisha on 2013-09-03 04:47:54

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

same, this has been giving me hell for a full day now. i have tried installing older
versions, i cant escape this error! help would be greatly appreciated!

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1
on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Anthony\AppData\Local\Temp\anonymous3363516679749325381webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in
app-global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Anthony\AppData\Local\Temp\anonymous3363516679749325381webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:244)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:179)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:92)
    at Test230.main(Test230.java:15)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect
to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port
7055; process output follows: 
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Anthony\AppData\Local\Temp\anonymous3363516679749325381webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in
app-global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Anthony\AppData\Local\Temp\anonymous3363516679749325381webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found

Build info: version: '2.30.0', revision: 'dc1ef9c', time: '2013-02-19 00:15:57'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.7.0_25'
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:244)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:179)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:92)
    at Test230.main(Test230.java:15)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to
host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Anthony\AppData\Local\Temp\anonymous3363516679749325381webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in
app-global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Anthony\AppData\Local\Temp\anonymous3363516679749325381webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
    ... 7 more

Reported by anthony@anthonyjneal.com on 2013-09-04 20:53:30

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi All,

Please help, I am getting following problem and not able to resolve. Specially this
issue occurs when i use the 'Actions' class in code for mouse movement.

Attached is the Exception file for more detail.

Details: 
Selenium Version : selenium-java-2.39.0
Firefox version : 26.0


org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1
on port 7055 after 45000 ms. Firefox console output:

Reported by ashok.himt on 2014-03-01 04:46:11


- _Attachment: [Exception.txt](https://storage.googleapis.com/google-code-attachments/selenium/issue-5333/comment-14/Exception.txt)_

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi, Please download latest selenium jar files and add in in your eclipse build path.
If your eclipse is integrated with maven, then change the pom.xml file and update the
selenium dependency to latest selenium version as below.

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.41.0</version>
</dependency>

and run mvn eclipse:clean and mvn eclipse:eclipse. This should resolve your problem


Reported by arolitriveni on 2014-04-01 10:04:56

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Thanks.. it's working now.

Reported by ashok.himt on 2014-04-01 19:22:17

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

you just install older version instead of latest version of Firfox Browser.Then again
try to run from Eclipse IDE  this time not give any error.

Reported by sratnesh17 on 2015-02-05 21:33:53

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi All,

I am using selenium version 2.35 and firefox 38
when I run my run my automation in eclipse, first a popup saying "Firefox has stopped
working". on closing the popup, browser opens but the console throws an error "Unable
to connect to host 127.0.0.1 on port 7055 after 45000 ms". Any help would be appreciated

Thanks


Reported by kalyaniarla on 2015-06-01 07:21:11

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:16:57

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant