Skip to content
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

request to geckodriver fails with no meaningful log entry when there is no access to $HOME/.mozilla or $HOME/.cache #716

Closed
rafajot opened this issue May 5, 2017 · 4 comments

Comments

@rafajot
Copy link

rafajot commented May 5, 2017

In order to help us efficiently investigate your issue, please provide the following information:

Firefox Version

# firefox --version
Mozilla Firefox 53.0

Platform

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.6 (wheezy)
Release:        7.6
Codename:       wheezy

Steps to reproduce -

STEP1 (as root)

rm -rf /var/www/.mozilla
# also make sure current user (in this case www-data) has no access to its home directory, usually /var/www

STEP 2 (as www-data)

$ strace -o wwwgeckotrace.txt -f geckodriver --log trace
1494014430902   webdriver::httpapi      DEBUG   Creating routes
1494014430906   geckodriver     INFO    Listening on 127.0.0.1:4444
1494014441540   webdriver::server       DEBUG   → POST /session {"capabilities": {"alwaysMatch": {"acceptInsecureCerts": true, "browserName": "firefox"}, "firstMatch": []}, "desiredCapabilities": {"acceptInsecureCerts": true, "browserName": "firefox"}}
1494014441540   geckodriver::capabilities       DEBUG   Trying to read firefox version from ini files
1494014441541   geckodriver::capabilities       DEBUG   Found version 53.0
1494014441638   geckodriver::marionette INFO    Starting browser /home/postgresql/rafal/opt/firefox/firefox with args ["-marionette"]
1494014441653   geckodriver::marionette TRACE     connection attempt 0/600
1494014441755   geckodriver::marionette TRACE     connection attempt 1/600
1494014441857   geckodriver::marionette TRACE     connection attempt 2/600

(firefox:32571): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally without any error message
1494014441957   geckodriver::marionette TRACE     connection attempt 3/600
1494014442059   geckodriver::marionette TRACE     connection attempt 4/600
1494014442161   geckodriver::marionette TRACE     connection attempt 5/600
1494014442262   geckodriver::marionette TRACE     connection attempt 6/600
1494014442363   geckodriver::marionette TRACE     connection attempt 7/600

[...]

1494014501390   geckodriver::marionette TRACE     connection attempt 592/600
1494014501491   geckodriver::marionette TRACE     connection attempt 593/600
1494014501592   geckodriver::marionette TRACE     connection attempt 594/600
1494014501693   geckodriver::marionette TRACE     connection attempt 595/600

(firefox:32571): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally without any error message

(firefox:32571): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally without any error message

(firefox:32571): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally without any error message

(firefox:32571): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally without any error message
1494014501794   geckodriver::marionette TRACE     connection attempt 596/600
1494014501894   geckodriver::marionette TRACE     connection attempt 597/600
1494014501995   geckodriver::marionette TRACE     connection attempt 598/600
1494014502096   geckodriver::marionette TRACE     connection attempt 599/600
1494014502197   geckodriver::marionette TRACE     connection attempt 600/600
1494014502298   geckodriver::marionette TRACE     connection attempt 601/600
1494014502299   webdriver::server       DEBUG   ← 500 Internal Server Error {"value":{"error":"unknown error","message":"connection refused","stacktrace":"stack backtrace:\n   0:           0x4fa94d - backtrace::backtrace::trace::h45ace4059cd74233\n   1:           0x4fae32 - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc\n   2:           0x4349d9 - webdriver::error::WebDriverError::new::h449345a591a119fd\n   3:           0x43f6b0 - geckodriver::marionette::MarionetteHandler::create_connection::h53f581202e4008b4\n   4:           0x442839 - <geckodriver::marionette::MarionetteHandler as webdriver::server::WebDriverHandler<geckodriver::marionette::GeckoExtensionRoute>>::handle_command::hd89c5efbeb4c7cd5\n   5:           0x434e94 - webdriver::server::start::{{closure}}::h5e71183f67357de6\n   6:           0x408627 - std::panicking::try::do_call::h8c30e6af4c7f85af\n   7:           0x5b77fa - panic_unwind::__rust_maybe_catch_panic\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libpanic_unwind/lib.rs:98\n   8:           0x416e57 - <F as alloc::boxed::FnBox<A>>::call_box::h3f273b2445d78deb\n   9:           0x5b0014 - alloc::boxed::{{impl}}::call_once<(),()>\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/liballoc/boxed.rs:624\n                         - std::sys_common::thread::start_thread\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys_common/thread.rs:21\n                         - std::sys::imp::thread::{{impl}}::new::thread_start\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys/unix/thread.rs:84"}}

STEP 3 (as any user issue http request to geckodriver)

# telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
POST /session HTTP/1.1
Host: 127.0.0.1:51098
Accept-Encoding: identity
Content-Length: 188
Connection: keep-alive
Content-Type: application/json;charset=UTF-8
Accept: application/json
User-Agent: Python http auth

{"capabilities": {"alwaysMatch": {"acceptInsecureCerts": true, "browserName": "firefox"}, "firstMatch": []}, "desiredCapabilities": {"acceptInsecureCerts": true, "browserName": "firefox"}}


HTTP/1.1 500 Internal Server Error
Connection: close
Content-Type: application/json; charset=utf-8
Cache-Control: no-cache
Content-Length: 1675
Date: Fri, 05 May 2017 20:01:42 GMT

{"value":{"error":"unknown error","message":"connection refused","stacktrace":"stack backtrace:\n   0:           0x4fa94d - backtrace::backtrace::trace::h45ace4059cd74233\n   1:           0x4fae32 - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc\n   2:           0x4349d9 - webdriver::error::WebDriverError::new::h449345a591a119fd\n   3:           0x43f6b0 - geckodriver::marionette::MarionetteHandler::create_connection::h53f581202e4008b4\n   4:           0x442839 - <geckodriver::marionette::MarionetteHandler as webdriver::server::WebDriverHandler<geckodriver::marionette::GeckoExtensionRoute>>::handle_command::hd89c5efbeb4c7cd5\n   5:           0x434e94 - webdriver::server::start::{{closure}}::h5e71183f67357de6\n   6:           0x408627 - std::panicking::try::do_call::h8c30e6af4c7f85af\n   7:           0x5b77fa - panic_unwind::__rust_maybe_catch_panic\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libpanic_unwind/lib.rs:98\n   8:           0x416e57 - <F as alloc::boxed::FnBox<A>>::call_box::h3f273b2445d78deb\n   9:           0x5b0014 - alloc::boxed::{{impl}}::call_once<(),()>\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/liballoc/boxed.rs:624\n                         - std::sys_common::thread::start_thread\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys_common/thread.rs:21\n                         - std::sys::imp::thread::{{impl}}::new::thread_start\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys/unix/thread.rs:84"}}Connection closed by foreign host.
@rafajot rafajot changed the title geckodriver fails with no meaningful log entry when there is no access to $HOME/.mozilla or $HOME/.cache request to geckodriver fails with no meaningful log entry when there is no access to $HOME/.mozilla or $HOME/.cache May 5, 2017
@BenjaminWagner123
Copy link

Is there a solution to this error yet because I am hitting the same error on Firefox version 52.3.0 with geckodriver 0.16.0 and Selenium 3.6.0 on Jenkins Version. 2.84 running on a ubuntu Server.
I can provide Trace Log from geckodriver:marionette but it is similar to the above provided one.
Is it possible that the security policy is blocking the execution of marionette/geckodriver or do I have to set a specific port for Firefox to be able to connect to the internet ?

@andreastt
Copy link
Contributor

geckodriver only supports the current release channels, which means >= 55. Could you try this again with Firefox Nightly (58)?

Please see CONTRIBUTING.md on how to report a good bug to geckodriver.

@andreastt
Copy link
Contributor

Closing due to inactivity.

@lock
Copy link

lock bot commented Aug 16, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.

@lock lock bot locked and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants