internet-pi
internet-pi copied to clipboard
Wrong image platform for grafana?
After installing to my raspberry pi using the instructions in the README, the grafana container seems to get stuck in a restart loop.
Running docker ps gives this:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0cabb43bcdb2 grafana/grafana "/run.sh" 54 minutes ago Restarting (1) 5 seconds ago internet-monitoring_grafana_1
aec45a70529c prom/prometheus:v2.25.2 "/bin/prometheus --c…" 54 minutes ago Up 28 minutes 0.0.0.0:9090->9090/tcp, :::9090->9090/tcp internet-monitoring_prometheus_1
fe6a331147f9 miguelndecarvalho/speedtest-exporter "python -u exporter.…" 55 minutes ago Up 28 minutes (healthy) 0.0.0.0:9798->9798/tcp, :::9798->9798/tcp internet-monitoring_speedtest_1
0edc83f3959a prom/blackbox-exporter "/bin/blackbox_expor…" 55 minutes ago Up 28 minutes 0.0.0.0:9115->9115/tcp, :::9115->9115/tcp internet-monitoring_ping_1
713ee5eb9c12 prom/node-exporter "/bin/node_exporter …" 55 minutes ago Up 28 minutes 0.0.0.0:9100->9100/tcp, :::9100->9100/tcp internet-monitoring_nodeexp_1
Running docker stop internet-monitoring_grafana_1 and then docker run grafana/grafana gives this:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error
So I'm guessing I somehow got the 64 bit version even thought I have a 32 bit Operating system installed?
I haven't used docker before so I don't know how to address this, any help would be welcome.
I have the same issue - with the 64bit version of Raspberry Pi OS
I have the same error in 64 bit.
Experiencing the same error, cannot get grafana/grafana to run on RPI3B+ regardless of 32-bit or 64-bit Raspbian Lite.
However, if critical, you can use the arm32v7 image grafana/grafana-arm32v7-linux, although vastly outdated.
The "latest" tag doesn't have arm included (https://hub.docker.com/r/grafana/grafana/tags)
A workaround would be to use "main" instead... Just replace this line
image: grafana/grafana
With this
image: grafana/grafana:main
In the internet-monitoring/docker-compose.yml file
See: https://github.com/grafana/grafana/issues/47676
A workaround would be to use "main" instead
:main corresponds to the bleeding edge main branch, so it's better to use a stable release instead: grafana/grafana:8.4.6.
grafana/grafana:latest (or grafana/grafana-oss:latest) should be working again.
I haven't tested but I assume that this is fixed now, so I'm going to close this issue.