Can no longer run pipeline as ChromeHeadless fails to start?

Hi forum,

My test stage in gitlab-ci.yml is just running a script (npm run test) which runs my js tests.
My pipelines used to run correctly and I have not changed anything in package.json recently, but my karma tests now fail due to not being able to start ChromeHeadless.

12 12 2019 04:25:37.531:INFO [karma-server]: Karma v4.3.0 server started at http://0.0.0.0:9876/ 38 12 12 2019 04:25:37.535:INFO [launcher]: Launching browsers ChromeHeadlessNoSandbox, ChromeHeadlessNoSandbox with concurrency unlimited 39 12 12 2019 04:25:37.541:INFO [launcher]: Starting browser ChromeHeadless 40 12 12 2019 04:25:37.555:INFO [launcher]: Starting browser ChromeHeadless 41 12 12 2019 04:25:37.657:ERROR [launcher]: Cannot start ChromeHeadless 42 Error relocating /usr/lib/chromium/chrome: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found 43 Error relocating /usr/lib/chromium/chrome: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found 44 Error relocating /usr/lib/chromium/chrome: _ZNSt19_Sp_make_shared_tag5_S_eqERKSt9type_info: symbol not found 45 12 12 2019 04:25:37.658:ERROR [launcher]: ChromeHeadless stdout: 46 12 12 2019 04:25:37.658:ERROR [launcher]: ChromeHeadless stderr: Error relocating /usr/lib/chromium/chrome: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found 47 Error relocating /usr/lib/chromium/chrome: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found 48 Error relocating /usr/lib/chromium/chrome: _ZNSt19_Sp_make_shared_tag5_S_eqERKSt9type_info: symbol not found 49 12 12 2019 04:25:37.661:ERROR [launcher]: Cannot start ChromeHeadless

Has anyone any ideas why it’s gone wrong? Do I need to provide any more details?
Thank you

I have fixed the problem. In case anyone has a similar problem, here is what happened.

I was using a custom image to run my pipelines, based on alpine 3.10 in which I installed the latest chromium package. I thought I had not changed anything in my docker image or code to cause it to fail, but I was mistaken, I had rebuilt it only to install a different version of golang but it had changed the chromium version from 76 to 78 and this version failed with the above error.

Googling turned up this

And adding the following to my Dockerfile when installing chromium
apk add libstdc++@edge
fixed it.

1 Like