mxschmitt / fritzbox_exporter

Prometheus Exporter for FRITZ!Box (TR64 and UPnP)
https://mxschmitt.github.io/fritzbox_exporter
Apache License 2.0
58 stars 17 forks source link

Raspberry Pi: exec user process caused "exec format error" #15

Open locked-fg opened 4 years ago

locked-fg commented 4 years ago

Hi,

I'm using the docker image 'mxschmitt/fritzbox_exporter'. In a linux VM everything is just plain fine. When I use the same docker-compose on my Raspberry Pi I get: standard_init_linux.go:211: exec user process caused "exec format error"

Any clue how to solve this?

mxschmitt commented 4 years ago

For that the Docker Image needs to be adjusted so it will support the Raspberry Pi architecture.

locked-fg commented 4 years ago

Yeah well, thought so. - The question is just: how.

locked-fg commented 4 years ago

I tried to build the dockerfile for arm ( referring to this link ). I changed the build command to env GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o /exporter

But again no luck:

The command '/bin/sh -c cd /go/src/github.com/mxschmitt/fritzbox_exporter/cmd/exporter && go get ./... && env GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o /exporter' returned a non-zero code: 139

locked-fg commented 4 years ago

BTW: recompiling won't be enough. In my case an ARMv6 image was required to run ANYTHING on my Raspberry Pi. I chose ownaginatious/armv6h-archlinux successfully.

aauerswald commented 3 years ago

Hello,

any news on this?

I have the same error: standard_init_linux.go:228: exec user process caused "exec format error" by using "mxschmitt/fritzbox_exporter:latest-arm64v8"

I'm using Raspberry PI 4 b.

Best regards!