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

Did someone run selenium script in google-chrome docker? It will stuck at webdriver.Chrome #405

Open
nonths opened this issue Jul 15, 2024 · 1 comment

Comments

@nonths
Copy link

nonths commented Jul 15, 2024

When I run selenium script at the google-chrome docker, it will stuck at webdriver.Chrome, about five minutes, and then, it will timeout with the following error:
Traceback (most recent call last):
File "/home/neko/fb.py", line 54, in
driver = webdriver.Chrome(options=options, service=service)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/chromium/webdriver.py", line 56, in init
super().init(
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 206, in init
self.start_session(capabilities)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 290, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 600.000
(Session info: chrome=125.0.6422.112)
Stacktrace:
#0 0x564d60ae5e8a
#1 0x564d607cf45c

The logs of chromedriver is as following:
[253870:253891:0715/074440.079957:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")

@nonths
Copy link
Author

nonths commented Jul 15, 2024

BTW, if we add chrome_options.add_argument('--headless'), it seems normal, but with UI, it will not work normally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant