Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error build example integration - github.com/apache/camel-k/v2/pkg/util/log.Logger.Errorf #6013

Open
kirillgo opened this issue Dec 26, 2024 · 1 comment
Labels
status/waiting-for-feedback Needs some feedback

Comments

@kirillgo
Copy link

What happened?

I have successfully installed Camel-K v2.5 on Kubernetes v1.29.5 according to the instruction https://camel.apache.org/camel-k/2.5.x/installation/installation.html
It has the Ready status. I applied the itp settings.

But I get a build error when I try to build a standard example integration, renamed to integration1:

kind: Integration
metadata:
  name: integration1
spec:
  sources:
  - content: |
      import org.apache.camel.builder.RouteBuilder;

      public class Test extends RouteBuilder {
          @Override
          public void configure() throws Exception {
              from("timer:java?period=1000")
                  .setBody()
                      .simple("Hello Camel from ${routeId}")
                  .log("${body}");
          }
      }
    name: Test.java

Error

{
  "level": "error",
  "ts": "2024-12-25T18:47:51Z",
  "logger": "camel-k.controller.build",
  "msg": "Build kit-ctm51un8jvrs739itc80 failed: failure while building project: : signal: killed",
  "request-namespace": "camel",
  "request-name": "kit-ctm51un8jvrs739itc80",
  "api-version": "camel.apache.org/v1",
  "kind": "Build",
  "ns": "camel",
  "name": "kit-ctm51un8jvrs739itc80",
  "stacktrace": "github.com/apache/camel-k/v2/pkg/util/log.Logger.Errorf\n\t
github.com/apache/camel-k/v2/pkg/util/log/log.go:66\n
github.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).updateBuildStatus\n\t
github.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:217\n
github.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).runBuild\n\t
github.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:201"
}

camel-k-operator-f48f99656-f456n.logcamel-k-operator-f48f99656-f456n--part.log

Node status

D:\wokspacecamel\camel-k>kubectl get pods
NAME                               READY   STATUS    RESTARTS   AGE
camel-k-operator-f48f99656-f456n   1/1     Running   0          21h

Itp status

D:\wokspacecamel\camel-k>kubectl get itp
NAME      PHASE   BUILD STRATEGY   PUBLISH STRATEGY   REGISTRY ADDRESS             DEFAULT RUNTIME   CAMEL VERSION
camel-k   Ready   routine          Jib                nexus.office.com   3.15.0            4.8.0

Integration status
'''
D:\wokspacecamel\camel-k>kubectl get it
NAME PHASE READY RUNTIME PROVIDER RUNTIME VERSION CATALOG VERSION KIT REPLICAS
integration1 Error False quarkus 3.15.0 3.15.0 kit-ctm5hdf8jvrs739itc90
'''

А similar error is described in #4632. But there was no problem with the standard example.

Steps to reproduce

No response

Relevant log output

{"level":"info","ts":"2024-12-25T19:06:49Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead"}
{"level":"info","ts":"2024-12-25T19:07:41Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"camel","request-name":"test-integration","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"test-integration","phase-from":"","phase-to":"Initialization"}
{"level":"info","ts":"2024-12-25T19:07:41Z","logger":"camel-k.controller.integration","msg":"Initializing Integration","request-namespace":"camel","request-name":"test-integration","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"test-integration"}
{"level":"info","ts":"2024-12-25T19:07:41Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"camel","request-name":"test-integration","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"test-integration","phase-from":"Initialization","phase-to":"Building Kit"}
{"level":"info","ts":"2024-12-25T19:07:51Z","logger":"camel-k.builder","msg":"step failed with error: failure while building project: : signal: killed","step":"github.com/apache/camel-k/v2/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}
{"level":"info","ts":"2024-12-25T19:07:51Z","logger":"camel-k.controller.build","msg":"Build duration 5m0.026122227s","request-namespace":"camel","request-name":"test","build-attempt":5,"build-result":"Error","build-duration":300.026122227,"api-version":"camel.apache.org/v1","kind":"Build","ns":"camel","name":"kit-ctm51un8jvrs739itc80"}
{"level":"error","ts":"2024-12-25T19:07:51Z","logger":"camel-k.controller.build","msg":"Build kit-ctm51un8jvrs739itc80 failed: failure while building project: : signal: killed","request-namespace":"camel","request-name":"kit-ctm51un8jvrs739itc80","api-version":"camel.apache.org/v1","kind":"Build","ns":"camel","name":"kit-ctm51un8jvrs739itc80","stacktrace":"github.com/apache/camel-k/v2/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/v2/pkg/util/log/log.go:66\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).updateBuildStatus\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:217\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:201"}

Camel K version

Camel K Client 2.5.0 Camel K Operator 2.5.0

@kirillgo kirillgo added the kind/bug Something isn't working label Dec 26, 2024
@squakez
Copy link
Contributor

squakez commented Jan 2, 2025

Hello. The error and the build duration point to a build timeout. By default it is set to 5 minutes, you can try to increase it (see IntegrationPlatform spec configuration) or troubleshoot the maven build to understand why it's failing.

@squakez squakez added status/waiting-for-feedback Needs some feedback and removed kind/bug Something isn't working labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/waiting-for-feedback Needs some feedback
Projects
None yet
Development

No branches or pull requests

2 participants