sully6768 commented on issue #654: Cannot load Knative configuration from file or env variable URL: https://github.com/apache/camel-k/issues/654#issuecomment-522682368 Here are the logs: [printer-7c659d566f-55jtc-integration.log](https://github.com/apache/camel-k/files/3516990/printer-7c659d566f-55jtc-integration.log) Steps: OCP 4.1.8 installed on AWS I logged into the OCP console and installed the Knative Server and Event operators. Afterwards, I created the message-channel and the words-channel in-memory channels using the Knative Event Operator in the console. I then installed the Camel-K CRDs `./kamel install --cluster-setup` I did this because I wasn't sure which project to install the two message channels. I then created the user bob as a basic user `oc adm policy add-role-to-user basic-user bob` After logging in as the `bob` user I created the `camel-k-project` and ran the operator install in that project: `oc new-project camel-k-project` `./kamel install` After that deployed I ran the basic sample install which worked corectly. Then I tried to install the knative printer.groovy file as instructed: `./kamel run examples/knative/printer.groovy` This is when the error was thrown: `Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[knative:channel/words] -> [ConvertBodyTo[... because of Failed to resolve endpoint: knative://channel/words due to: Cannot load Knative configuration from file or env variable at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:100) at org.apache.camel.impl.DefaultModel.start(DefaultModel.java:346) at org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:320) at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:313) at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:292) at org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions(AbstractModelCamelContext.java:330) at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2555) at org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2387) at org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2404) at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2385) at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:97) at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2296) at org.apache.camel.main.Main.doStart(Main.java:117) at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:97) at org.apache.camel.main.MainSupport.run(MainSupport.java:196) at org.apache.camel.k.main.ApplicationRuntime.run(ApplicationRuntime.java:70) at org.apache.camel.k.main.Application.main(Application.java:44) Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: knative://channel/words due to: Cannot load Knative configuration from file or env variable at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:773) at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55) at org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114) at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:334) at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:95) ... 16 more Caused by: java.lang.IllegalStateException: Cannot load Knative configuration from file or env variable at org.apache.camel.component.knative.KnativeComponent.getKnativeConfiguration(KnativeComponent.java:129) at org.apache.camel.component.knative.KnativeComponent.createEndpoint(KnativeComponent.java:101) at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:199) at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:725) ... 20 more`
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
