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

kamel --dev stuck when mvn dependencies has problem #911

Closed
jinfengnarvar opened this issue Aug 19, 2019 · 6 comments
Closed

kamel --dev stuck when mvn dependencies has problem #911

jinfengnarvar opened this issue Aug 19, 2019 · 6 comments

Comments

@jinfengnarvar
Copy link

  • Integration code:
import org.apache.camel.builder.RouteBuilder;

public class HelloJava extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        from("timer:tick")
            .setBody()
              .constant("Hello Camel K!")
            .to("log:info");
    }
}
  • kamel command ran:
kamel run -d mvn:com.google.guavax:guava:26.0-jre HelloJava.java --dev

Note the mvn dependency has a typo 'x' in it (on purpose). After a few seconds, kubectl get pods shows the pod building this integration has error'ed and terminated:

$ kubectl get pods
...
camel-k-kit-blde632ijc59bk8j4bug-builder   0/1     Error       0          59s

And the pod log shows it failed:

$ kubectl log camel-k-kit-blde632ijc59bk8j4bug-builder 
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.323 s
[INFO] Finished at: 2019-08-19T18:00:13Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.0.0-M1: Could not find artifact com.google.guavax:guava:jar:26.0-jre in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
...

But now the kamel run cmd is stuck permanently:

$ kamel run -d mvn:com.google.guavax:guava:26.0-jre HelloJava.java --dev
integration "hello-java" created
integration "hello-java" in phase Initialization
integration "hello-java" in phase Building Kit

@lburgazzoli
Copy link
Contributor

It should try a number of time before failing and marking the context as failed, what the status of the kit and build ?

oc get ik
oc get builds.camel.apache.org

@jinfengnarvar
Copy link
Author

k get ik

NAME                       PHASE   TYPE       IMAGE
kit-bla7d52ijc59bk8j4bpg   Ready   platform   10.110.165.2/default/camel-k-kit-bla7d52ijc59bk8j4bpg:925
kit-bla7fliijc59bk8j4bq0   Ready   platform   10.110.165.2/default/camel-k-kit-bla7fliijc59bk8j4bq0:1380
kit-blapapaijc59bk8j4bqg   Ready   platform   10.110.165.2/default/camel-k-kit-blapapaijc59bk8j4bqg:23226
kit-blddgsaijc59bk8j4br0   Error   platform   
kit-blddlqaijc59bk8j4brg   Error   platform   
kit-blddo1qijc59bk8j4bs0   Error   platform   
kit-blddqdiijc59bk8j4bsg   Ready   platform   10.110.165.2/default/camel-k-kit-blddqdiijc59bk8j4bsg:123443
kit-blddr8iijc59bk8j4bt0   Ready   platform   10.110.165.2/default/camel-k-kit-blddr8iijc59bk8j4bt0:123641
kit-blddvhqijc59bk8j4btg   Error   platform   
kit-blde2sqijc59bk8j4bu0   Error   platform   
kit-blde632ijc59bk8j4bug   Error   platform   
kit-blde8e2ijc59bk8j4bv0   Error   platform   
kit-bldedsiijc59bk8j4bvg   Error   platform   
kit-bldehbqijc59bk8j4c00   Error   platform   
kit-bldeiuiijc59bk8j4c0g   Error   platform  

k get builds.camel.apache.org

$ k get builds.camel.apache.org
NAME                       PHASE       AGE     DURATION        ATTEMPTS
kit-bla7d52ijc59bk8j4bpg   Succeeded   4d21h   45.07936856s    
kit-bla7fliijc59bk8j4bq0   Succeeded   4d21h   23.654313415s   
kit-blapapaijc59bk8j4bqg   Succeeded   4d1h    28.871831798s   
kit-blddgsaijc59bk8j4br0   Error       73m     10.249486ms     5
kit-blddlqaijc59bk8j4brg   Error       63m     12.318934ms     5
kit-blddo1qijc59bk8j4bs0   Error       57m     14.047859108s   5
kit-blddqdiijc59bk8j4bsg   Succeeded   55m     19.092160521s   
kit-blddr8iijc59bk8j4bt0   Succeeded   53m     18.049171957s   
kit-blddvhqijc59bk8j4btg   Error       41m     14.969841284s   5
kit-blde2sqijc59bk8j4bu0   Error       35m     12.937687215s   5
kit-blde632ijc59bk8j4bug   Error       28m     8.325443942s    5
kit-blde8e2ijc59bk8j4bv0   Error       23m     8.457304942s    5
kit-bldedsiijc59bk8j4bvg   Error       11m     14.30017211s    5
kit-bldehbqijc59bk8j4c00   Error       3m55s   14.154874494s   5
kit-bldeiuiijc59bk8j4c0g   Error       33s     13.63103897s    5

@jinfengnarvar
Copy link
Author

@lburgazzoli another unrelated questions. is there a mailing list / forum where I can post onboarding questions? I'm reading through https://camel.apache.org/staging/camel-k/ but can't find some of the questions, such as support of private (mvn) artifactory.

@WillemJiang
Copy link
Member

@jinfengnarvar You can use users@camel.apache.org or just post the question through github issue.

@jamesnetherton jamesnetherton self-assigned this Oct 3, 2019
@jamesnetherton jamesnetherton removed their assignment Jun 2, 2020
@lburgazzoli lburgazzoli added the status/waiting-for-feedback Needs some feedback label Jun 5, 2020
@lburgazzoli
Copy link
Contributor

can we close this one ?

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2020

This issue is stale because it has been open 30 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants