Re: [I] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-2022437211 More investigation about this in https://github.com/apache/camel-k/issues/5292 -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler closed issue #5095: Basic example fails on Docker Desktop MacOS URL: https://github.com/apache/camel-k/issues/5095 -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-2018169269 # Testing the upgrade scenario ## On AMD64 ``` git checkout v2.2.0 make images go build ./cmd/kamel kamel install --olm=false kubectl describe pod -l app=camel-k kubectl logs -f --tail=400 -l app=camel-k cd $HOME/git/camel-k-examples/01-basic kamel run Basic.java --dev ... Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java. ``` Now the upgrade https://camel.apache.org/camel-k/next/contributing/upgrade.html ``` git checkout ghi5238 make images go build ./cmd/kamel kamel install --force --olm=false Condition "IntegrationPlatformAvailable" is "True" for Integration basic: camel/camel-k Integration "basic" in phase "Initialization" Condition "TraitInfo" is "True" for Integration basic: explicitly disabled by the user Integration "basic" in phase "Building Kit" Condition "IntegrationKitAvailable" is "False" for Integration basic: creating a new integration kit Integration Kit "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Build Submitted" [2] 2024-03-25 14:19:00,696 INFO [info] (Camel (camel-1) thread #1 - timer://java) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java.] Build "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Scheduling" Build "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Pending" Build "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Running" Integration Kit "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Build Running" ``` It seems that the upgrade works fine with ``` -Djib.from.platforms=linux/amd64,linux/arm64 ``` -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
squakez commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-2017703069 Unfortunately it's a breaking compatibility change. See: https://github.com/apache/camel-k/pull/5246#issuecomment-2009270960 - mind that what it works for you may be disruptive for another running production environment. -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-2017697847 I think we need to reopen this. The [basic example](https://github.com/apache/camel-k-examples/tree/main/01-basic) ``` kamel run Basic.java --dev ``` does no longer work an ARM64 without defining additional `-t builder.platforms` settings. IMHO, it should be possible to detect the current platform and configure the build accordingly. Is it really the (most common) case, that `kamel run Basic.java` needs to build something for a platform that isn't the current one? -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler opened a new issue, #5095: URL: https://github.com/apache/camel-k/issues/5095 ### What happened? https://camel.apache.org/camel-k/2.2.x/running/running.html ``` $ kamel run hello.groovy Integration "hello" created $ kamel logs hello Integration 'hello' is at: Error ... Integration 'hello' is now running. Showing log ... 2024-01-24T11:25:45+01:00ERROR camel-k.scraper.pod error caught during log scraping{"name": "hello-6dbfbbc959-hfjq5", "error": "no state change after 30 seconds for pod hello-6dbfbbc959-hfjq5"} github.com/apache/camel-k/v2/pkg/util/log.Logger.Error github.com/apache/camel-k/v2/pkg/util/log/log.go:81 github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*PodScraper).handleAndRestart github.com/apache/camel-k/v2/pkg/util/kubernetes/log/pod_scraper.go:122 github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*PodScraper).doScrape github.com/apache/camel-k/v2/pkg/util/kubernetes/log/pod_scraper.go:85 2024-01-24T11:25:45+01:00DEBUG camel-k.scraper.pod Retrying to scrape pod logs in 5.00 seconds... {"name": "hello-6dbfbbc959-hfjq5"} ``` ### Steps to reproduce _No response_ ### Relevant log output _No response_ ### Camel K version _No response_ -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler closed issue #5095: Basic example fails on Docker Desktop MacOS URL: https://github.com/apache/camel-k/issues/5095 -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1997531129 Out-of-date -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
squakez commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1927067954 ``` 2024-01-26 11:48:13 {"level":"info","ts":"2024-01-26T10:48:13Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","reason":"Error","error-message":"Back-off pulling image \"host.docker.internal:5000/default/camel-k-kit-cmoe5nh9lrbs73afkkig@sha256:18d8f7b8ef18f8d166f51c2edac13ce116cfbfb1d23746aa4265afbd14002931\""} ``` I think the problem is with Kubernetes platform, which is not able to pull the image for some reason. Basically, Camel K is doing his job by building the container image and pushing it to the registry. Then, when the `Deployment` is created, Kubernetes cluster is not able to pull from container registry. Make sure to follow the instructions at https://docs.docker.com/registry/#deploy-a-plain-http-registry -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
christophd commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1926898128 Instead of getting the local operator to get working have you tried to install Camel K on a local Minikube or Kind cluster already? This is my usual way of running Camel K locally with installing the operator on a Minikube cluster as described in https://camel.apache.org/camel-k/2.1.x/installation/platform/minikube.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-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Basic example fails on Docker Desktop MacOS [camel-k]
claudio4j commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1926897130 I see the following error message ``` Could not find a platform bound to this Build","request-namespace":"default","request-name":"kit-cmoe5nh9lrbs73afkkig", "error":"IntegrationPlatform.camel.apache.org \"camel-k\" not found" ``` What does the command returns `kubectl get -A IntegrationPlatform` ? -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
christophd commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1926890977 When running the Camel K operator locally in debug mode on MacOS please make sure to set the environment variable `MAVEN_WRAPPER=false`. Usually there is a Maven wrapper bundled into the operator image but when running the operator locally you may not have this wrapper in the right place on your machine. When the wrapper envar is disabled the operator uses the Maven binary that is set in `MAVEN_CMD` environment variable. So you may need to set this too pointing to your local Maven installation binary or simply set this to `mvn` when it is on your `$PATH` I think this resolves some issues that the integration kit is not being built properly when using a local operator. -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1926749223 Folks, how would I get started to debug this? I have Docker Engine on MacOs + GoLand -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1911857093 Here you go ... ``` 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"maxprocs: Leaving GOMAXPROCS=[8]: CPU quota undefined"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Go Version: go1.21.0"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Go OS/Arch: linux/amd64"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Operator Version: 2.2.0"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Default Runtime Version: 3.2.3"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Git Commit: c6a9348d8467f68800dabb7c845a411765fad8e3"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Operator ID: camel-k"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"controller-runtime.metrics","msg":"Metrics server is starting to listen","addr":":8080"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Configuring manager"} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k","msg":"KnativeService resources are not installed in the cluster. You can't use Knative features. If you install Knative Serving resources after the\n\t\tCamel K operator, make sure to apply the required RBAC privileges and restart the Camel K Operator Pod to be able to watch for\n\t\tCamel K managed Knative Services."} 2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Installing operator resources"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"Starting the manager"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting server","kind":"health probe","addr":"[::]:8081"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"starting server","path":"/metrics","kind":"metrics","addr":"[::]:8080"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"attempting to acquire leader lease default/camel-k-lock..."} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"successfully acquired lease default/camel-k-lock"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog","source":"kind source: *v1.CamelCatalog"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Integration"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.IntegrationKit"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","source":"kind source: *v1.Build"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Pipe"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integrationplatform-controller","source":"kind source: *v1.IntegrationPlatform"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1alpha1.KameletBinding"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Deployment"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.CronJob"} 2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting
Re: [I] Basic example fails on Docker Desktop MacOS [camel-k]
christophd commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1909720788 > What do you see in the operator logs? yes, it would be interesting to see what is in the operator logs -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
gansheer commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1908432255 Please don't hesitate to check the troubleshooting documentation to know what to look for: https://camel.apache.org/camel-k/2.2.x/troubleshooting/troubleshooting.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-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Basic example fails on Docker Desktop MacOS [camel-k]
oscerd commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1908383424 What do you see in the operator logs? -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1908376248 Yes, I have. The registry is running and camel-k installed with no problem ``` $ kamel install --registry host.docker.internal:5000 --registry-insecure true OLM is not available in the cluster. Fallback to regular installation. Camel K installed in namespace default ``` -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1908328221 I see ... ``` kubectl get pods --watch NAMEREADY STATUS RESTARTS AGE camel-k-operator-7989475884-drl6k 1/1 Running0 6m46s hello-6dbfbbc959-vr5b8 0/1 ImagePullBackOff 0 6m21s ``` -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
squakez commented on issue #5095: URL: https://github.com/apache/camel-k/issues/5095#issuecomment-1907882292 Thanks for reporting. Can you please verify if the Pod is started and working correctly? or is it the CLI which is failing to scrape the Pod log? -- 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] Basic example fails on Docker Desktop MacOS [camel-k]
tdiesler opened a new issue, #5095: URL: https://github.com/apache/camel-k/issues/5095 ### What happened? https://camel.apache.org/camel-k/2.2.x/running/running.html ``` $ kamel run hello.groovy Integration "hello" created $ kamel logs hello Integration 'hello' is at: Error ... Integration 'hello' is now running. Showing log ... 2024-01-24T11:25:45+01:00ERROR camel-k.scraper.pod error caught during log scraping{"name": "hello-6dbfbbc959-hfjq5", "error": "no state change after 30 seconds for pod hello-6dbfbbc959-hfjq5"} github.com/apache/camel-k/v2/pkg/util/log.Logger.Error github.com/apache/camel-k/v2/pkg/util/log/log.go:81 github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*PodScraper).handleAndRestart github.com/apache/camel-k/v2/pkg/util/kubernetes/log/pod_scraper.go:122 github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*PodScraper).doScrape github.com/apache/camel-k/v2/pkg/util/kubernetes/log/pod_scraper.go:85 2024-01-24T11:25:45+01:00DEBUG camel-k.scraper.pod Retrying to scrape pod logs in 5.00 seconds... {"name": "hello-6dbfbbc959-hfjq5"} ``` ### Steps to reproduce _No response_ ### Relevant log output _No response_ ### Camel K version _No response_ -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org