Re: [I] Native build failed directly [camel-k]

2024-04-08 Thread via GitHub


squakez commented on issue #5080:
URL: https://github.com/apache/camel-k/issues/5080#issuecomment-2042250308

   Closing as waiting for feebdack. Please, reopen if still facing any 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-unsubscr...@camel.apache.org

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



Re: [I] Native build failed directly [camel-k]

2024-04-08 Thread via GitHub


squakez closed issue #5080: Native build failed directly
URL: https://github.com/apache/camel-k/issues/5080


-- 
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-unsubscr...@camel.apache.org

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



Re: [I] Native build failed directly [camel-k]

2024-04-05 Thread via GitHub


squakez commented on issue #5080:
URL: https://github.com/apache/camel-k/issues/5080#issuecomment-2039590035

   Waiting for some feedback before closing this.


-- 
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-unsubscr...@camel.apache.org

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



Re: [I] Native build failed directly [camel-k]

2024-01-18 Thread via GitHub


squakez commented on issue #5080:
URL: https://github.com/apache/camel-k/issues/5080#issuecomment-1899885012

   That's really strange. Do a jvm build run correctly? Could you try to build 
any java Quarkus native application and try to deploy to the cluster manually? 
I have the feeling there is some incompatibilities between the hardware your 
cluster is running and the Quarkus logic. Also, just for the sake of testing, 
you can try to run the same experiment with Camel K version 2.2 that was 
released last week, although I think it's not going to change things as it 
seems a Quarkus runtime problem. 


-- 
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-unsubscr...@camel.apache.org

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



Re: [I] Native build failed directly [camel-k]

2024-01-18 Thread via GitHub


pai911 commented on issue #5080:
URL: https://github.com/apache/camel-k/issues/5080#issuecomment-1898952263

   hi @squakez !
   
   thank you for the ideas.
   
   I tried to reset it, and tried to run it again
   
   ```
   ╰─ kc get pod
   NAME   READY   STATUS  RESTARTS  
AGE
   camel-k-kit-cmkm65eue1pcq29mcr9g-builder   0/1 Completed   0 
4m38s
   camel-k-operator-cb5498fc6-gqxz8   1/1 Running 0 
6d8h
   sample-76d85b7d7c-dqsqh0/1 Error   1 (13s ago)   
20s
   ```
   
   The builder looks fine?
   ```
   ╰─ klogs camel-k-kit-cmkm65eue1pcq29mcr9g-builder
   Defaulted container "spectrum" out of: spectrum, builder (init), 
quarkus-native (init), package (init)
   
{"level":"info","ts":"2024-01-18T17:46:45Z","logger":"camel-k.builder","msg":"Go
 Version: go1.21.0"}
   
{"level":"info","ts":"2024-01-18T17:46:45Z","logger":"camel-k.builder","msg":"Go
 OS/Arch: linux/amd64"}
   
{"level":"info","ts":"2024-01-18T17:46:45Z","logger":"camel-k.builder","msg":"Camel
 K Version: 2.1.0"}
   
{"level":"info","ts":"2024-01-18T17:46:45Z","logger":"camel-k","msg":"Running 
spectrum task in context directory: /builder/kit-cmkm65eue1pcq29mcr9g/context"}
   
{"level":"info","ts":"2024-01-18T17:46:45Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:45 Pulling base image eclipse-temurin:17 
(insecure=false)..."}
   
{"level":"info","ts":"2024-01-18T17:46:46Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:46 Composing layers..."}
   
{"level":"info","ts":"2024-01-18T17:46:48Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:48 Pushing image 
docker-registry.netbase.com/camel/camel-k-kit-cmkm65eue1pcq29mcr9g:4795341470 
(insecure=false)..."}
   
{"level":"info","ts":"2024-01-18T17:46:49Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:49 pushed blob: 
sha256:98812cccdac481871ec89ab18857f93e3418c678a40f73df23f037c41c5a7ff5"}
   
{"level":"info","ts":"2024-01-18T17:46:49Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:49 pushed blob: 
sha256:881ab84beb42b6199af4cf21f398ff51eb0089833249327da5bd8baa5413491e"}
   
{"level":"info","ts":"2024-01-18T17:46:49Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:49 pushed blob: 
sha256:d6bf5e40eff7a834012f418c69173d3ae5deb167f5d1c37b2adb6f05241dbd1a"}
   
{"level":"info","ts":"2024-01-18T17:46:51Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:51 pushed blob: 
sha256:182a4e8ff3be9492478f81d5ad44ec40ac0cf9d8079f38cb4c2e26f0d54e4690"}
   
{"level":"info","ts":"2024-01-18T17:46:51Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:51 pushed blob: 
sha256:c506251a0ae0b836353578bafa8d6aeb266158d3291ba4abbc2f5f8ccda6f742"}
   
{"level":"info","ts":"2024-01-18T17:46:52Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:52 pushed blob: 
sha256:df2fac849a4581b035132d99e203fd83dc65590ea565435a266cb0e14a508838"}
   
{"level":"info","ts":"2024-01-18T17:46:59Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:59 pushed blob: 
sha256:49696fc5bee670a621132170cc87abff7ebafa30c790104b09e33495464fb3ca"}
   
{"level":"info","ts":"2024-01-18T17:46:59Z","logger":"camel-k","msg":"spectrum 
- 2024/01/18 17:46:59 
docker-registry.netbase.com/camel/camel-k-kit-cmkm65eue1pcq29mcr9g:4795341470: 
digest: sha256:54fc53ea2d82f7d86734cc68a2ff350b611600df4ec083b53b1f08dc18d7ef5f 
size: 1245"}
   ```
   
   but the integration pod still failed with the same exception
   
   ```
   ╰─ klogs sample-76d85b7d7c-dqsqh
   java.lang.InternalError: java.lang.reflect.InvocationTargetException
   at com.oracle.svm.core.containers.Metrics.systemMetrics(Metrics.java:67)
   at com.oracle.svm.core.containers.Container.metrics(Container.java:44)
   at com.oracle.svm.core.ContainerInfo.(ContainerInfo.java:34)
   at com.oracle.svm.core.Containers.memoryLimitInBytes(Containers.java:126)
   at com.oracle.svm.core.heap.PhysicalMemory.size(PhysicalMemory.java:92)
   at 
com.oracle.svm.core.graal.snippets.CEntryPointSnippets.initializeIsolate(CEntryPointSnippets.java:362)
   at 
com.oracle.svm.core.JavaMainWrapper$EnterCreateIsolateWithCArgumentsPrologue.enter(JavaMainWrapper.java:387)
   ```
   
   Operator's log
   ```
   
{"level":"info","ts":"2024-01-18T17:42:19Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking
 action 
initialize","request-namespace":"camel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel","name":"camel-k"}
   
{"level":"info","ts":"2024-01-18T17:42:19Z","logger":"camel-k.controller.integrationplatform","msg":"Initializing
 
IntegrationPlatform","request-namespace":"camel","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel","name":"camel-k"}
   
{"level":"info","ts":"2024-01-18T17:42:19Z","logger":"camel-k","msg":"RuntimeVersion
 set to 3.2.0"}
   

Re: [I] Native build failed directly [camel-k]

2024-01-18 Thread via GitHub


squakez commented on issue #5080:
URL: https://github.com/apache/camel-k/issues/5080#issuecomment-1898389300

   I've just tested in a brand new 2.2.0 version local cluster. It works as 
expected for me:
   ```
   [1] 2024-01-18 12:25:32,087 INFO  [io.quarkus] (main) camel-k-integration 
2.2.0 native (powered by Quarkus 3.2.9.Final) started in 0.038s. 
   [1] 2024-01-18 12:25:32,087 INFO  [io.quarkus] (main) Profile prod 
activated. 
   [1] 2024-01-18 12:25:32,087 INFO  [io.quarkus] (main) Installed features: 
[camel-bean, camel-core, camel-java-joor-dsl, camel-k-core, camel-k-runtime, 
camel-kubernetes, camel-timer, cdi, kubernetes-client, 
smallrye-context-propagation, vertx]
   [1] 2024-01-18 12:25:33,086 INFO  [route1] (Camel (camel-1) thread #1 - 
timer://java) Hello Camel from route1
   [1] 2024-01-18 12:25:34,086 INFO  [route1] (Camel (camel-1) thread #1 - 
timer://java) Hello Camel from route1
   ```
   You may try to reset the environment `kamel reset` if by any chance you have 
some dangling broken native image. Also, you may have a look at the [Camel 
Integration troubleshooting 
guideline](https://camel.apache.org/camel-k/next/troubleshooting/troubleshooting.html)
 for more tips on the resources to look.


-- 
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-unsubscr...@camel.apache.org

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



[I] Native build failed directly [camel-k]

2024-01-17 Thread via GitHub


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

   ### What happened?
   
   When deploying a simple route in Java DSL, I kept seeing runtime errors
   
   ```
   ╰─ klogs sample-674657f6d7-lzqtw
   java.lang.InternalError: java.lang.reflect.InvocationTargetException
   at com.oracle.svm.core.containers.Metrics.systemMetrics(Metrics.java:67)
   at com.oracle.svm.core.containers.Container.metrics(Container.java:44)
   at com.oracle.svm.core.ContainerInfo.(ContainerInfo.java:34)
   at com.oracle.svm.core.Containers.memoryLimitInBytes(Containers.java:126)
   at com.oracle.svm.core.heap.PhysicalMemory.size(PhysicalMemory.java:92)
   at 
com.oracle.svm.core.graal.snippets.CEntryPointSnippets.initializeIsolate(CEntryPointSnippets.java:362)
   at 
com.oracle.svm.core.JavaMainWrapper$EnterCreateIsolateWithCArgumentsPrologue.enter(JavaMainWrapper.java:387)
   ```
   
   ### Java Route
   ```
   import org.apache.camel.builder.RouteBuilder;
   
   public class Sample extends RouteBuilder {
 @Override
 public void configure() throws Exception {
 from("timer:tick")
   .log("Hello Camel K!");
 }
   }
   ```
   
   ### Steps to reproduce
   
    Step 1
   ```
   ╰─ kamel run -t quarkus.build-mode=native --trait 
container.request-memory=6Gi --trait container.limit-memory=6Gi Sample.java
   Integration "sample" created
   ```
    Step 2
   ```
   ╰─ kc get pod
   NAME   READY   STATUS RESTARTS 
AGE
   camel-k-operator-cb5498fc6-gqxz8   1/1 Running0
5d16h
   sample-674657f6d7-lzqtw0/1 CrashLoopBackOff   1 (4s ago)   5s
   ```
    Step 3
   ```
   ╰─ klogs sample-674657f6d7-lzqtw
   java.lang.InternalError: java.lang.reflect.InvocationTargetException
   at com.oracle.svm.core.containers.Metrics.systemMetrics(Metrics.java:67)
   at com.oracle.svm.core.containers.Container.metrics(Container.java:44)
   at com.oracle.svm.core.ContainerInfo.(ContainerInfo.java:34)
   at com.oracle.svm.core.Containers.memoryLimitInBytes(Containers.java:126)
   at com.oracle.svm.core.heap.PhysicalMemory.size(PhysicalMemory.java:92)
   at 
com.oracle.svm.core.graal.snippets.CEntryPointSnippets.initializeIsolate(CEntryPointSnippets.java:362)
   at 
com.oracle.svm.core.JavaMainWrapper$EnterCreateIsolateWithCArgumentsPrologue.enter(JavaMainWrapper.java:387)
   ```
   
   ### Relevant log output
   
   ```shell
   
{"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State
 
transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"","phase-to":"Initialization"}
   
{"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"Initializing
 
Integration","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample"}
   
{"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State
 
transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Initialization","phase-to":"Building
 Kit"}
   
{"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State
 
transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Building
 Kit","phase-to":"Deploying"}
   
{"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State
 
transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Deploying","phase-to":"Running"}
   
{"level":"info","ts":"2024-01-18T01:51:04Z","logger":"camel-k.controller.integration","msg":"State
 
transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Running","phase-to":"Error"}
   
{"level":"info","ts":"2024-01-18T01:51:04Z","logger":"camel-k.controller.integration","msg":"Integration
 
error","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","reason":"Error","error-message":"back-off
 10s restarting failed container=integration 
pod=sample-674657f6d7-95kj4_camel(0a45e8ba-ed8a-454c-9867-b0d373e74ad5)"}
   
{"level":"info","ts":"2024-01-18T01:52:16Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding
 is deprecated, please, use v1.Pipe instead\n"}
   ```
   
   
   ### Camel K version
   
   Camel K Client 2.1.0  Camel K Operator 2.1.0


-- 
This is an