Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2000

Not able to deploy Openshift build in native mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 2.2.5.GA
    • code.quarkus, mandrel, team/eng
    • None
    • False
    • None
    • False
    • ---

      Infra

      • Openshift 4.10
      • Mandrel java ~/tools/mandrel-java11-21.3.1.1-Final/bin/java
      • getting-started project
      • RHBQ 2.2.5

       

      application.properties:

      quarkus.openshift.build-strategy=docker
      quarkus.native.container-build=true
      quarkus.kubernetes-client.trust-certs=true
      quarkus.openshift.route.expose=true

       

      Command 

      ./mvnw clean package -Pnative -Dquarkus.kubernetes.deploy=true

       

       

      NFO] 
      [INFO] — maven-jar-plugin:2.4:jar (default-jar) @ getting-started —
      [INFO] Building jar: /home/orivat/dev/rh-sso/test-quarkus/getting-started/target/getting-started-1.0.0-SNAPSHOT.jar
      [INFO] 
      [INFO] — quarkus-maven-plugin:2.2.5.Final-redhat-00007:build (default) @ getting-started —
      [INFO] [org.jboss.threads] JBoss Threads version 3.4.2.Final-redhat-00001
      [INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /home/orivat/dev/rh-sso/test-quarkus/getting-started/target/getting-started-1.0.0-SNAPSHOT-native-image-source-jar/getting-started-1.0.0-SNAPSHOT-runner.jar
      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /home/orivat/dev/rh-sso/test-quarkus/getting-started/target/getting-started-1.0.0-SNAPSHOT-native-image-source-jar/getting-started-1.0.0-SNAPSHOT-runner.jar
      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Using podman to run the native image builder
      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Checking image status registry.access.redhat.com/quarkus/mandrel-21-rhel8:21.3
      Trying to pull registry.access.redhat.com/quarkus/mandrel-21-rhel8:21.3...
      Getting image source signatures
      Checking if image destination supports signatures
      Copying blob 27d7458e07b4 skipped: already exists  
      Copying blob 4eef1fa1f1c1 skipped: already exists  
      Copying blob eb24191cef20 [--------------------------------------] 0.0b / 0.0b
      Copying config e3826815dc done  
      Writing manifest to image destination
      Storing signatures
      e3826815dc09fdd3ecf23b539fa5003da935b5b3d55e9f8b1370c81a3fe0cc09
      [ERROR] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Unable to get GraalVM version from the native-image binary.
      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] podman run --env LANG=C --rm --user 103707:103707 --userns=keep-id -v /home/orivat/dev/rh-sso/test-quarkus/getting-started/target/getting-started-1.0.0-SNAPSHOT-native-image-source-jar:/project:z --name build-native-VmVoy registry.access.redhat.com/quarkus/mandrel-21-rhel8:21.3 -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=3 -J-Duser.language=en -J-Duser.country=US -J-Dfile.encoding=UTF-8 -H:-ParseOnce -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http -H:+InlineBeforeAnalysis -H:-UseServiceLoaderFeature -H:+StackTrace getting-started-1.0.0-SNAPSHOT-runner -jar getting-started-1.0.0-SNAPSHOT-runner.jar
      /usr/bin/native-image: line 42: cannot create temp file for here-document: Invalid argument
      /usr/bin/native-image: line 107: cannot create temp file for here-document: Invalid argument
      Error: --module-path requires module path specification
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  20.955 s
      [INFO] Finished at: 2022-04-12T17:41:18+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00007:build (default) on project getting-started: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      [ERROR]     [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
      [ERROR]     at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:237)
      [ERROR]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [ERROR]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      [ERROR]     at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:820)
      [ERROR]     at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
      [ERROR]     at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
      [ERROR]     at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      [ERROR]     at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
      [ERROR]     at java.base/java.lang.Thread.run(Thread.java:829)
      [ERROR]     at org.jboss.threads.JBossThread.run(JBossThread.java:501)
      [ERROR] Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
      [ERROR]     at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:379)
      [ERROR]     at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:217)
      [ERROR]     ... 11 more
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

       

       

       

        1. trace.txt
          8 kB
          Olivier Rivat

              Unassigned Unassigned
              rhn-support-orivat Olivier Rivat
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: