Skip to content

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

@Orbiszeus

Description

@Orbiszeus

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)

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