camel-k: Failure to deploy as native

Hello everyone, I’m installed on local machines a Kubernetes cluster with CamelK, and testing the integrations they seem to work just fine, as long as I’m building them “normally”. If i try to build them targetting native, I get this cryptic error:

> {"level":"info","ts":1680106924.9205317,"logger":"camel-k.maven.build","msg":"========================================================================================================================"}
> {"level":"info","ts":1680106924.9228609,"logger":"camel-k.maven.build","msg":"GraalVM Native Image: Generating 'camel-k-integration-1.12.0-runner' (executable)..."}
> {"level":"info","ts":1680106924.9230237,"logger":"camel-k.maven.build","msg":"========================================================================================================================"}
> {"level":"info","ts":1680106940.7721894,"logger":"camel-k.maven.build","msg":"[1/7] Initializing...                                                                                  (102.0s @ 0.69GB)"}
> {"level":"info","ts":1680106940.7737226,"logger":"camel-k.maven.build","msg":" Version info: 'GraalVM 22.2.0.0-Final Java 11 Mandrel Distribution'"}
> {"level":"info","ts":1680106940.7737687,"logger":"camel-k.maven.build","msg":" Java version info: '11.0.16+8'"}
> {"level":"info","ts":1680106940.7741117,"logger":"camel-k.maven.build","msg":" C compiler: gcc (redhat, x86_64, 8.5.0)"}
> {"level":"info","ts":1680106940.7744257,"logger":"camel-k.maven.build","msg":" Garbage collector: Serial GC"}
> {"level":"info","ts":1680106940.778354,"logger":"camel-k.maven.build","msg":" 4 user-specific feature(s)"}
> {"level":"info","ts":1680106940.7787883,"logger":"camel-k.maven.build","msg":" - io.quarkus.runner.Feature: Auto-generated class by Quarkus from the existing extensions"}
> {"level":"info","ts":1680106940.779878,"logger":"camel-k.maven.build","msg":" - io.quarkus.runtime.graal.DisableLoggingFeature: Disables INFO logging during the analysis phase for the [org.jboss.threads] categories"}
> {"level":"info","ts":1680106940.7807817,"logger":"camel-k.maven.build","msg":" - io.quarkus.runtime.graal.ResourcesFeature: Register each line in META-INF/quarkus-native-resources.txt as a resource on Substrate VM"}
> {"level":"info","ts":1680106940.78102,"logger":"camel-k.maven.build","msg":" - io.quarkus.security.BouncyCastleFeature"}
> {"level":"info","ts":1680107530.6893327,"logger":"camel-k.maven.build","msg":"[2/7] Performing analysis...  [*************]                                                          (584.8s @ 3.18GB)"}
> {"level":"info","ts":1680107530.7037215,"logger":"camel-k.maven.build","msg":"  23,008 (77.01%) of 29,878 classes reachable"}
> {"level":"info","ts":1680107530.7220685,"logger":"camel-k.maven.build","msg":"  37,594 (77.17%) of 48,716 fields reachable"}
> {"level":"info","ts":1680107530.8572457,"logger":"camel-k.maven.build","msg":" 141,572 (63.25%) of 223,830 methods reachable"}
> {"level":"info","ts":1680107530.8576927,"logger":"camel-k.maven.build","msg":"   4,172 classes, 1,046 fields, and 44,365 methods registered for reflection"}
> {"level":"info","ts":1680107530.8580313,"logger":"camel-k.maven.build","msg":"      67 classes,    84 fields, and    54 methods registered for JNI access"}
> {"level":"info","ts":1680107530.8585145,"logger":"camel-k.maven.build","msg":"       5 native libraries: dl, pthread, rt, stdc++, z"}
> {"level":"info","ts":1680107694.2935972,"logger":"camel-k.maven.build","msg":"[3/7] Building universe...                                                                             (163.4s @ 2.52GB)"}
> {"level":"info","ts":1680107784.2421455,"logger":"camel-k.maven.build","msg":"[4/7] Parsing methods...      [*********]                                                               (89.8s @ 4.97GB)"}
> {"level":"info","ts":1680107821.3591151,"logger":"camel-k.maven.build","msg":"[5/7] Inlining methods...     [***]                                                                     (33.3s @ 3.21GB)"}
> {"level":"info","ts":1680108243.6391466,"logger":"camel-k.maven.build","msg":"[6/7] Compiling methods...    [********************]                                                   (422.3s @ 3.41GB)"}
> {"level":"info","ts":1680108353.45101,"logger":"camel-k.maven.build","msg":"[7/7] Creating image...                                                                                 (70.9s @ 3.43GB)"}
> {"level":"info","ts":1680108353.4526207,"logger":"camel-k.maven.build","msg":"  53.85MB (43.23%) for code area:   102,477 compilation units"}
> {"level":"info","ts":1680108353.4532366,"logger":"camel-k.maven.build","msg":"  70.27MB (56.40%) for image heap:  730,994 objects and 707 resources"}
> {"level":"info","ts":1680108353.4538965,"logger":"camel-k.maven.build","msg":" 470.64KB ( 0.37%) for other data"}
> {"level":"info","ts":1680108353.4541347,"logger":"camel-k.maven.build","msg":" 124.58MB in total"}
> {"level":"info","ts":1680108353.4543731,"logger":"camel-k.maven.build","msg":"------------------------------------------------------------------------------------------------------------------------"}
> {"level":"info","ts":1680108353.456658,"logger":"camel-k.maven.build","msg":"Top 10 packages in code area:                               Top 10 object types in image heap:"}
> {"level":"info","ts":1680108353.4716551,"logger":"camel-k.maven.build","msg":"   3.55MB com.oracle.svm.core.code                            14.20MB java.lang.Class"}
> {"level":"info","ts":1680108353.4722364,"logger":"camel-k.maven.build","msg":"   2.87MB io.fabric8.kubernetes.api.model                     10.52MB byte[] for code metadata"}
> {"level":"info","ts":1680108353.4728618,"logger":"camel-k.maven.build","msg":"   1.44MB sun.security.ssl                                     5.69MB byte[] for java.lang.String"}
> {"level":"info","ts":1680108353.4734604,"logger":"camel-k.maven.build","msg":"   1.41MB java.lang.invoke                                     5.27MB java.lang.String"}
> {"level":"info","ts":1680108353.473893,"logger":"camel-k.maven.build","msg":"   1.33MB com.oracle.svm.core.reflect                          4.10MB byte[] for general heap data"}
> {"level":"info","ts":1680108353.474287,"logger":"camel-k.maven.build","msg":"   1.04MB java.util                                            3.86MB byte[] for reflection metadata"}
> {"level":"info","ts":1680108353.4751685,"logger":"camel-k.maven.build","msg":" 948.86KB org.apache.camel.main                                2.77MB byte[] for embedded resources"}
> {"level":"info","ts":1680108353.4753726,"logger":"camel-k.maven.build","msg":" 936.14KB io.fabric8.openshift.api.model                       2.11MB com.oracle.svm.core.hub.DynamicHubCompanion"}
> {"level":"info","ts":1680108353.47605,"logger":"camel-k.maven.build","msg":" 898.15KB org.bouncycastle.math.ec.custom.sec                  2.03MB c.oracle.svm.core.reflect.SubstrateMethodAccessor"}
> {"level":"info","ts":1680108353.4764023,"logger":"camel-k.maven.build","msg":" 755.51KB org.apache.camel.impl.engine                         1.74MB java.lang.reflect.Method"}
> {"level":"info","ts":1680108353.486617,"logger":"camel-k.maven.build","msg":"  37.94MB for 740 more packages                               17.64MB for 3441 more object types"}
> {"level":"info","ts":1680108353.581762,"logger":"camel-k.maven.build","msg":"------------------------------------------------------------------------------------------------------------------------"}
> {"level":"info","ts":1680108353.5888395,"logger":"camel-k.maven.build","msg":"                       274.6s (18.1% of total time) in 66 GCs | Peak RSS: 7.55GB | CPU load: 2.05"}
> {"level":"info","ts":1680108353.5890253,"logger":"camel-k.maven.build","msg":"------------------------------------------------------------------------------------------------------------------------"}
> {"level":"info","ts":1680108353.5897503,"logger":"camel-k.maven.build","msg":"Produced artifacts:"}
> {"level":"info","ts":1680108353.5995953,"logger":"camel-k.maven.build","msg":" /tmp/kit-cgi6a0kt1b6c73dd0o60-377461220/maven/target/camel-k-integration-1.12.0-native-image-source-jar/camel-k-integration-1.12.0-runner (executable)"}
> {"level":"info","ts":1680108353.6001458,"logger":"camel-k.maven.build","msg":" /tmp/kit-cgi6a0kt1b6c73dd0o60-377461220/maven/target/camel-k-integration-1.12.0-native-image-source-jar/camel-k-integration-1.12.0-runner.build_artifacts.txt (txt)"}
> {"level":"info","ts":1680108353.6007514,"logger":"camel-k.maven.build","msg":"========================================================================================================================"}
> {"level":"info","ts":1680108353.6008067,"logger":"camel-k.maven.build","msg":"Finished generating 'camel-k-integration-1.12.0-runner' in 25m 14s."}
> {"level":"info","ts":1680108354.97897,"logger":"camel-k.builder","msg":"step failed with error: failure while building project: : signal: killed","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}
> {"level":"info","ts":1680108354.979057,"logger":"camel-k.builder","msg":"dependencies: [camel:log camel:timer mvn:org.apache.camel.k:camel-k-runtime mvn:org.apache.camel.quarkus:camel-quarkus-groovy-dsl]"}
> {"level":"info","ts":1680108354.9790726,"logger":"camel-k.builder","msg":"artifacts: []"}
> {"level":"info","ts":1680108354.9790833,"logger":"camel-k.builder","msg":"artifacts selected: []"}
> {"level":"info","ts":1680108354.979094,"logger":"camel-k.builder","msg":"base image: docker.io/eclipse-temurin:11"}
> {"level":"info","ts":1680108354.9791045,"logger":"camel-k.builder","msg":"resolved base image: docker.io/eclipse-temurin:11"}
> {"level":"info","ts":1680108354.9791915,"logger":"camel-k.controller.build","msg":"Build duration 26m40.979114617s","request-namespace":"default","request-name":"hello","build-attempt":0,"build-result":"Failed","build-duration":1600.979114617,"api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"error","ts":1680108354.9811952,"logger":"camel-k.controller.build","msg":"Build kit-cgi6a0kt1b6c73dd0o60 failed: failure while building project: : signal: killed","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60","stacktrace":"github.com/apache/camel-k/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/pkg/util/log/log.go:60\ngithub.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).updateBuildStatus\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:197\ngithub.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:181"}
> {"level":"info","ts":1680108355.0074368,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108355.007597,"logger":"camel-k.controller.build","msg":"Invoking action error-recovery","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108355.0077207,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108355.0079463,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108355.0114594,"logger":"camel-k.controller.build","msg":"state transition","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60","phase-from":"Running","phase-to":"Failed"}
> {"level":"info","ts":1680108360.058702,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.05894,"logger":"camel-k.controller.build","msg":"Invoking action error-recovery","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.058979,"logger":"camel-k.controller.build","msg":"Recovery attempt (1/5)","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.086219,"logger":"camel-k.controller.build","msg":"state transition","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60","phase-from":"Failed","phase-to":"Initialization"}
> {"level":"info","ts":1680108360.0868165,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.0869777,"logger":"camel-k.controller.build","msg":"Invoking action initialize","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.0872512,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.0874753,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.139394,"logger":"camel-k.controller.build","msg":"state transition","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60","phase-from":"Initialization","phase-to":"Scheduling"}
> {"level":"info","ts":1680108360.1394255,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.1397898,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.139799,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.1399262,"logger":"camel-k.controller.build","msg":"Invoking action schedule","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.172642,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.172764,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.1792195,"logger":"camel-k.controller.build","msg":"state transition","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60","phase-from":"Scheduling","phase-to":"Pending"}
> {"level":"info","ts":1680108360.1794271,"logger":"camel-k.controller.build","msg":"Build queue duration 179.390384ms","request-namespace":"default","request-name":"hello","build-queue-duration":0.179390384,"api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.179633,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.179739,"logger":"camel-k.controller.build","msg":"Invoking action monitor-routine","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.223915,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.2240357,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.2241077,"logger":"camel-k.controller.integrationkit","msg":"Build running","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.226493,"logger":"camel-k.controller.build","msg":"state transition","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60","phase-from":"Pending","phase-to":"Running"}
> {"level":"info","ts":1680108360.227016,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.2271526,"logger":"camel-k.controller.build","msg":"Invoking action monitor-routine","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108360.22756,"logger":"camel-k.builder","msg":"steps: [github.com/apache/camel-k/pkg/builder/LoadCamelQuarkusCatalog@0 github.com/apache/camel-k/pkg/builder/CleanUpBuildDir@9 github.com/apache/camel-k/pkg/builder/GenerateJavaKeystore@10 github.com/apache/camel-k/pkg/builder/GenerateQuarkusProject@10 github.com/apache/camel-k/pkg/builder/GenerateProjectSettings@11 github.com/apache/camel-k/pkg/builder/InjectDependencies@12 github.com/apache/camel-k/pkg/builder/SanitizeDependencies@13 github.com/apache/camel-k/pkg/builder/PrepareProjectWithSources@19 github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner@20 github.com/apache/camel-k/pkg/builder/NativeImageContext@30]"}
> {"level":"info","ts":1680108360.2276683,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/LoadCamelQuarkusCatalog","phase":"0","task":"builder"}
> {"level":"info","ts":1680108360.2294662,"logger":"camel-k.builder","msg":"step done in 0.001765 seconds","step":"github.com/apache/camel-k/pkg/builder/LoadCamelQuarkusCatalog","phase":"0","task":"builder"}
> {"level":"info","ts":1680108360.2295074,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/CleanUpBuildDir","phase":"9","task":"builder"}
> {"level":"info","ts":1680108360.229873,"logger":"camel-k.builder","msg":"step done in 0.000343 seconds","step":"github.com/apache/camel-k/pkg/builder/CleanUpBuildDir","phase":"9","task":"builder"}
> {"level":"info","ts":1680108360.2299206,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/GenerateJavaKeystore","phase":"10","task":"builder"}
> {"level":"info","ts":1680108360.229937,"logger":"camel-k.builder","msg":"step done in 0.000001 seconds","step":"github.com/apache/camel-k/pkg/builder/GenerateJavaKeystore","phase":"10","task":"builder"}
> {"level":"info","ts":1680108360.229955,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/GenerateQuarkusProject","phase":"10","task":"builder"}
> {"level":"info","ts":1680108360.229987,"logger":"camel-k.builder","msg":"step done in 0.000017 seconds","step":"github.com/apache/camel-k/pkg/builder/GenerateQuarkusProject","phase":"10","task":"builder"}
> {"level":"info","ts":1680108360.2300088,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/GenerateProjectSettings","phase":"11","task":"builder"}
> {"level":"info","ts":1680108360.2302084,"logger":"camel-k.builder","msg":"step done in 0.000184 seconds","step":"github.com/apache/camel-k/pkg/builder/GenerateProjectSettings","phase":"11","task":"builder"}
> {"level":"info","ts":1680108360.2302473,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/InjectDependencies","phase":"12","task":"builder"}
> {"level":"info","ts":1680108360.2304432,"logger":"camel-k.builder","msg":"step done in 0.000170 seconds","step":"github.com/apache/camel-k/pkg/builder/InjectDependencies","phase":"12","task":"builder"}
> {"level":"info","ts":1680108360.230487,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/SanitizeDependencies","phase":"13","task":"builder"}
> {"level":"info","ts":1680108360.230504,"logger":"camel-k.builder","msg":"step done in 0.000001 seconds","step":"github.com/apache/camel-k/pkg/builder/SanitizeDependencies","phase":"13","task":"builder"}
> {"level":"info","ts":1680108360.2305217,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/PrepareProjectWithSources","phase":"19","task":"builder"}
> {"level":"info","ts":1680108360.231593,"logger":"camel-k.builder","msg":"step done in 0.001052 seconds","step":"github.com/apache/camel-k/pkg/builder/PrepareProjectWithSources","phase":"19","task":"builder"}
> {"level":"info","ts":1680108360.2316482,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}
> {"level":"info","ts":1680108360.232397,"logger":"camel-k.maven","msg":"executing: mvn -V --no-transfer-progress -Dstyle.color=never package -Dmaven.repo.local=/tmp/artifacts/m2 --global-settings /tmp/kit-cgi6a0kt1b6c73dd0o60-1747510404/maven/settings.xml -Dmaven.artifact.threads=6 -T 6","MAVEN_OPTS":""}
> {"level":"info","ts":1680108360.232518,"logger":"camel-k.maven.build","msg":"Executed command: /usr/bin/mvn -V --no-transfer-progress -Dstyle.color=never package -Dmaven.repo.local=/tmp/artifacts/m2 --global-settings /tmp/kit-cgi6a0kt1b6c73dd0o60-1747510404/maven/settings.xml -Dmaven.artifact.threads=6 -T 6"}
> {"level":"info","ts":1680108362.6559386,"logger":"camel-k.maven.build","msg":"Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)"}
> {"level":"info","ts":1680108362.6679165,"logger":"camel-k.maven.build","msg":"Maven home: /usr/share/maven"}
> {"level":"info","ts":1680108362.6679964,"logger":"camel-k.maven.build","msg":"Java version: 11.0.16, vendor: Eclipse Adoptium, runtime: /opt/mandrel"}
> {"level":"info","ts":1680108362.668013,"logger":"camel-k.maven.build","msg":"Default locale: en_US, platform encoding: UTF-8"}
> {"level":"info","ts":1680108362.6680374,"logger":"camel-k.maven.build","msg":"OS name: \"linux\", version: \"5.19.0-35-generic\", arch: \"amd64\", family: \"unix\""}
> {"level":"info","ts":1680108365.1409352,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108365.1411328,"logger":"camel-k.controller.build","msg":"Invoking action monitor-routine","request-namespace":"default","request-name":"kit-cgi6a0kt1b6c73dd0o60","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cgi6a0kt1b6c73dd0o60"}
> {"level":"info","ts":1680108365.5435057,"logger":"camel-k.maven.build","msg":"Scanning for projects..."}
> {"level":"info","ts":1680108366.005481,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108366.0067964,"logger":"camel-k.maven.build","msg":"Using the MultiThreadedBuilder implementation with a thread count of 6"}
> {"level":"info","ts":1680108366.0214133,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108366.0228925,"logger":"camel-k.maven.build","msg":"---------< org.apache.camel.k.integration:camel-k-integration >---------"}
> {"level":"info","ts":1680108366.0234642,"logger":"camel-k.maven.build","msg":"Building camel-k-integration 1.12.0"}
> {"level":"info","ts":1680108366.024717,"logger":"camel-k.maven.build","msg":"--------------------------------[ jar ]---------------------------------"}
> {"level":"info","ts":1680108369.9279656,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108369.9291272,"logger":"camel-k.maven.build","msg":"--- maven-resources-plugin:2.6:resources (default-resources) @ camel-k-integration ---"}
> {"level":"info","ts":1680108370.2732553,"logger":"camel-k.maven.build","msg":"Using 'UTF-8' encoding to copy filtered resources."}
> {"level":"info","ts":1680108370.2856414,"logger":"camel-k.maven.build","msg":"Copying 2 resources"}
> {"level":"info","ts":1680108370.3029048,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108370.303649,"logger":"camel-k.maven.build","msg":"--- maven-compiler-plugin:3.1:compile (default-compile) @ camel-k-integration ---"}
> {"level":"info","ts":1680108370.655798,"logger":"camel-k.maven.build","msg":"No sources to compile"}
> {"level":"info","ts":1680108370.6559021,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108370.6568477,"logger":"camel-k.maven.build","msg":"--- maven-resources-plugin:2.6:testResources (default-testResources) @ camel-k-integration ---"}
> {"level":"info","ts":1680108370.662806,"logger":"camel-k.maven.build","msg":"Using 'UTF-8' encoding to copy filtered resources."}
> {"level":"info","ts":1680108370.6634812,"logger":"camel-k.maven.build","msg":"skip non existing resourceDirectory /tmp/kit-cgi6a0kt1b6c73dd0o60-1747510404/maven/src/test/resources"}
> {"level":"info","ts":1680108370.6650686,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108370.6654449,"logger":"camel-k.maven.build","msg":"--- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ camel-k-integration ---"}
> {"level":"info","ts":1680108370.6741626,"logger":"camel-k.maven.build","msg":"No sources to compile"}
> {"level":"info","ts":1680108370.675769,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108370.6760252,"logger":"camel-k.maven.build","msg":"--- maven-surefire-plugin:2.12.4:test (default-test) @ camel-k-integration ---"}
> {"level":"info","ts":1680108370.847455,"logger":"camel-k.maven.build","msg":"No tests to run."}
> {"level":"info","ts":1680108370.8704813,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108370.8711271,"logger":"camel-k.maven.build","msg":"--- maven-jar-plugin:2.4:jar (default-jar) @ camel-k-integration ---"}
> {"level":"info","ts":1680108371.3193493,"logger":"camel-k.maven.build","msg":"Building jar: /tmp/kit-cgi6a0kt1b6c73dd0o60-1747510404/maven/target/camel-k-integration-1.12.0.jar"}
> {"level":"info","ts":1680108371.355827,"logger":"camel-k.maven.build","msg":""}
> {"level":"info","ts":1680108371.3568597,"logger":"camel-k.maven.build","msg":"--- quarkus-maven-plugin:2.16.0.Final:build (build-integration) @ camel-k-integration ---"}
> {"level":"info","ts":1680108379.8982255,"logger":"camel-k.maven.build","msg":"HotDeployment files:"}
> {"level":"info","ts":1680108379.9155512,"logger":"camel-k.maven.build","msg":"- routes/hello.groovy"}
> {"level":"info","ts":1680108392.525231,"logger":"camel-k.maven.build","msg":"[io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /tmp/kit-cgi6a0kt1b6c73dd0o60-1747510404/maven/target/camel-k-integration-1.12.0-native-image-source-jar/camel-k-integration-1.12.0-runner.jar"}
> {"level":"info","ts":1680108393.2348955,"logger":"camel-k.maven.build","msg":"[io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /tmp/kit-cgi6a0kt1b6c73dd0o60-1747510404/maven/target/camel-k-integration-1.12.0-native-image-source-jar/camel-k-integration-1.12.0-runner.jar"}
> {"level":"info","ts":1680108395.5400379,"logger":"camel-k.maven.build","msg":"[io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on native-image 22.2.0.0-Final Mandrel Distribution (Java Version 11.0.16+8)"}
> {"level":"info","ts":1680108395.551592,"logger":"camel-k.maven.build","msg":"[io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] /opt/mandrel/bin/native-image -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dlogging.initial-configurator.min-level=500 -J-Duser.language=en -J-Duser.country=US -J-Dfile.encoding=UTF-8 --features=io.quarkus.runner.Feature,io.quarkus.security.BouncyCastleFeature,io.quarkus.runtime.graal.ResourcesFeature,io.quarkus.runtime.graal.DisableLoggingFeature -J--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED -J--add-opens=java.base/java.text=ALL-UNNAMED -J--add-opens=java.base/java.io=ALL-UNNAMED -J--add-opens=java.base/java.lang.invoke=ALL-UNNAMED -J--add-opens=java.base/java.util=ALL-UNNAMED -H:+AllowFoldMethods -J-Djava.awt.headless=true --no-fallback --link-at-build-time -H:+ReportExceptionStackTraces -H:-AddAllCharsets --enable-url-protocols=http,https -H:NativeLinkerOption=-no-pie -H:-UseServiceLoaderFeature -H:+StackTrace -J--add-exports=org.graalvm.sdk/org.graalvm.nativeimage.impl=ALL-UNNAMED -J--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk=ALL-UNNAMED -J--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.configure=ALL-UNNAMED -J--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk.localization=ALL-UNNAMED camel-k-integration-1.12.0-runner -jar camel-k-integration-1.12.0-runner.jar"}
> {

The only line with an error that I can see is this:

{"level":"info","ts":1680108354.97897,"logger":"camel-k.builder","msg":"step failed with error: failure while building project: : signal: killed","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}

I definitely didn’t kill it myself, is there some kind of timeout for the build process? Is it possible to fine tune it in some ways? Thank you very much, Roberto

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 26 (15 by maintainers)

Most upvoted comments

Having a deeper look, here some interesting log lines that can help:

{"level":"info","ts":1680108353.5888395,"logger":"camel-k.maven.build","msg":" 274.6s (18.1% of total time) in 66 GCs | Peak RSS: 7.55GB | CPU load: 2.05"}
...
{"level":"info","ts":1680108353.6008067,"logger":"camel-k.maven.build","msg":"Finished generating 'camel-k-integration-1.12.0-runner' in 25m 14s."}
{"level":"info","ts":1680108354.97897,"logger":"camel-k.builder","msg":"step failed with error: failure while building project: : signal: killed","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}

The build required almos 8GB of memory and it finished correctly after 25 minutes. However, for some reason, the BuildQuarkusRunner step failed. I wonder if you can provide a simple reproducer, in order to try reproducing the problem. Also, it would be nice to know what version and kubernetes cluster (and version) you’re using. Thanks.

Hi @robertofabrizi, no, unfortunately, more than the operator, this is a runtime limitation (hence related to Camel Quarkus) which requires an external resource to be present at build time. However, we’ve recently worked on some feature on Maven that may enable this as well. I’m opening a follow up issue so we can discuss if/how to bring this development further on.

@robertofabrizi yes, we’re aware of such limitations. Mind that they are the key for 2023 roadmap developments we’ve planned. The final idea is to be able to remove such constraints and let the user enjoy the full experience of Camel in Kubernetes world. In the while, you can make it work with jvm mode.

Thanks @robertofabrizi I may have missed that. It’s quite strange as we use something similar as a check to validate the Quarkus Native build. We’ll keep an eye on that and will let you know though.

@robertofabrizi it would be good to get some reproducer. Basically we are asking for the route you’re running in order to try reproduce ourselves the error on our end.

I often use the builder trait to ensured the native build can take enough memory with something like : -t builder.properties="quarkus.native.native-image-xmx=3g".

That is fine when the cluster has enough memory. In this case I think the problem is that the local cluster (ie, Minikube) may not have such a quantity of memory. @robertofabrizi the solution is to provide your cluster with enough memory, and later you can play with builder configuration.

I have 8 gb on the master node and 16 gb on the worker node (where the operator is running and firing the build).

I often use the builder trait to ensured the native build can take enough memory with something like : -t builder.properties="quarkus.native.native-image-xmx=3g".

Edit : of course you also need your kubernetes to have enough memory for that