Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10515

[camel-k] Unable to download dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • fuse-7.3
    • Camel, Fuse Online, Prod
    • None
    • % %

      camel-k ./kamel install --camel-version 2.23.1 
      #patch operator to use CR3 PROD build 
      oc edit deployment camel-k-operator
      
      pache.org/v1alpha1","kind":"IntegrationContext","ns":"myproject","name":"spring-boot"}
      {"level":"info","ts":1555329474.049951,"logger":"camel-k.trait","msg":"Apply trait: camel"}
      {"level":"info","ts":1555329474.0505083,"logger":"camel-k.trait","msg":"Apply trait: builder"}
      {"level":"info","ts":1555329474.0505178,"logger":"camel-k.trait","msg":"Apply trait: springboot"}
      {"level":"info","ts":1555329474.0505254,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
      {"level":"info","ts":1555329474.0505724,"logger":"camel-k.builder","msg":"submitting request: {C:0xc420eb9320 Catalog:0xc4207ca9f0 RuntimeVersion:0.3.2.fuse-730015-redhat-00002 Meta:{Name:spring-boot GenerateName: Namespace:myproject SelfLink:/apis/camel.apache.org/v1alpha1/namespaces/myproject/integrationcontexts/spring-boot UID:aaaa38f8-5f75-11e9-b1d8-5254008f2999 ResourceVersion:38226 Generation:1 CreationTimestamp:2019-04-15 11:57:39 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[camel.apache.org/context.type:platform app:camel-k camel.apache.org/context.created.by.kind:Operator camel.apache.org/context.created.by.name:camel-k-operator] Annotations:map[] OwnerReferences:[] Initializers:nil Finalizers:[] ClusterName:} Platform:{Cluster:OpenShift Profile:OpenShift Build:{PublishStrategy:S2I CamelVersion:2.23.1 RuntimeVersion:0.3.2.fuse-730015-redhat-00002 BaseImage:fuse7/fuse-java-openshift:1.3 Properties:map[] LocalRepository:/tmp/artifacts/m2 Repositories:[] Registry:{Insecure:false Address: Secret: Organization:} Timeout:{Duration:5m0s}} Resources:{Contexts:[]} Traits:map[]} Dependencies:[runtime:jvm runtime:spring-boot camel:core] Repositories:[] Steps:[generate/spring-boot@10 project/inject-dependencies@11 project/sanitize-dependencies@12 build/compute-dependencies@20 packager/incremental@30 publisher/s2i@40 initialize/spring-boot@0 build/compute-boot-dependencies@21] BuildDir: Image: Resources:[]}"}
      {"level":"info","ts":1555329474.0505953,"logger":"camel-k.controller.integrationcontext","msg":"Build submitted","request-namespace":"myproject","request-name":"spring-boot","api-version":"camel.apache.org/v1alpha1","kind":"IntegrationContext","ns":"myproject","name":"spring-boot"}
      [INFO] Scanning for projects...
      [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/camel/camel-bom/2.23.1/camel-bom-2.23.1.pom
      [WARNING] Failed to create parent directories for tracking file /tmp/artifacts/m2/org/apache/camel/camel-bom/2.23.1/camel-bom-2.23.1.pom.lastUpdated
      [ERROR] [ERROR] Some problems were encountered while processing the POMs:
      [ERROR] Non-resolvable import POM: Could not transfer artifact org.apache.camel:camel-bom:pom:2.23.1 from/to central (https://repo.maven.apache.org/maven2): /tmp/artifacts/m2/org/apache/camel/camel-bom/2.23.1/camel-bom-2.23.1.pom.part.lock (No such file or directory) @ line 9, column 19
      [ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-core:jar is missing. @ line 31, column 17
       @ 
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   
      [ERROR]   The project org.apache.camel.k.integration:camel-k-integration:1.0.0.fuse-730029 (/tmp/builder-869178263/maven/pom.xml) has 2 errors
      [ERROR]     Non-resolvable import POM: Could not transfer artifact org.apache.camel:camel-bom:pom:2.23.1 from/to central (https://repo.maven.apache.org/maven2): /tmp/artifacts/m2/org/apache/camel/camel-bom/2.23.1/camel-bom-2.23.1.pom.part.lock (No such file or directory) @ line 9, column 19 -> [Help 2]
      [ERROR]     'dependencies.dependency.version' for org.apache.camel:camel-core:jar is missing. @ line 31, column 17
      [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] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
      {"level":"info","ts":1555329476.2031507,"logger":"camel-k.builder","msg":"step failed with error: failure while determining classpath: exit status 1","step":"build/compute-dependencies","phase":20,"context":"kotlin"}
      
      oc rsh camel-k-operator-65ffbbc4f7-5l5xg
      sh-4.2$ ls -la /tmp/artifacts/m2/org/apache/camel/  
      total 0
      drwxr-xr-x.  3 root root  15 Apr 10 18:30 .
      drwxr-xr-x.  3 root root  19 Apr 10 18:30 ..
      drwxr-xr-x. 16 root root 520 Apr 10 18:30 k
      sh-4.2$ whoami
      whoami: cannot find name for user ID 1000140000
      

      It seems that m2 directory is owned by root user (so user 1000140000 do not have permissions to download artifacts)

      I tried to reproduce it on community build and it was working as expected:

      ./kamel version 
      Camel K Client 0.3.2
      
      oc rsh camel-k-operator-695795c89d-vnlqv 
      sh-4.2$ ls -la /tmp/artifacts/m2/org/apache/camel/ 
      total 0
      drwxr-xr-x. 7 1000140000 root  83 Apr 15 12:04 .
      drwxr-xr-x. 7 1000140000 root  76 Apr 15 12:04 ..
      drwxr-xr-x. 3 1000140000 root  20 Apr 15 12:04 camel
      drwxr-xr-x. 3 1000140000 root  20 Apr 15 12:04 camel-bom
      drwxr-xr-x. 3 1000140000 root  20 Apr 15 12:04 camel-core
      drwxr-xr-x. 3 1000140000 root  20 Apr 15 12:04 camel-parent
      drwxr-xr-x. 7 1000140000 root 150 Apr 15 12:04 k
      

            opiske Otavio Piske
            jbouska@redhat.com Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: