Sometime in the last 6 hours, Xvfb provided by the standard CircleCI images in 2.0 stopped working.
In the build itself, I get this message when trying to run Chrome:
$ echo $DISPLAY :99 $ google-chrome [1025:1025:0726/080756.212198:ERROR:browser_main_loop.cc(279)] Gtk: cannot open display: :99
This worked before.
Trying to run Xvfb manually:
$ Xvfb :99 -screen 0 1280x1024x24 _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Using a different screen number does seem to work, e.g.
Xvfb :99 -screen 1 1280x1024x24. However, it would be a pain to manually change all my current projects to do this. Also, if the default Xvfb instance starts working again, there may be conflicts.
Tested with base image
This issue started happening without the base image or the project changing, so it is most likely some issue in the host environment or build agent.