Closed ivangfr closed 3 years ago
/cc @galderz, @zakkak
Looks like GraalVM 20.3.1 is already available. Looking forward to the Quarkus upgrade!
FYI master
is now using 20.3.1 :) (see https://github.com/quarkusio/quarkus/pull/14457)
We are also working on upgrading to 21.0.0 (see https://github.com/quarkusio/quarkus/pull/14512)
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 quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
is getting stuck again. Looks like there was a building yesterday
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?
git clone https://github.com/ivangfr/graalvm-quarkus-micronaut-springboot.git
cd graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/
./mvnw clean package -Pnative -Dquarkus.native.container-build=true
Here is my output I have
➜ quarkus-simple-api git:(master) ✗ ./mvnw clean package -Pnative -Dquarkus.native.container-build=true
...
[INFO]
[INFO] --- quarkus-maven-plugin:1.11.0.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.2.0.Final
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
20.3.0-java11: Pulling from quarkus/ubi-quarkus-native-image
57de4da701b5: Pull complete
cf0f3ebe9f53: Pull complete
9e13366b3926: Pull complete
Digest: sha256:39dc56651807665ed58af54489394acf18e092102ab24bfa59f24c7a22952fdf
Status: Downloaded newer image for quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /Users/ivanfranchin/github-projects/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /Users/ivanfranchin/github-projects/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
20.3.0-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:39dc56651807665ed58af54489394acf18e092102ab24bfa59f24c7a22952fdf
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
The line quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
is the last one. It doesn't move forward.
@ivangfr the master
branch is still on Quarkus 1.10.5.Final and it also tries to fetch quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java11
So I tested with:
./mvnw clean package -Pnative -Dquarkus.native.container-runtime=podman -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
and it works (note I have also tested the update-to-quarkus-1.11.x.Final
branch with 20.3 and it works as well)
...
[INFO] --- quarkus-maven-plugin:1.10.5.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.1.1.Final
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11
Trying to pull quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11...
Getting image source signatures
Copying blob 57de4da701b5 skipped: already exists
Copying blob cf0f3ebe9f53 skipped: already exists
Copying blob 9e13366b3926 done
Copying config ff935630c8 done
Writing manifest to image destination
Storing signatures
ff935630c8e9941dbb99f6256ff6cd836d89c15bf8b2a08fc6e81c57795bc491
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 20.3.0 (Java Version 11.0.9+10-jvmci-20.3-b06)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] podman run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar:/project:z --env LANG=C --user 1000:1000 --userns=keep-id --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.0-java11 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -jar quarkus-simple-api-1.0.0-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-simple-api-1.0.0-runner
[quarkus-simple-api-1.0.0-runner:20] classlist: 10,318.31 ms, 1.18 GB
[quarkus-simple-api-1.0.0-runner:20] (cap): 1,845.41 ms, 1.18 GB
[quarkus-simple-api-1.0.0-runner:20] setup: 5,572.45 ms, 1.18 GB
00:08:03,476 INFO [org.hib.val.int.uti.Version] HV000001: Hibernate Validator 6.1.6.Final
00:08:36,492 INFO [org.jbo.threads] JBoss Threads version 3.1.1.Final
[quarkus-simple-api-1.0.0-runner:20] (clinit): 775.75 ms, 3.27 GB
[quarkus-simple-api-1.0.0-runner:20] (typeflow): 33,613.07 ms, 3.27 GB
[quarkus-simple-api-1.0.0-runner:20] (objects): 35,202.28 ms, 3.27 GB
[quarkus-simple-api-1.0.0-runner:20] (features): 1,051.99 ms, 3.27 GB
[quarkus-simple-api-1.0.0-runner:20] analysis: 72,739.85 ms, 3.27 GB
[quarkus-simple-api-1.0.0-runner:20] universe: 1,939.01 ms, 3.27 GB
[quarkus-simple-api-1.0.0-runner:20] (parse): 10,091.99 ms, 4.43 GB
[quarkus-simple-api-1.0.0-runner:20] (inline): 6,081.69 ms, 4.43 GB
[quarkus-simple-api-1.0.0-runner:20] (compile): 45,108.56 ms, 6.10 GB
[quarkus-simple-api-1.0.0-runner:20] compile: 63,525.74 ms, 6.10 GB
[quarkus-simple-api-1.0.0-runner:20] image: 4,370.63 ms, 6.10 GB
[quarkus-simple-api-1.0.0-runner:20] write: 805.44 ms, 6.10 GB
[quarkus-simple-api-1.0.0-runner:20] [total]: 159,972.48 ms, 6.10 GB
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 525348ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:49 min
[INFO] Finished at: 2021-01-28T02:10:26+02:00
[INFO] -----------------------------------------------------------------------
@zakkak sorry for not mentioning to checkout to the branch update-to-quarkus-1.11.x.Final
.
Btw, I've just run again and, now it built.
I have no clue what is happening.
Looks like Quarkus 1.11.1
was released. It has an upgrade to GraalVM 20.3.1
. I will update my project tomorrow to the new version and give it a try.
Thanks in advance for your help!
Same problem with Quarkus 1.11.1
and GraalVM 20.3.1
.
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:
docker run -v /path/to/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/:/project:z --env LANG=C --user 1000:1000 --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 --version
This step doesn't include any compilation, so it's pretty strange for the image to get stuck at it. Could you please try running the above command a couple of times manually to see if it gets stuck or not?
Docker is not an issue because, in the same project ivangfr/graalvm-quarkus-micronaut-springboot, I have Spring Boot
and Microunat
apps. They are working fine.
Looks like a joke but now, the native building process of Quarkus 1.11.1
& GraalVM 20.3.1
apps is working.
I've tried the command you shared and I have
➜ graalvm-quarkus-micronaut-springboot git:(master) ✗ docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/:/project:z --env LANG=C --user 1000:1000 --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 --version
GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
➜ graalvm-quarkus-micronaut-springboot git:(master) ✗ docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/:/project:z --env LANG=C --user 1000:1000 --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 --version
GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
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 docker tag
, so that it doesn't get removed the next time that Quarkus pulls the latest image from quay.io? Then you can use that tag to run the above test during the day and see if the behaviour is consistent.
Ok @zakkak I will do it
Hi guys, so far, these 2 docker images are getting stuck
20.3.1-java11 was moved to SHA256 7d889b23b81f from SHA256 3d49446dc575 Sat, Jan 30, 2021 10:40 PM
20.3.1-java11 was moved to SHA256 3d49446dc575 from SHA256 343f327d48f1 Wed, Jan 27, 2021 12:06 PM
➜ graalvm-quarkus-micronaut-springboot git:(master) ✗ docker images | grep ubi-quarkus
quay.io/quarkus/ubi-quarkus-native-image 20.3.1-java11 95c5befa8a4a 14 hours ago 1.38GB
quay.io/quarkus/ubi-quarkus-native-image 30-01-2021-stuck 95c5befa8a4a 14 hours ago 1.38GB
quay.io/quarkus/ubi-quarkus-native-image 27-01-2021-stuck d51f51b0d7b4 4 days ago 1.38GB
Waiting for one to work
Hi guys, so far, these 2 docker images are getting stuck
@ivangfr are they always getting stuck?
I've tagged 2 docker images: one built on Jan 27 2021
and another on Jan 30 2021
. I've called them
quay.io/quarkus/ubi-quarkus-native-image:27-01-2021-stuck
quay.io/quarkus/ubi-quarkus-native-image:30-01-2021-stuck
Running 5 days ago the command you shared, it got stuck on both 2 images.
However, running today I get
$ docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/:/project:z --env LANG=C --user 1000:1000 --rm quay.io/quarkus/ubi-quarkus-native-image:27-01-2021-stuck --version
GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
$ docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/:/project:z --env LANG=C --user 1000:1000 --rm quay.io/quarkus/ubi-quarkus-native-image:30-01-2021-stuck --version
GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
$ docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/:/project:z --env LANG=C --user 1000:1000 --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 --version
GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
But, when I try the docker run
command that Quakus uses, it gets stuck.
$ docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar:/project:z --env LANG=C --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar quarkus-simple-api-1.0.0-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-simple-api-1.0.0-runner
@zakkak I've tagged the docker image built today
So far, I have
quay.io/quarkus/ubi-quarkus-native-image 08-02-2021-stuck 963f5ef35361 7 hours ago 1.38GB
quay.io/quarkus/ubi-quarkus-native-image 20.3.1-java11 963f5ef35361 7 hours ago 1.38GB
quay.io/quarkus/ubi-quarkus-native-image 30-01-2021-stuck 95c5befa8a4a 8 days ago 1.38GB
quay.io/quarkus/ubi-quarkus-native-image 27-01-2021-stuck d51f51b0d7b4 12 days ago 1.38GB
The new one also gets stuck while building Quarkus
app's Docker native image. It doesn't move from this point
...
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
Do you know when it's the last one that was ok? Do you have a reproducer?
It looks weird as the only thing we changed is the update of the parent image (because of CVEs).
@cescoffier
Looking back my comments in this issue (this one), it seems that the latest image that worked for me was
20.3.0-java11 was moved to SHA256 0de9aca4c7d5 from SHA256 b9e920354a55 Mon, Jan 25, 2021 5:15 PM
It was the version 20.3.0-java11
btw. I believe, since I started using Quarkus 1.11.1.Final (GraalVM 20.3.1-java11), I was not able to build any Docker native image.
Steps to reproduce
git clone https://github.com/ivangfr/graalvm-quarkus-micronaut-springboot.git
cd graalvm-quarkus-micronaut-springboot
git checkout update-frameworks-version
cd simple-api/quarkus-simple-api
./mvnw clean package -Pnative -Dquarkus.native.container-build=true
My logs
➜ quarkus-simple-api git:(update-frameworks-version) ./mvnw clean package -Pnative -Dquarkus.native.container-build=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.mycompany:quarkus-simple-api >------------------
[INFO] Building quarkus-simple-api 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ quarkus-simple-api ---
[INFO]
[INFO] --- quarkus-maven-plugin:1.11.1.Final:generate-code (default) @ quarkus-simple-api ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ quarkus-simple-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ quarkus-simple-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/classes
[INFO]
[INFO] --- quarkus-maven-plugin:1.11.1.Final:generate-code-tests (default) @ quarkus-simple-api ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ quarkus-simple-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ quarkus-simple-api ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ quarkus-simple-api ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ quarkus-simple-api ---
[INFO] Building jar: /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0.jar
[INFO]
[INFO] --- quarkus-maven-plugin:1.11.1.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.2.0.Final
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
The last line is quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
, it doesn't move from there
I just tried, and it worked for me:
First run:
...
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ quarkus-simple-api ---
[INFO] Building jar: /Users/clement/Downloads/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0.jar
[INFO]
[INFO] --- quarkus-maven-plugin:1.11.1.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.2.0.Final
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
57de4da701b5: Pull complete
cf0f3ebe9f53: Pull complete
9a780141b665: Pull complete
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Downloaded newer image for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /Users/clement/Downloads/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /Users/clement/Downloads/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] docker run -v /Users/clement/Downloads/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar:/project:z --env LANG=C --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar quarkus-simple-api-1.0.0-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-simple-api-1.0.0-runner
[quarkus-simple-api-1.0.0-runner:26] classlist: 19,458.87 ms, 0.94 GB
[quarkus-simple-api-1.0.0-runner:26] (cap): 1,036.06 ms, 0.94 GB
[quarkus-simple-api-1.0.0-runner:26] setup: 5,202.49 ms, 0.94 GB
16:06:18,230 INFO [org.hib.val.int.uti.Version] HV000001: Hibernate Validator 6.2.0.Final
16:06:46,963 INFO [org.jbo.threads] JBoss Threads version 3.2.0.Final
[quarkus-simple-api-1.0.0-runner:26] (clinit): 963.58 ms, 1.79 GB
[quarkus-simple-api-1.0.0-runner:26] (typeflow): 33,654.31 ms, 1.79 GB
[quarkus-simple-api-1.0.0-runner:26] (objects): 33,402.60 ms, 1.79 GB
[quarkus-simple-api-1.0.0-runner:26] (features): 891.51 ms, 1.79 GB
[quarkus-simple-api-1.0.0-runner:26] analysis: 70,875.85 ms, 1.79 GB
[quarkus-simple-api-1.0.0-runner:26] universe: 2,426.20 ms, 1.86 GB
[quarkus-simple-api-1.0.0-runner:26] (parse): 10,172.15 ms, 2.28 GB
[quarkus-simple-api-1.0.0-runner:26] (inline): 7,505.63 ms, 2.73 GB
[quarkus-simple-api-1.0.0-runner:26] (compile): 55,776.07 ms, 2.77 GB
[quarkus-simple-api-1.0.0-runner:26] compile: 75,868.03 ms, 2.77 GB
[quarkus-simple-api-1.0.0-runner:26] image: 4,837.40 ms, 2.77 GB
[quarkus-simple-api-1.0.0-runner:26] write: 3,717.21 ms, 2.77 GB
[quarkus-simple-api-1.0.0-runner:26] [total]: 183,360.51 ms, 2.77 GB
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] objcopy executable not found in PATH. Debug symbols will not be separated from executable.
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] That will result in a larger native image with debug symbols embedded in it.
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 270858ms
Second Run:
INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] docker run -v /Users/clement/Downloads/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar:/project:z --env LANG=C --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar quarkus-simple-api-1.0.0-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-simple-api-1.0.0-runner
[quarkus-simple-api-1.0.0-runner:26] classlist: 19,497.57 ms, 0.94 GB
[quarkus-simple-api-1.0.0-runner:26] (cap): 738.11 ms, 0.94 GB
[quarkus-simple-api-1.0.0-runner:26] setup: 3,829.01 ms, 0.94 GB
16:11:04,773 INFO [org.hib.val.int.uti.Version] HV000001: Hibernate Validator 6.2.0.Final
16:11:28,385 INFO [org.jbo.threads] JBoss Threads version 3.2.0.Final
[quarkus-simple-api-1.0.0-runner:26] (clinit): 978.57 ms, 1.80 GB
[quarkus-simple-api-1.0.0-runner:26] (typeflow): 27,829.16 ms, 1.80 GB
[quarkus-simple-api-1.0.0-runner:26] (objects): 31,745.92 ms, 1.80 GB
[quarkus-simple-api-1.0.0-runner:26] (features): 911.37 ms, 1.80 GB
[quarkus-simple-api-1.0.0-runner:26] analysis: 63,389.12 ms, 1.80 GB
[quarkus-simple-api-1.0.0-runner:26] universe: 2,261.81 ms, 1.80 GB
[quarkus-simple-api-1.0.0-runner:26] (parse): 7,591.81 ms, 1.86 GB
[quarkus-simple-api-1.0.0-runner:26] (inline): 10,853.76 ms, 2.80 GB
[quarkus-simple-api-1.0.0-runner:26] (compile): 50,452.37 ms, 2.85 GB
[quarkus-simple-api-1.0.0-runner:26] compile: 71,384.73 ms, 2.85 GB
[quarkus-simple-api-1.0.0-runner:26] image: 5,004.52 ms, 2.85 GB
[quarkus-simple-api-1.0.0-runner:26] write: 3,566.89 ms, 2.85 GB
[quarkus-simple-api-1.0.0-runner:26] [total]: 169,686.58 ms, 2.85 GB
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] objcopy executable not found in PATH. Debug symbols will not be separated from executable.
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] That will result in a larger native image with debug symbols embedded in it.
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 180854ms
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 Docker for Mac
as you are using.
➜ quarkus-simple-api git:(update-frameworks-version) docker --version
Docker version 20.10.2, build 2291f61
I've cleaned all my Docker images. So, during this execution, the quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
is pulled
➜ quarkus-simple-api git:(update-frameworks-version) docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
➜ quarkus-simple-api git:(update-frameworks-version) ./mvnw clean package -Pnative -Dquarkus.native.container-build=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.mycompany:quarkus-simple-api >------------------
[INFO] Building quarkus-simple-api 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
...
[INFO] --- quarkus-maven-plugin:1.11.1.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.2.0.Final
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
57de4da701b5: Pull complete
cf0f3ebe9f53: Pull complete
9a780141b665: Pull complete
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Downloaded newer image for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
The Docker image quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
is already there
➜ quarkus-simple-api git:(update-frameworks-version) docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
quay.io/quarkus/ubi-quarkus-native-image 20.3.1-java11 963f5ef35361 29 hours ago 1.38GB
➜ quarkus-simple-api git:(update-frameworks-version) ./mvnw clean package -Pnative -Dquarkus.native.container-build=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.mycompany:quarkus-simple-api >------------------
[INFO] Building quarkus-simple-api 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
...
[INFO] --- quarkus-maven-plugin:1.11.1.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.2.0.Final
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:373fdcc3e6bdd6edb8017e03bd3b7f2daeb32f2fdfde6becd4e4d88936139400
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
Btw, in the master
branch of this same project, I am using Quakus 1.10.5.Final (GraalVM 20.2.0)
and it works.
➜ quarkus-simple-api git:(master) docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
➜ quarkus-simple-api git:(master) ./mvnw clean package -Pnative -Dquarkus.native.container-build=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.mycompany:quarkus-simple-api >------------------
[INFO] Building quarkus-simple-api 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
...
[INFO] --- quarkus-maven-plugin:1.10.5.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.1.1.Final
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java11
20.2.0-java11: Pulling from quarkus/ubi-quarkus-native-image
57de4da701b5: Pull complete
cf0f3ebe9f53: Pull complete
e0f3b953b9e8: Pull complete
Digest: sha256:4d5cfac91169e402f72cd1cfddfd1a2f7f5ecc7eb9712fb137e42af11876fd93
Status: Downloaded newer image for quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java11
quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java11
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 20.2.0 (Java Version 11.0.8)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar:/project:z --env LANG=C --rm quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java11 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -jar quarkus-simple-api-1.0.0-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-simple-api-1.0.0-runner
[quarkus-simple-api-1.0.0-runner:26] classlist: 13,955.74 ms, 0.96 GB
[quarkus-simple-api-1.0.0-runner:26] (cap): 1,911.90 ms, 0.94 GB
[quarkus-simple-api-1.0.0-runner:26] setup: 5,954.12 ms, 0.94 GB
19:15:26,266 INFO [org.hib.val.int.uti.Version] HV000001: Hibernate Validator 6.1.6.Final
19:15:55,522 INFO [org.jbo.threads] JBoss Threads version 3.1.1.Final
[quarkus-simple-api-1.0.0-runner:26] (clinit): 615.42 ms, 2.80 GB
[quarkus-simple-api-1.0.0-runner:26] (typeflow): 35,893.68 ms, 2.80 GB
[quarkus-simple-api-1.0.0-runner:26] (objects): 30,872.61 ms, 2.80 GB
[quarkus-simple-api-1.0.0-runner:26] (features): 1,038.47 ms, 2.80 GB
[quarkus-simple-api-1.0.0-runner:26] analysis: 70,639.02 ms, 2.80 GB
[quarkus-simple-api-1.0.0-runner:26] universe: 2,926.06 ms, 2.80 GB
[quarkus-simple-api-1.0.0-runner:26] (parse): 21,251.04 ms, 3.36 GB
[quarkus-simple-api-1.0.0-runner:26] (inline): 8,073.25 ms, 3.96 GB
[quarkus-simple-api-1.0.0-runner:26] (compile): 72,512.93 ms, 5.49 GB
[quarkus-simple-api-1.0.0-runner:26] compile: 104,633.92 ms, 5.49 GB
[quarkus-simple-api-1.0.0-runner:26] image: 5,228.79 ms, 5.49 GB
[quarkus-simple-api-1.0.0-runner:26] write: 3,743.18 ms, 5.49 GB
[quarkus-simple-api-1.0.0-runner:26] [total]: 208,124.63 ms, 5.49 GB
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] objcopy executable not found in PATH. Debug symbols will not be separated from executable.
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] That will result in a larger native image with debug symbols embedded in it.
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 295765ms
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:
./mvnw clean package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.3.0.0.Beta2-java11
update 2: I will push the final image version Today.
Hey @cescoffier I am giving Docker 16GB
.
Just to let you know that now I was able to build the Docker native image
➜ quarkus-simple-api git:(update-frameworks-version) docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
➜ quarkus-simple-api git:(update-frameworks-version) ./mvnw clean package -Pnative -Dquarkus.native.container-build=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.mycompany:quarkus-simple-api >------------------
[INFO] Building quarkus-simple-api 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
...
[INFO] --- quarkus-maven-plugin:1.11.1.Final:build (default) @ quarkus-simple-api ---
[INFO] [org.jboss.threads] JBoss Threads version 3.2.0.Final
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
57de4da701b5: Pull complete
cf0f3ebe9f53: Pull complete
05bc129dcb13: Pull complete
Digest: sha256:b20c8294bf4278f79e7ac7ca0318f858bf46bd80f427de91776762632d25e87f
Status: Downloaded newer image for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar/quarkus-simple-api-1.0.0-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Checking image status quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
20.3.1-java11: Pulling from quarkus/ubi-quarkus-native-image
Digest: sha256:b20c8294bf4278f79e7ac7ca0318f858bf46bd80f427de91776762632d25e87f
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 20.3.1 (Java Version 11.0.10+8-jvmci-20.3-b09)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] docker run -v /tmp/graalvm-quarkus-micronaut-springboot/simple-api/quarkus-simple-api/target/quarkus-simple-api-1.0.0-native-image-source-jar:/project:z --env LANG=C --rm quay.io/quarkus/ubi-quarkus-native-image:20.3.1-java11 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar quarkus-simple-api-1.0.0-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-simple-api-1.0.0-runner
[quarkus-simple-api-1.0.0-runner:26] classlist: 12,670.91 ms, 0.94 GB
[quarkus-simple-api-1.0.0-runner:26] (cap): 1,432.21 ms, 0.94 GB
[quarkus-simple-api-1.0.0-runner:26] setup: 5,417.01 ms, 0.94 GB
17:43:34,465 INFO [org.hib.val.int.uti.Version] HV000001: Hibernate Validator 6.2.0.Final
17:44:12,734 INFO [org.jbo.threads] JBoss Threads version 3.2.0.Final
[quarkus-simple-api-1.0.0-runner:26] (clinit): 951.43 ms, 2.73 GB
[quarkus-simple-api-1.0.0-runner:26] (typeflow): 43,159.72 ms, 2.73 GB
[quarkus-simple-api-1.0.0-runner:26] (objects): 30,169.59 ms, 2.73 GB
[quarkus-simple-api-1.0.0-runner:26] (features): 1,010.15 ms, 2.73 GB
[quarkus-simple-api-1.0.0-runner:26] analysis: 77,305.22 ms, 2.73 GB
[quarkus-simple-api-1.0.0-runner:26] universe: 3,187.53 ms, 2.73 GB
[quarkus-simple-api-1.0.0-runner:26] (parse): 15,097.85 ms, 3.83 GB
[quarkus-simple-api-1.0.0-runner:26] (inline): 13,872.48 ms, 4.72 GB
[quarkus-simple-api-1.0.0-runner:26] (compile): 70,955.97 ms, 5.34 GB
[quarkus-simple-api-1.0.0-runner:26] compile: 102,671.45 ms, 5.34 GB
[quarkus-simple-api-1.0.0-runner:26] image: 6,039.35 ms, 5.34 GB
[quarkus-simple-api-1.0.0-runner:26] write: 1,538.55 ms, 5.34 GB
[quarkus-simple-api-1.0.0-runner:26] [total]: 209,692.87 ms, 5.34 GB
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] objcopy executable not found in PATH. Debug symbols will not be separated from executable.
[WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] That will result in a larger native image with debug symbols embedded in it.
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 312084ms
So, the image that was built around 10 hours ago worked
➜ quarkus-simple-api git:(update-frameworks-version) docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
quay.io/quarkus/ubi-quarkus-native-image 20.3.1-java11 e09dc9531930 10 hours ago 1.38GB
...
Checking https://quay.io/repository/quarkus/ubi-quarkus-native-image?tab=history, should be this one
20.3.1-java11 20.3.1-java11 was moved to SHA256 b20c8294bf42 from SHA256 373fdcc3e6bd Wed, Feb 10, 2021 5:18 AM
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
):