I think we’re also getting this issue. It fails when attempting to start x11vnc, which we use for debugging issues with our end-to-end tests (running Chrome).
x11vnc -forever -nopw
27/07/2017 03:10:00 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 326
27/07/2017 03:10:00 XOpenDisplay(":99") failed.
27/07/2017 03:10:00 Trying again with XAUTHLOCALHOSTNAME=localhost ...
27/07/2017 03:10:00 ***************************************
27/07/2017 03:10:00 *** XOpenDisplay failed (:99)
*** x11vnc was unable to open the X DISPLAY: ":99", it cannot continue.
*** There may be "Xlib:" error messages above with details about the failure.
I was able to resolve the issue by passing the arg “-crate” to x11vnc, so my config looks like this:
- run:
name: Install X VNC Server
command: sudo apt-get install -y x11vnc
- run:
name: Start X VNC Server
command: x11vnc -forever -nopw -create
background: true