Skip to content

Getting : start error X11 display failed! Will use regular xvfb! #3060

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

Closed
Orbiszeus opened this issue Aug 28, 2024 · 1 comment
Closed

Getting : start error X11 display failed! Will use regular xvfb! #3060

Orbiszeus opened this issue Aug 28, 2024 · 1 comment
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@Orbiszeus
Copy link

I have currently built an application that runs on Linux Ubuntu that does not have a GUI and regarding this situation for full protection I am not using Headless Mode and adding incognito=True and also for X11 display for Linux machines I added : xvfb=True. However, when I run the program I get this --> start error X11 display failed! Will use regular xvfb!

My code:

menu_items = []
    with SB(uc=True, xvfb=True, incognito=True) as sb:
        sb.driver.uc_open_with_reconnect(url, 20)       
        try:
            print("Locale Code: " +str(sb.get_locale_code()))
            # print(sb.save_screenshot_to_logs(name=None, selector=None, by="css selector"))
            print("Page title: " + str(sb.get_title()))
            sb.sleep(5)
            sb.uc_gui_handle_cf()
            sb.sleep(5)
@mdmintz mdmintz added duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Aug 28, 2024
@mdmintz
Copy link
Member

mdmintz commented Aug 28, 2024

Duplicate of #2982.

Also see the following if your Linux distribution is missing X11 display dependencies:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

No branches or pull requests

2 participants