Describe the bug
Running the container build (fast-jar or not) fails
Expected behavior
Build succeeds.
Actual behavior
The build fails with the following error:
~
…
Cleanup: glibc;2.28-72.el8_1.1;x86_64;installed
Installing: (null)
Cleanup: setup;2.12.2-2.el8_1.1;noarch;installed
Installing: (null)
Cleanup: redhat-release;8.1-3.3.el8;x86_64;installed
Installing: (null)
Cleanup: tzdata;2019c-1.el8;noarch;installed
Installing: (null)
Cleanup: libgcc;8.3.1-4.5.el8;x86_64;installed
Installing: (null)
error: Error -1 running transaction
Error: error building at STEP "RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} && microdnf update && microdnf clean all && mkdir /deployments && chown 1001 /deployments && chmod "g+rwX" /deployments && chown 1001:root /deployments && curl https://repo1.maven.org/maven2/io/fabric8/run-java-sh/${RUN_JAVA_VERSION}/run-java-sh-${RUN_JAVA_VERSION}-sh.sh -o /deployments/run-java.sh && chown 1001 /deployments/run-java.sh && chmod 540 /deployments/run-java.sh && echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/lib/security/java.security": error while running runtime: exit status 1
~
To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
docker build -f src/main/docker/Dockerfile.fast-jar -t quarkus/my-project .Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a or ver:java -version:quarkus-maven-plugin:1.9.1.Finalmvnw --version or gradlew --version):Additional context
(Add any other context about the problem here.)
@ctron which quickstart should we use? We have plenty of them :).
Whatever is being created by:
~
mvn io.quarkus:quarkus-maven-plugin:1.9.2.Final:create \
-DprojectGroupId=org.acme \
-DprojectArtifactId=getting-started \
-DclassName="org.acme.getting.started.GreetingResource" \
-Dpath="/hello"
cd getting-started
~
I was not able to reproduce this problem
We are experiencing the same problem on a build that used to work just fine. In our case the build works locally (even without Docker cache), but after Bitbucket dropped the Docker cache of this pipeline and every step is performed fresh, it no longer succeeds and crashes with this error. The project was originally created with a quickstart as well, only with Gradle. We're running the standard Dockerfile.jvm that was generated with the project.
Looking at the local build output, it may be related to a message that pops up:
(microdnf:436): librhsm-WARNING **: 20:51:19.249: Found 0 entitlement certificates
It then proceeds to download the certificates and continues. The logging is marked as red, so the output might trick the pipeline (in our case) into thinking there's an error, while in reality there is just a required download that was discovered.
As suggested here, upgrading from ubi-minimal:8.1 (which was used by the quickstarter) to ubi-minimal:8.3 resolved the problem for us.
Thanks for the information.
I'll go ahead and close this as we have already bumbed to 8.3 in https://github.com/quarkusio/quarkus/pull/13177
Yes, I can confirm, upgrading to 8.3 also fixed the issue for me. Thanks @tiesebarrell for letting us know!
Most helpful comment
Yes, I can confirm, upgrading to
8.3also fixed the issue for me. Thanks @tiesebarrell for letting us know!