grafana-image-renderer
grafana-image-renderer copied to clipboard
Version 3.7.1 alpine docker does not work, timeout and failed to connect to socket errors
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:
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
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.
Also have same issues