Impossible to install chrome

I’m not able to install basic configuration for my angular app, I’ve tried bunch of things I fund on the net and it gave me more errors

here is my config.yml

version: 2.1
orbs:
  browser-tools: circleci/browser-tools@1.4.8
jobs:
  build:
    working_directory: ~/ng-project
    docker:
      - image: cimg/node:18.19.0-browsers
    steps:
      - browser-tools/install-chrome
      - browser-tools/install-chromedriver
      - run:
          command: |
            google-chrome --version:
            chromedriver --version
          name: Check install
      - checkout
      - restore_cache:
          key: ng-project-{{ .Branch }}-{{ checksum "package-lock.json" }}
      - run: npm install
      - save_cache:
          key: ng-project-{{ .Branch }}-{{ checksum "package-lock.json" }}
          paths:
            - "node_modules"
      - run: npm run test

Here is what I get

: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[1213:1239:0822/211648.784721:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[1213:1239:0822/211648.784732:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[1213:1239:0822/211648.784742:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[1213:1239:0822/211648.811689:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[1213:1239:0822/211648.811711:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[1213:1291:0822/211648.838937:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1213:1291:0822/211648.838964:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1213:1291:0822/211648.838995:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1213:1291:0822/211648.839014:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1213:1291:0822/211648.839030:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1253:1253:0822/211648.930557:ERROR:viz_main_impl.cc(166)] Exiting GPU process due to errors during initialization

Any help is greatly appreciated

Hi there. Would you add code formatting to your YAML, so that folks can read it?

@halfer sorry this is done

1 Like

Thanks.

I should think that Chrome would run better in a build machine rather than a build container. I pull selenium/standalone-firefox in a machine and then run it in Docker Compose, and it is nearly excellent (I get occasional OOM crashes, but they are probably fixable).

The nice thing with my approach is it can be gotten working locally first, and issues are largely down to Docker/Selenium rather than CircleCI, which is obviously harder to debug.