Sandboxing error in Chrome (Node.js environment)

Hi!

I’ve been having problems running Chrome on Travis CI. Karma’s build process runs as usual, but when it gets to launching Chrome, I get the following error, despite using the --no-sandbox flag:

[launcher]: Cannot start Chrome
[8522:8522:0828/122456.705758:ERROR:browser_main_loop.cc(1417)] Unable to open X display.
[0828/122456.714616:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly

I’ve tried switching my Linux image from Xenial to Bionic, I’ve added the --disable-setuid-sandbox, I’ve even tried running tests via Puppeteer as root user (as per this comment), but nothing seems to work.

This is the latest build, and here’s my Karma config.

When running it on my Mac (macOS 10.15.6), Karma launches Chrome, all tests run, everything works right. It’s only on Travis that I can’t seem to be able to run it at all.

New here so hopefully I added needed :slight_smile:
Thank you in advance for any help!

Imprint