You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "robertofabrizi (via GitHub)" <gi...@apache.org> on 2023/03/30 11:20:03 UTC

[GitHub] [camel-k] robertofabrizi opened a new issue, #4200: Failure to deploy as native

robertofabrizi opened a new issue, #4200:
URL: https://github.com/apache/camel-k/issues/4200

   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:+StackTra
 ce -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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490296226

   > > given that, a simple native build requires at least 8 GB
   > 
   > Is this confirmed? I mean, I am not arguing your point. I usually give my operator at least 8 gigs with an upper limit of 12 gigs. But the documentation [says](https://github.com/apache/camel-k/blob/main/docs/modules/traits/pages/quarkus.adoc) 4Gb is required. If you are saying that "not giving 8Gb is the problem" then maybe we should change the docs.
   
   I think that the doc was originally released in version 1.7. I have the feeling that now we need to update that to have such a value. There is not a precise number though, so, likely the end user has to play a little bit with numbers before finding the right value.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1501517518

   I think the `xlst` component may have some problem when trying to build in native mode: https://camel.apache.org/camel-quarkus/2.16.x/reference/extensions/xslt.html#extensions-xslt-additional-camel-quarkus-configuration - you need to make sure that resource is available at (native) build time, but this is something that cannot be managed in Camel K, where it is the operator `Pod` to take care of those builds.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1495619711

   > @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.
   
   Dear @squakez , in my previous post I shared the versions of the various components that I'm running and also the route and the command to fire it up:
   
   > cat hello.groovy
   > from('timer:tick?period=3000').setBody().constant('Hello world from Camel K').to('log:info')
   > 
   > kamel run -t builder.properties="quarkus.native.native-image-xmx=16g" -t builder.verbose=true --trait=quarkus.package-type=native hello.groovy --dev
   
   Pardon me if you meant something else with the route.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1663349620

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] essobedo commented on issue #4200: Failure to deploy as native

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490373813

   Assuming that you are using minikube, could you please delete your minikube cluster and recreate it with `minikube start --memory 10000 --cpus 3 --addons registry`?
   
   Then launch your integration simply with `kamel run --trait=quarkus.package-type=native hello.groovy --dev`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1500211119

   @squakez  While figuring out the issue on the environment above, I've deployed a new environment on GKE, and there I managed to build the hello.groovy example as native just fine, but then failed to build this Integration. Sadly the log appears to tell me nothing about the issue. This is the yaml:
   
   `
   # camel-k: dependency=mvn:org.apache.camel.quarkus:camel-quarkus-jacksonxml
   # camel-k: dependency=mvn:org.apache.camel.quarkus:camel-quarkus-jackson
   # camel-k: resource=file:/home/r_fabrizi83/karavan/tests/json2xml-3.xsl
   # camel-k: trait=quarkus.package-type=native
   
   - rest:
       post:
         - consumes: application/json
           produces: application/xml
           to: direct:post
           path: /customer
           param:
             - name: queryparam1
               type: query
               dataType: string
       get:
         - produces: application/json
           to: direct:get
           path: /customers/{name}
   - route:
       from:
         uri: direct:get
         steps:
           - setBody:
               expression:
                 simple:
                   expression: '{"name": "${header.name}"}'
           - setHeader:
               name: Content-Type
               expression:
                 constant:
                   expression: application/json
           - to:
               uri: log:yaml
               parameters:
                 showBodyType: false
                 showExchangePattern: false
   - route:
       from:
         uri: direct:post
         steps:
           - setHeader:
               name: Content-Type
               expression:
                 constant:
                   expression: application/xml
           - to:
               uri: log:yaml
               parameters:
                 showBodyType: false
                 showExchangePattern: false
           - setHeader:
               name: javaInfo
               expression:
                 simple:
                   expression: "java.vendor: {{java.vendor}}, java.version: {{java.version}}, os.arch: {{os.arch}}, os.name: {{os.name}}, os.version: {{os.version}}"
                   trim: false
           #- convertBodyTo:
           #    type: com.fasterxml.jackson.databind.JsonNode
           - marshal:
               jacksonXml:
                 useList: true
           - to:
               uri: log:yaml
               parameters:
                 showBodyType: false
                 showExchangePattern: false
           - to:
               uri: xslt:file:/etc/camel/resources/json2xml-3.xsl
           - to:
               uri: log:yaml
               parameters:
                 showBodyType: false
                 showExchangePattern: false
   `
   
   This is the referenced xsl:
   
   `<?xml version="1.0" encoding="UTF-8"?>
   <xsl:stylesheet version="1.0"
           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:fn="http://www.w3.org/2005/xpath-functions">
   
           <xsl:output method="xml" omit-xml-declaration="no"
                   indent="yes" />
   
           <xsl:param name="queryparam1" />
           <xsl:param name="javaInfo" />
   
           <xsl:template match="/ObjectNode">
                   <xsl:element name="xml">
                           <xsl:element name="header">
                                   <xsl:element name="queryparam1">
                                           <xsl:value-of select='$queryparam1' />
                                   </xsl:element>
                                   <xsl:element name="jvm">
                                           <xsl:value-of select='$javaInfo' />
                                   </xsl:element>
                           </xsl:element>
                           <xsl:element name="body">
                                   <xsl:copy-of select="./*[1]"/>
                           </xsl:element>
                   </xsl:element>
           </xsl:template>
   
           <xsl:template match="/fn:map">
                   <xsl:element name="xml">
                           <xsl:element name="pippo">
                                   <xsl:value-of select='./fn:string[@key="pippo"]' />
                           </xsl:element>
                           <xsl:element name="queryparam1">
                                   <xsl:value-of select='$queryparam1' />
                           </xsl:element>
                           <xsl:element name="jvm">
                                   <xsl:value-of select='$javaInfo' />
                           </xsl:element>
                   </xsl:element>
           </xsl:template>
   
   </xsl:stylesheet>
   `
   
   This is the command to start it up: 
   
   `kamel run json2xml-3-native.yaml --dev
   
   This is the only error that I see in the operator log:
   
   `{
   	"level": "error",
   	"ts": 1680865949.0255744,
   	"msg": "Reconciler error",
   	"controller": "integration-controller",
   	"controllerGroup": "camel.apache.org",
   	"controllerKind": "Integration",
   	"Integration": {
   		"name": "json2xml-3-native",
   		"namespace": "default"
   	},
   	"namespace": "default",
   	"name": "json2xml-3-native",
   	"reconcileID": "80353b0b-274f-434e-b340-008dc15d16db",
   	"error": "error during trait customization: unable tofind integration container: json2xml-3-native",
   	"errorVerbose": "unable to find integration container: json2xml-3-native\nerror during trait customization\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:59\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:114\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:361\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:121\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/cont
 roller.go:320\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234\nruntime.goexit\n\truntime/asm_amd64.s:1571",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:326\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234"
   }`
   
   If I remove this trait from the yaml: # camel-k: trait=quarkus.package-type=native it works just fine.
   I checked that the two dependencies listed are labeled as supporting native builds.
   Thank you very much everyone!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490320601

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4200: Failure to deploy as native

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490199248

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490137943

   Hi @robertofabrizi, the timeout is tuned automatically when you're building in native mode to take into account the longer time required to build aot. Now, I think the problem you're facing is a limited memory on your local cluster, given that, a simple native build requires at least 8 GB. If you're running minikube, then, try to create a new cluster running `minikube start --memory 8g`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490301314

   > 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] github-actions[bot] closed issue #4200: Failure to deploy as native

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4200: Failure to deploy as native
URL: https://github.com/apache/camel-k/issues/4200


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490262486

   > 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"`.
   
   Sadly it didn't help :-( 
   
   ```
   {"level":"info","ts":1680180734.7976863,"logger":"camel-k.maven.build","msg":"Finished generating 'camel-k-integration-1.12.0-runner' in 25m 38s."}
   {"level":"info","ts":1680180736.1648357,"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"}
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490352027

   > 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.
   
   These are the versions:
   `# Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.19.0-35-generic x86_64)
   
   kubectl version
   Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-15T13:40:17Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}
   Kustomize Version: v4.5.7
   Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-15T13:33:12Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}
   
   kamel version
   Camel K Client 1.12.0
   
   kn version
   Version:      v1.9.2
   Build Date:   2023-03-23 12:39:22
   Git Revision: ffbb229e
   Supported APIs:
   * Serving
     - serving.knative.dev/v1 (knative-serving v1.9.0)
   * Eventing
     - sources.knative.dev/v1 (knative-eventing v1.9.5)
     - eventing.knative.dev/v1 (knative-eventing v1.9.5)
   
   istioctl version
   client version: 1.17.1
   control plane version: 1.17.1
   data plane version: 1.17.1 (9 proxies)
   service@ipaas-master:~/istio-1.17.1/bin$
   
   cat hello.groovy
   from('timer:tick?period=3000').setBody().constant('Hello world from Camel K').to('log:info')
   
   kamel run  -t builder.properties="quarkus.native.native-image-xmx=16g" -t builder.verbose=true --trait=quarkus.package-type=native hello.groovy --dev`
   
   How can I help you with the reproducer? Sorry I'm not too expect on it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] github-actions[bot] commented on issue #4200: Failure to deploy as native

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1636580575

   This issue has been automatically marked as stale due to 90 days of inactivity.
   It will be closed if no further activity occurs within 15 days.
   If you think that’s incorrect or the issue should never stale, please simply write any comment.
   Thanks for your contributions!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1501880525

   @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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490210514

   Thank you @gansheer , is there a place where I can get more insight on the available traits and options like the one you mentioned? I couldn't seem to find it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1494643926

   @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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1494640228

   @essobedo Can I help you more in trying to debug the issue? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1501822487

   @squakez Thanks for the info and happy Easter! That's too bad, for the swiss knife of integration (or at least the most modern version of it), not being able to cover the integration use case with legacy systems is a big gap. All in all my main worry is that in both these very different failures to build as native, in neither case the error messages were of any help in troubleshooting the reasons of the failure.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] essobedo commented on issue #4200: Failure to deploy as native

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490330075

   +1 for a reproducer because in the case of an OOME, IIRC, we usually get an exit code 137 which doesn't seem to be the case here


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490388312

   I asked the guy that provisioned the vm to me, he says that all he did was to add the repo https://packages.cloud.google.com/apt/dists/kubernetes-xenial and launch the install via apt install -y kubelet kubeadm kubectl


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4200: Failure to deploy as native

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1495720873

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4200: Failure to deploy as native

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490256197

   For the traits you can find them in the [camel-k documentation](https://camel.apache.org/camel-k/next/traits/traits.html). This builder trait essentially allows you to add properties to be used at build time. 
   
   For the builder options you can add the answer is a little more tricky, there is none that I know of. Camel-k uses a the camel-quarkus runtime, as such under the hood we are building an application based on quarkus framework. That means the behavior of the build will be the one of a quarkus app with custom adaptation from camel-quarkus. I would suggest reading what the quarkus documentation about [the native builds](https://quarkus.io/guides/building-native-image) while not forgetting this is a [camel-quarkus application](https://camel.apache.org/camel-quarkus/next/index.html).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] mertdotcc commented on issue #4200: Failure to deploy as native

Posted by "mertdotcc (via GitHub)" <gi...@apache.org>.
mertdotcc commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490160385

   > given that, a simple native build requires at least 8 GB
   
   Is this confirmed? I mean, I am not arguing your point. I usually give my operator at least 8 gigs with an upper limit of 12 gigs. But the documentation [says](https://github.com/apache/camel-k/blob/main/docs/modules/traits/pages/quarkus.adoc) 4Gb is required. If you are saying that "not giving 8Gb is the problem" then maybe we should change the docs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490176821

   > Hi @robertofabrizi, the timeout is tuned automatically when you're building in native mode to take into account the longer time required to build aot. Now, I think the problem you're facing is a limited memory on your local cluster, given that, a simple native build requires at least 8 GB. If you're running minikube, then, try to create a new cluster running `minikube start --memory 8g`.
   
   Thank you @squakez , I'm not running minikube but I can confirm that the worker node where the build happens is running with 16gb of ram, most of it free, I've seen the free ram drop down to 100 mb while the operator is building the native binary (which is the helloworld 1 liner, so I can't imagine what would happen if I try to build a real app).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] robertofabrizi commented on issue #4200: Failure to deploy as native

Posted by "robertofabrizi (via GitHub)" <gi...@apache.org>.
robertofabrizi commented on issue #4200:
URL: https://github.com/apache/camel-k/issues/4200#issuecomment-1490305571

   > > 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).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org