Skip to content

Ubuntu 24 - X11 display failed! Will use regular xvfb! #3404

Closed
@alepodj

Description

@alepodj

Hello

Currently having an interesting issue running on of the examples "as is" but with my own url: examples/cdp_mode/raw_res_sb.py

I seem to be unable to get Chrome to open with the following errors:

start error

X11 display failed! Will use regular xvfb!

...

File "/home/<user>/Documents/Dev/inventory/venv/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: cannot connect to chrome at 127.0.0.1:9222
from chrome not reachable
...

From previous posts ive also followed up on having all X11 requirements install which i seem to have based on the outcome of all commands found in the links provided

Additionally, even when using xvfb=False it doesnt give the X11 error but it failed with the same traceback error.

I honestly dont need chrome to show up, just need to get a given event.response from the site, but neither of the modes above seem to be working for me

Thanks in advance 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeduplicateThe answer/solution already exists somewherequestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions