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

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

Open
locked-fg opened this issue Jan 5, 2020 · 5 comments
Open

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

locked-fg opened this issue Jan 5, 2020 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@locked-fg
Copy link

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 mxschmitt added enhancement New feature or request good first issue Good for newcomers labels Jan 5, 2020
@mxschmitt
Copy link
Owner

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

@locked-fg
Copy link
Author

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

@locked-fg
Copy link
Author

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
Copy link
Author

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants