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

Version 3.7.1 alpine docker does not work, timeout and failed to connect to socket errors #430

Open
astrolemonade opened this issue May 26, 2023 · 3 comments

Comments

@astrolemonade
Copy link

astrolemonade commented May 26, 2023

What happened:
Try to use grafana/grafana-image-renderer:3.7.1 in a docker-compose environment.
What you expected to happen:
I expect that it would work without problems.

How to reproduce it (as minimally and precisely as possible):

version: "3.9"
services:
  grafana:
    container_name: grafana
    image: grafana/grafana-oss
    ports:
      - '3000:3000'
    depends_on:
      - renderer
    volumes:
      - grafana:/var/lib/grafana
    environment:
      - GF_RENDERING_SERVER_URL=http://renderer:8081/render
      - GF_RENDERING_CALLBACK_URL=http://grafana:3000/
      - GF_LOG_FILTERS=rendering:debug
      - GF_UNIFIED_ALERTING_SCREENSHOTS_CAPTURE=true
  renderer:
    image: grafana/grafana-image-renderer:3.7.1
    ports:
      - '8081:8081'
    environment:
      - RENDERING_DUMPIO=true
      - RENDERING_VERBOSE_LOGGING=true
      - LOG_LEVEL=debug
volumes:
  grafana:

Anything else we need to know?:
Errors:

[0526/105747.678689:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
{"level":"error","message":"Request failed","stack":"TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r1036745 is guaranteed to work.\n    at Timeout.onTimeout (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:301:20)\n  ....}

Environment:

  • Grafana Image Renderer version: 3.7.1
  • Grafana version: 9.5.2
  • Installed plugin or remote renderer service: none
  • OS Grafana Image Renderer is installed on: the one that is in Docker, alpine
  • User OS & Browser: Ubuntu 22.04, Firefox 113.0.2(64-bit)
  • Others:
@spinillos
Copy link
Member

There is a similar issue here and looks like that some chrome extensions are failing to load. So maybe disabling them setting GRAFANA_ARGS=--disable-extensions might work.

Other option could be use a different chromium version. In that case you need to set the new chromium path using CHROME_BIN=/path/to/chromium

@PPDuarte
Copy link

PPDuarte commented Jun 14, 2023

I'm still having this same issue even when using an older version of the image (grafana/grafana-image-renderer:3.7.1). Already tried with --disable-extensions in the config.json but still have the same problem.

@BlackWolfWoof
Copy link

Also have same issues

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

4 participants