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

Exec format error on ARM server #132

Closed
Xinayder opened this issue Sep 3, 2023 · 2 comments
Closed

Exec format error on ARM server #132

Xinayder opened this issue Sep 3, 2023 · 2 comments

Comments

@Xinayder
Copy link
Contributor

Xinayder commented Sep 3, 2023

I have just tried to install the Ingress controller on my ARM server from Hetzner. Following the steps on the README, I got the following error right after the pod was deployed:

exec /ingress-controller: exec format error                                                                                      │
│ Stream closed EOF for caddy-system/mycaddy-caddy-ingress-controller-6c4b5b8f55-lqxgs (caddy-ingress-controller)

I forgot that I was running an ARM server so the next thing I checked was if the controller has an ARM image. To my surprise it has, but even after switching the image tag to v0.1.5-arm64v8, I get the same error.

The solution was to build my own image using: sudo docker buildx build -t caddyingress-local .

I thought it could be a build problem but I couldn't find anything. The only differences I have from the master branch is that I built the controller binary using make and had to change the last line of the Dockerfile to:

COPY bin/ingress-controller /
@Embraser01
Copy link
Member

Hi 👋

The docker image was badly built for ARM. The #128 PR should fix the issue if you'd like to give it a go (once I release a new version)

Fixed by #128

@mavimo
Copy link
Member

mavimo commented Oct 14, 2023

I'm going to close the issue as it is resolved by the PR mentioned by @Embraser01.

@mavimo mavimo closed this as completed Oct 14, 2023
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

3 participants