-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fails to start in minikube with "does not support all ... CPU features" / "Please rebuild the executable" #166
Comments
I notice in the Dockerfile that the https://github.com/observabilitystack/geoip-api/blob/master/Dockerfile#L11C1-L11C1 The Graalvm JDK 17 release notes in the third bullet mention: "Use -march=compatibility for best compatibility or -march=native for best performance if a native executable is deployed on the same machine or on a machine with the same CPU features." If this is indeed the issue I'm experiencing, then it seems adding a "compatibility" variant image, or switching builds to "compatibility" if there is no noticeable performance difference, would resolve it. |
I built the project locally and was able to run the image in both docker and minikube. However, I noticed among my build output, the line:
So the architecture of the built image can depend on that of the machine that builds it, at least in this case. My guess is that the above fallback does not happen on the machine that builds the published geoip-api images. |
I'll change to build args. Thanks for the find! |
Thanks for the PR! Accepted and I re-triggered todays release build. You should be able to use the release in approx. 1h. |
The image runs fine for me in docker, with command:
docker run --rm -it ghcr.io/observabilitystack/geoip-api:latest
.However, when I try to run in minikube (kubernetes), with command:
kubectl create deployment --image ghcr.io/observabilitystack/geoip-api:latest geoip-test1
The pod terminates immediately in error, producing only the output:
In a full (non-minikube) kubernetes cluster when trying to run an older (2023-06) image, it terminates immediately with error:
Suggestions online range from those related to the first error, e.g. "change -march=native to -march=x86-64", to running with different versions of libc. Are there any suggested workarounds to, or possible fixes for, the above errors?
The text was updated successfully, but these errors were encountered: