-
Notifications
You must be signed in to change notification settings - Fork 5
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
Groovy Version Fails with org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port #2
Comments
Hi, were you able to view the same url (http://127.0.0.1:7055)? It sounds like Firefox couldn't connect to the given url and gave up after 45 seconds. |
No I cannot connect there. Is that a url selenium uses? |
That's the url you're passing in the command line, according to the first Groovy exception:
What is the url you're passing to the script? |
Hmm, so that would be the issue. I am passing it http://andrewreitz.com/getting-groovy-on-android. I have tried with quotes and without. I'll keep looking into this. |
./Slides2Png.scala "http://andrewreitz.com/getting-groovy-on-android/#/" worked for me. You may want to disable animations for capturing the slides, however. Or increase the sleep time to a few seconds so they can finish. |
I checked the url param right before go url, and it is correct. Still not sure why it's opening up. |
Please upgrade to 2.43.1 [http://www.seleniumhq.org/download/]. The new version works for FF32. |
After entering
groovy slides2png.groovy <url>
Firefox opens and then hangs. After a while it will close and output the following error message.`org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
dules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450284062 addons.xpi DEBUG startup
1410450284064 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450284066 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450284066 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450284066 addons.xpi DEBUG checkForChanges
1410450284070 addons.xpi DEBUG Directory state JSON differs: cache [] state [{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"/usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1410320341000,"rdfTime":1409517579000}}},{"name":"app-profile","addons":{"[email protected]":{"descriptor":"/tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]","mtime":1410450283000,"rdfTime":1410450283000}}}]
1410450284075 addons.xpi-utils DEBUG Opening XPI database /tmp/anonymous8329726343354458135webdriver-profile/extensions.json
1410450284075 addons.xpi DEBUG New add-on [email protected] installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1410450284229 addons.xpi-utils DEBUG Make addon app-profile:[email protected] visible
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284232 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1410450284234 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284237 addons.xpi DEBUG Updating database with changes to installed add-ons
1410450284237 addons.xpi-utils DEBUG Updating add-on states
1410450284237 addons.xpi-utils DEBUG Writing add-ons list
1410450284551 DeferredSave.extensions.json DEBUG Starting timer
1410450284597 addons.manager DEBUG shutdown
1410450284600 DeferredSave.extensions.json DEBUG Starting write
1410450284601 addons.xpi DEBUG shutdown
1410450284601 addons.xpi-utils DEBUG shutdown
1410450284651 DeferredSave.extensions.json DEBUG Write succeeded
1410450284651 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1410450284651 addons.xpi DEBUG Notifying XPI shutdown observers
1410450284654 addons.manager DEBUG Async provider shutdown done
(process:31183): GLib-CRITICAL *: g_slice_set_config: assertion 'sys_page_size == 0' failed
1410450288295 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1410450288296 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450288298 addons.xpi DEBUG startup
1410450288299 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450288302 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450288302 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450288303 addons.xpi DEBUG checkForChanges
1410450288314 addons.xpi DEBUG No changes found
** Blocklist::_preloadBlocklistFile: blocklist is disabled
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
Caught: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
dules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450284062 addons.xpi DEBUG startup
1410450284064 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450284066 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450284066 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450284066 addons.xpi DEBUG checkForChanges
1410450284070 addons.xpi DEBUG Directory state JSON differs: cache [] state [{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"/usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1410320341000,"rdfTime":1409517579000}}},{"name":"app-profile","addons":{"[email protected]":{"descriptor":"/tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]","mtime":1410450283000,"rdfTime":1410450283000}}}]
1410450284075 addons.xpi-utils DEBUG Opening XPI database /tmp/anonymous8329726343354458135webdriver-profile/extensions.json
1410450284075 addons.xpi DEBUG New add-on [email protected] installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1410450284229 addons.xpi-utils DEBUG Make addon app-profile:[email protected] visible
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284232 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1410450284234 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284237 addons.xpi DEBUG Updating database with changes to installed add-ons
1410450284237 addons.xpi-utils DEBUG Updating add-on states
1410450284237 addons.xpi-utils DEBUG Writing add-ons list
1410450284551 DeferredSave.extensions.json DEBUG Starting timer
1410450284597 addons.manager DEBUG shutdown
1410450284600 DeferredSave.extensions.json DEBUG Starting write
1410450284601 addons.xpi DEBUG shutdown
1410450284601 addons.xpi-utils DEBUG shutdown
1410450284651 DeferredSave.extensions.json DEBUG Write succeeded
1410450284651 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1410450284651 addons.xpi DEBUG Notifying XPI shutdown observers
1410450284654 addons.manager DEBUG Async provider shutdown done
(process:31183): GLib-CRITICAL *: g_slice_set_config: assertion 'sys_page_size == 0' failed
1410450288295 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1410450288296 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450288298 addons.xpi DEBUG startup
1410450288299 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450288302 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450288302 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450288303 addons.xpi DEBUG checkForChanges
1410450288314 addons.xpi DEBUG No changes found
** Blocklist::_preloadBlocklistFile: blocklist is disabled
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47'
System info: host: 'Sloth', ip: '92.242.144.50', os.name: 'Linux', os.arch: 'amd64', os.version: '3.15.10-201.fc20.x86_64', java.version: '1.7.0_65'
Driver info: driver.version: FirefoxDriver
org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
dules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450284062 addons.xpi DEBUG startup
1410450284064 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450284066 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450284066 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450284066 addons.xpi DEBUG checkForChanges
1410450284070 addons.xpi DEBUG Directory state JSON differs: cache [] state [{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"/usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1410320341000,"rdfTime":1409517579000}}},{"name":"app-profile","addons":{"[email protected]":{"descriptor":"/tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]","mtime":1410450283000,"rdfTime":1410450283000}}}]
1410450284075 addons.xpi-utils DEBUG Opening XPI database /tmp/anonymous8329726343354458135webdriver-profile/extensions.json
1410450284075 addons.xpi DEBUG New add-on [email protected] installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1410450284229 addons.xpi-utils DEBUG Make addon app-profile:[email protected] visible
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284232 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1410450284234 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284237 addons.xpi DEBUG Updating database with changes to installed add-ons
1410450284237 addons.xpi-utils DEBUG Updating add-on states
1410450284237 addons.xpi-utils DEBUG Writing add-ons list
1410450284551 DeferredSave.extensions.json DEBUG Starting timer
1410450284597 addons.manager DEBUG shutdown
1410450284600 DeferredSave.extensions.json DEBUG Starting write
1410450284601 addons.xpi DEBUG shutdown
1410450284601 addons.xpi-utils DEBUG shutdown
1410450284651 DeferredSave.extensions.json DEBUG Write succeeded
1410450284651 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1410450284651 addons.xpi DEBUG Notifying XPI shutdown observers
1410450284654 addons.manager DEBUG Async provider shutdown done
(process:31183): GLib-CRITICAL *: g_slice_set_config: assertion 'sys_page_size == 0' failed
1410450288295 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1410450288296 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450288298 addons.xpi DEBUG startup
1410450288299 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450288302 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450288302 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450288303 addons.xpi DEBUG checkForChanges
1410450288314 addons.xpi DEBUG No changes found
** Blocklist::_preloadBlocklistFile: blocklist is disabled
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47'
System info: host: 'Sloth', ip: '92.242.144.50', os.name: 'Linux', os.arch: 'amd64', os.version: '3.15.10-201.fc20.x86_64', java.version: '1.7.0_65'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:182)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:95)
at geb.driver.NameBasedDriverFactory.getDriver(NameBasedDriverFactory.groovy:44)
at geb.driver.CachingDriverFactory$_getDriver_closure3.doCall(CachingDriverFactory.groovy:85)
at geb.driver.CachingDriverFactory$_getDriver_closure3.doCall(CachingDriverFactory.groovy)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:32)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:84)
at geb.Configuration.createDriver(Configuration.groovy:361)
at geb.Configuration.getDriver(Configuration.groovy:350)
at geb.Browser.getDriver(Browser.groovy:105)
at geb.Browser.go(Browser.groovy:405)
at geb.Browser$go$1.callCurrent(Unknown Source)
at geb.Browser.go(Browser.groovy:395)
at slides2png$_run_closure1.doCall(slides2png.groovy:37)
at slides2png$_run_closure1.doCall(slides2png.groovy)
at geb.Browser.drive(Browser.groovy:884)
at geb.Browser$drive$0.callStatic(Unknown Source)
at geb.Browser.drive(Browser.groovy:854)
at geb.Browser$drive.call(Unknown Source)
at slides2png.run(slides2png.groovy:28)
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:
dules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450284062 addons.xpi DEBUG startup
1410450284064 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450284066 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450284066 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450284066 addons.xpi DEBUG checkForChanges
1410450284070 addons.xpi DEBUG Directory state JSON differs: cache [] state [{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"/usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1410320341000,"rdfTime":1409517579000}}},{"name":"app-profile","addons":{"[email protected]":{"descriptor":"/tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]","mtime":1410450283000,"rdfTime":1410450283000}}}]
1410450284075 addons.xpi-utils DEBUG Opening XPI database /tmp/anonymous8329726343354458135webdriver-profile/extensions.json
1410450284075 addons.xpi DEBUG New add-on [email protected] installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1410450284229 addons.xpi-utils DEBUG Make addon app-profile:[email protected] visible
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284231 DeferredSave.extensions.json DEBUG Save changes
1410450284232 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1410450284234 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284234 DeferredSave.extensions.json DEBUG Save changes
1410450284237 addons.xpi DEBUG Updating database with changes to installed add-ons
1410450284237 addons.xpi-utils DEBUG Updating add-on states
1410450284237 addons.xpi-utils DEBUG Writing add-ons list
1410450284551 DeferredSave.extensions.json DEBUG Starting timer
1410450284597 addons.manager DEBUG shutdown
1410450284600 DeferredSave.extensions.json DEBUG Starting write
1410450284601 addons.xpi DEBUG shutdown
1410450284601 addons.xpi-utils DEBUG shutdown
1410450284651 DeferredSave.extensions.json DEBUG Write succeeded
1410450284651 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1410450284651 addons.xpi DEBUG Notifying XPI shutdown observers
1410450284654 addons.manager DEBUG Async provider shutdown done
(process:31183): GLib-CRITICAL *: g_slice_set_config: assertion 'sys_page_size == 0' failed
1410450288295 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1410450288296 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410450288298 addons.xpi DEBUG startup
1410450288299 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib64/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410450288302 addons.xpi INFO Mapping [email protected] to /tmp/anonymous8329726343354458135webdriver-profile/extensions/[email protected]
1410450288302 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous8329726343354458135webdriver-profile/extensions/webdriver-staging
1410450288303 addons.xpi DEBUG checkForChanges
1410450288314 addons.xpi DEBUG No changes found
** Blocklist::_preloadBlocklistFile: blocklist is disabled
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
`
OS: Fedora 20
Groovy Version: 2.2.2
FireFox Version: 32
The text was updated successfully, but these errors were encountered: