-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Native Docker image build stuck in 1.11.0.Final #14545
Comments
- update pom files and comment in docker files; - unable to build docker native images; in quarkus-simple-api, tried to downgrade the graalvm version but did not work, see quarkusio/quarkus#14545
Hi @zakkak Using the image (in the picture) works! It was modified one day ago. It doesn't get stuck anymore The Graal 21.0.0, will be available in Quarkus 1.12, right? |
Yes, it looks like Graal 21.0.0 will be available in Quarkus 1.12 (#14512 got merged today). Please close this issue if you think it's now resolved. |
Hey @zakkak , reopening the issue as the image |
That's really strange. AFAIK there were no changes to 20.3.0-java11 for at least a week. I am also not able to reproduce on Fedora 33 with podman 2.2.1 |
@zakkak Could you please, try to execute the code below?
Here is my output I have
The line |
@ivangfr the So I tested with:
and it works (note I have also tested the
|
@zakkak sorry for not mentioning to checkout to the branch Btw, I've just run again and, now it built. I have no clue what is happening. Looks like Quarkus Thanks in advance for your help! |
Same problem with Quarkus |
Do you happen to use docker for other containers as well? Just trying to make sure this is not a docker issue. According to your logs the image appears to get stuck when running:
This step doesn't include any compilation, so it's pretty strange for the image to get stuck at it. |
Docker is not an issue because, in the same project ivangfr/graalvm-quarkus-micronaut-springboot, I have Looks like a joke but now, the native building process of Quarkus I've tried the command you shared and I have
Btw, I tried multiple times and it didn't get stuck. I will try it later in order to see if I get a moment when the native building process gets stuck. |
@cescoffier any ideas? |
Right now, when I run the command you shared, it gets stuck on the 1st try. |
At least now that we know it's reproducible without the need to run a quarkus build, we can keep testing the same image over time to see if the issue appears when we update image in quay.io, if it's completely random, or if it has to do with some state of your local system. Could you please tag the failing image with |
Ok @zakkak I will do it Hi guys, so far, these 2 docker images are getting stuck
Waiting for one to work |
@ivangfr are they always getting stuck? |
I've tagged 2 docker images: one built on
Running 5 days ago the command you shared, it got stuck on both 2 images. However, running today I get
But, when I try the
|
@zakkak I've tagged the docker image built today So far, I have
The new one also gets stuck while building
|
Do you know when it's the last one that was ok? It looks weird as the only thing we changed is the update of the parent image (because of CVEs). |
Looking back my comments in this issue (this one), it seems that the latest image that worked for me was
It was the version Steps to reproduce
My logs
The last line is |
I just tried, and it worked for me: First run:
Second Run:
I'm using Docker for Mac (Docker version 20.10.2, build 2291f61). Can you make sure you removed all the layers? Corruption may have happened (I got that a few times) |
Hi @cescoffier Thanks for trying it out on your machine. Yes, that is weird. It seems that just in my machine it's getting stuck. I am using the exact
Quarkus 1.11.1.Final (GraalVM 20.3.1-java11)1st TryI've cleaned all my Docker images. So, during this execution, the
2nd TryThe Docker image
Quarkus 1.10.5.Final (GraalVM 20.2.0-java11)Btw, in the
|
Can you check how much memory you gave to docker? From the build log, it should not require much, but I've seen build stuck (or actually very very slow) because of this. In general, it happens a bit after. Also, can you try to do a docker run of the pulled image with '--version'. Finally, did you try using the mandrel image instead of Graal VM (we provide both, default is Graal VM) update: here is the command line to build with mandrel:
update 2: I will push the final image version Today. |
Hey @cescoffier I am giving Docker Just to let you know that now I was able to build the Docker native image
So, the image that was built around 10 hours ago worked
Checking https://quay.io/repository/quarkus/ubi-quarkus-native-image?tab=history, should be this one
Any change in this new one? Thanks! |
Just an update of the UBI parent image for CVE reasons. |
Thanks! I am closing the issue. |
Describe the bug
Hi, I've just upgraded my project to version
1.11.0.Final
.When I try to build the Docker native image, the building process simply gets stuck and doesn't move forward, as we can see in the picture below (the 3rd screen on the bottom, it's running
docker stats
and the containerpedantic_kepler
has 0% of CPU)Note that, I am using
quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java11
instead ofquay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
as explained in the Migration Guide. I've tried also withquay.io/quarkus/ubi-quarkus-mandrel:20.3-java11
and I have the same problem.Besides, the container is hard to kill
Looks like GraalVM 20.3.1 is already available. Looking forward to the Quarkus upgrade!
Thanks!
Expected behavior
I should be able to build the docker image
Actual behavior
I am not able to build the docker image
To Reproduce
Here is the link to the project: https://github.com/ivangfr/graalvm-quarkus-micronaut-springboot/tree/master/simple-api/quarkus-simple-api
Steps to reproduce the behavior:
git clone https://github.com/ivangfr/graalvm-quarkus-micronaut-springboot.git
update-to-quarkus-1.11.x.Final
Screenshots

Environment (please complete the following information):
uname -a
orver
:Darwin Ivans-MacBook-Pro-2.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Nov 10 00:07:31 PST 2020; root:xnu-4903.278.51~1/RELEASE_X86_64 x86_64
java -version
:1.11.0.Final
mvnw --version
orgradlew --version
):The text was updated successfully, but these errors were encountered: