Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes: Fontconfig warning / Failed to connect to socket when running BackstopJS 6.0.4 in a docker container #1390

Open
frankl7800 opened this issue Jan 28, 2022 · 1 comment

Comments

@frankl7800
Copy link

This error occurs sporadically, e.g. in two of 26 test runs

URL > ...
BROWSER: > HeadlessChrome/97.0.4691.0
COMMAND | Command "test" ended with an error after [46.821s]
COMMAND | Error: Failed to launch the browser process!
        Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
        [0126/024642.946354:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
        Inconsistency detected by ld.so: ../elf/dl-tls.c: 493: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= GL(dl_tls_generation)' failed!
        
        TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
        
            at onClose (/usr/local/lib/node_modules/backstopjs/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:229:20)
            at ChildProcess.<anonymous> (/usr/local/lib/node_modules/backstopjs/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:220:79)
            at ChildProcess.emit (events.js:387:35)
            at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

Docker Version 20.10.12
Ubuntu Version 20.04.3 LTS

@fuhlig
Copy link
Contributor

fuhlig commented Feb 14, 2022

Had the same when running backstop with puppeteer & chrome in CI (linux) environment.
puppeteer/puppeteer#3504

This fixed it for us (conditionally for CI env):

// backstop.config
engineOptions: {
  executablePath: 'google-chrome-unstable'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants