# Sandboxing error in Chrome (Node.js environment)

**URL:** https://travis-ci.community/t/sandboxing-error-in-chrome-node-js-environment/9752
**Category:** Linux
**Created:** [August 28, 2020, 12:55pm UTC](https://travis-ci.community/t/sandboxing-error-in-chrome-node-js-environment/9752 "2020-08-28T12:55:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sbrac](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@sbrac](https://travis-ci.community/u/sbrac)
#### Post date: [August 28, 2020, 12:55pm UTC](https://travis-ci.community/t/sandboxing-error-in-chrome-node-js-environment/9752/1 "2020-08-28T12:55:46Z")

</div>

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:

```auto
[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](https://github.com/puppeteer/puppeteer/issues/5429#issuecomment-592515312)), but nothing seems to work.

This is the [latest build](https://travis-ci.com/github/sendahug/send-hug-frontend/builds/181784914), and here’s [my Karma config](https://github.com/sendahug/send-hug-frontend/blob/ci-setup/karma.conf.js).

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 🙂  
Thank you in advance for any help!

---

<div class="post-metadata">

### Author: ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)
#### Post date: [December 13, 2020, 1:11pm UTC](https://travis-ci.community/t/sandboxing-error-in-chrome-node-js-environment/9752/2 "2020-12-13T13:11:17Z")

</div>

> **[Travis CI Documentation](https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui)**
>
> GUI and Headless Browser Testing

> **[Travis CI Documentation](https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-the-chrome-addon-in-the-headless-mode)**
>
> GUI and Headless Browser Testing
