Closed Debanjan-B closed 1 year ago
Note that this issue was also filed as https://bugzilla.mozilla.org/show_bug.cgi?id=1784593. Investigation will happen over there.
Due to missing feedback from reporter closing the issue.
how did you solve it?
Hi @whimboo, I'm having the same issue as stated by @Debanjan-B. The geckodriver session crashes at some moment.
in init self.browser = webdriver.Firefox(options=options) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/webdriver.py", line 170, in init RemoteWebDriver.init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in init self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: Error: NS_ERROR_UNKNOWN_HOST
geckodriver.log 1680015359113 geckodriver INFO Listening on 127.0.0.1:47875 1680015359118 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "disable-gpu" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile3UZ3I5" *** You are running in headless mode. console.warn: services.settings: Ignoring preference override of remote settings server console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment [GFX1-]: glxtest: libpci missing 1680015359903 Marionette INFO Marionette enabled 1680015359905 Marionette INFO Listening on port 36821 console.error: "Warning: unrecognized command line flag -foreground\n" 1680015359988 RemoteAgent WARN TLS certificate errors will be ignored for this session [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt console.error: ({})
@iulianduca which Linux distribution and version is that? Is that local, remote, or in a container? It would be good if you can provide a trace log as well.
Hi. I'm having the same problem with geckodriver. I reverted firefox to an old version (85) as a workaround.
@y2jhotaru with which version of Firefox does the problem start for you?
Hi, I tested with Firefox 112 and GeckoDriver 0.33.0 to reproduce the error.
@y2jhotaru could you please bisect with other Firefox releases so that we know in which exact version the problem started to happen? Right now we have a kinda broad range from 85 to 112. Maybe you could start with the 91 and 102 ESR releases and then shrink the range further? The downloads of the releases can be found at https://archive.mozilla.org/pub/firefox/releases/. Thanks a lot.
edit: Also how does your testcase exactly look like? How is Firefox started?
hello everyone, I can contribute with this problem you are facing.
adding a capability
setCapability('acceptInsecureCerts', true);
in firefox versions 100.0 to 112.0 throws NS_ERROR_UNKNOWN_HOST exception but this error does not match the truth if you try to reproduce with firefox version 99.0 you will see the real error appear.
Express gratitude for project
System
Testcase
Description:
Firefox v103.0.2 (latest) when initiated with latest GeckoDriver v0.31.0 and Selenium v4.4.0 crashes with
NS_ERROR_UNKNOWN_HOST
errorCode trials:
Stacktrace
Trace-level log