Skip to content

Headless browser (chromium, gogole chrome): Failed to connect to socket /run/dbus/system_bus_socket #137

@malte-behrendt

Description

@malte-behrendt

I'd like to run CI tests with a headless browser.

Minimal error message reproduction:
docker run -ti nixery.dev/shell/chromium chromium-browser --headless --no-sandbox

I get two errors:

Failed resolution attempts:

  • Adding a fontconfig file manually. Makes the error message go away, but second error remains and chromium is aborting
  • Tried google-chrome instead
  • Added other packages, like dbus, dependencies mentioned in chromium-browser source nix files

What am I missing? Do I need to start dbus somehow? Add a specific package?

I'm grateful for hints :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions