Xlib: extension "RANDR" missing on display ":21". - Trying to run headless Google Chrome

Kaloyan Roussev picture Kaloyan Roussev · Jul 30, 2013 · Viewed 112.9k times · Source

I'm trying to run some Webdriver Maven tests on a headless server via xvfb using Chrome (Firefox also didn't work) but I'm getting this error message:

Xlib:  extension "RANDR" missing on display ":21".

What more information should I provide and what could the problem/solution be?

Answer

jeue picture jeue · Aug 8, 2013

Try this:

Xvfb :21 -screen 0 1024x768x24 +extension RANDR &
Xvfb --help

+extension name        Enable extension
-extension name        Disable extension