Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-590

Fix and align grpc dependencies version on LTS 2021

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.3
    • Component/s: AI Nuxeo Services

      Description

      • Align ai core master branch on NXP-31200

      Bug ticket: NXP-31392

      Description:

      NXP-31200 creates a dependency conflict with different versions of the grpc libraries (1.28.0 for the platform and 1.32.2 for the google vision client)

      nuxeo_1          | 2022-11-10T05:58:25,795 WARN  [ai/gcp-imageProperties_ai-images_ai-images-enrichment-inPool-00,in:2,inCheckpoint:2,out:0,lastRead:1668059831205,lastTimer:0,wm:218635936954843137,loop:3017,checkpoint] [org.nuxeo.ai.enrichment.EnrichingStreamProcessor] Enrichment error (gcp.imageProperties) for record: Record{watermark=218635946760601600, wmDate=2022-11-10 05:58:16.550, flags=[DEFAULT], key='209159f9-8992-4c8d-99b4-414ab7b8a8dd', data.length=481, data="{"blobTypes":{"FullHD":"img"},"blobs":{"FullHD":{"mimeType":"image/jpeg","encoding":null,"digest":"49e612e6e1603296152106391908"}
      nuxeo_1          | java.util.ServiceConfigurationError: io.grpc.NameResolverProvider: io.grpc.grpclb.SecretGrpclbNameResolverProvider$Provider Unable to get public no-arg constructor
      nuxeo_1          |      at java.util.ServiceLoader.fail(ServiceLoader.java:582) ~[?:?]
      nuxeo_1          |      at java.util.ServiceLoader.getConstructor(ServiceLoader.java:673) ~[?:?]
      nuxeo_1          |      at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1233) ~[?:?]
      nuxeo_1          |      at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265) ~[?:?]
      nuxeo_1          |      at java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300) ~[?:?]
      nuxeo_1          |      at java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385) ~[?:?]
      nuxeo_1          |      at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:67) ~[grpc-api-1.32.2.jar:1.32.2]
      nuxeo_1          |      at io.grpc.NameResolverRegistry.getDefaultRegistry(NameResolverRegistry.java:101) ~[grpc-api-1.32.2.jar:1.32.2]
      nuxeo_1          |      at io.grpc.internal.AbstractManagedChannelImplBuilder.<init>(AbstractManagedChannelImplBuilder.java:107) ~[grpc-core-1.28.0.jar:1.28.0]
      nuxeo_1          |      at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.<init>(NettyChannelBuilder.java:136) ~[grpc-netty-shaded-1.28.0.jar:1.28.0]
      nuxeo_1          |      at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.<init>(NettyChannelBuilder.java:131) ~[grpc-netty-shaded-1.28.0.jar:1.28.0]
      nuxeo_1          |      at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.forAddress(NettyChannelBuilder.java:117) ~[grpc-netty-shaded-1.28.0.jar:1.28.0]
      nuxeo_1          |      at io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider.builderForAddress(NettyChannelProvider.java:37) ~[grpc-netty-shaded-1.28.0.jar:1.28.0]
      nuxeo_1          |      at io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider.builderForAddress(NettyChannelProvider.java:23) ~[grpc-netty-shaded-1.28.0.jar:1.28.0]
      nuxeo_1          |      at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39) ~[grpc-api-1.32.2.jar:1.32.2]
      nuxeo_1          |      at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:280) ~[gax-grpc-1.60.0.jar:1.60.0]
      nuxeo_1          |      at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.access$1600(InstantiatingGrpcChannelProvider.java:71) ~[gax-grpc-1.60.0.jar:1.60.0]
      nuxeo_1          |      at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider$1.createSingleChannel(InstantiatingGrpcChannelProvider.java:210) ~[gax-grpc-1.60.0.jar:1.60.0]
      nuxeo_1          |      at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:72) ~[gax-grpc-1.60.0.jar:1.60.0]
      nuxeo_1          |      at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:217) ~[gax-grpc-1.60.0.jar:1.60.0]
      nuxeo_1          |      at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:200) ~[gax-grpc-1.60.0.jar:1.60.0]
      nuxeo_1          |      at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:169) ~[gax-1.60.0.jar:1.60.0]
      nuxeo_1          |      at com.google.cloud.vision.v1.stub.GrpcImageAnnotatorStub.create(GrpcImageAnnotatorStub.java:117) ~[google-cloud-vision-1.100.2.jar:1.100.2]
      nuxeo_1          |      at com.google.cloud.vision.v1.stub.ImageAnnotatorStubSettings.createStub(ImageAnnotatorStubSettings.java:156) ~[google-cloud-vision-1.100.2.jar:1.100.2]
      nuxeo_1          |      at com.google.cloud.vision.v1.ImageAnnotatorClient.<init>(ImageAnnotatorClient.java:136) ~[google-cloud-vision-1.100.2.jar:1.100.2]
      nuxeo_1          |      at com.google.cloud.vision.v1.ImageAnnotatorClient.create(ImageAnnotatorClient.java:117) ~[google-cloud-vision-1.100.2.jar:1.100.2]
      nuxeo_1          |      at org.nuxeo.ai.gcp.AIGoogleServiceImpl.getOrCreateClient(AIGoogleServiceImpl.java:81) ~[nuxeo-ai-gcp-core-3.5.2.jar:?]
      

      Content of the nxserver lib directory

      -rw-rw-r-- 1 nuxeo nuxeo   228400 Nov 10 05:43 grpc-api-1.32.2.jar
      -rw-rw-r-- 1 nuxeo root     14495 Oct  5 01:13 grpc-auth-1.28.0.jar
      -rw-rw-r-- 1 nuxeo nuxeo    30569 Nov 10 05:43 grpc-context-1.32.2.jar
      -rw-rw-r-- 1 nuxeo root    588076 Oct  5 01:13 grpc-core-1.28.0.jar
      -rw-rw-r-- 1 nuxeo nuxeo   178513 Nov 10 05:43 grpc-grpclb-1.32.2.jar
      -rw-rw-r-- 1 nuxeo root   7084268 Oct  5 01:13 grpc-netty-shaded-1.28.0.jar
      -rw-rw-r-- 1 nuxeo nuxeo     5179 Nov 10 05:43 grpc-protobuf-1.32.2.jar
      -rw-rw-r-- 1 nuxeo nuxeo     7628 Nov 10 05:43 grpc-protobuf-lite-1.32.1.jar
      -rw-rw-r-- 1 nuxeo root     47564 Oct  5 01:13 grpc-stub-1.28.0.jar
      

      content of the nuxeo-ai gcp package

      -rw-rw-r-- 1 nuxeo nuxeo  305826 Nov 10 05:42 grpc-alts-1.32.2.jar
      -rw-rw-r-- 1 nuxeo nuxeo  228400 Nov 10 05:42 grpc-api-1.32.2.jar
      -rw-rw-r-- 1 nuxeo nuxeo   30569 Nov 10 05:42 grpc-context-1.32.2.jar
      -rw-rw-r-- 1 nuxeo nuxeo  178513 Nov 10 05:42 grpc-grpclb-1.32.2.jar
      -rw-rw-r-- 1 nuxeo nuxeo    5179 Nov 10 05:42 grpc-protobuf-1.32.2.jar
      -rw-rw-r-- 1 nuxeo nuxeo    7628 Nov 10 05:42 grpc-protobuf-lite-1.32.1.jar
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vpasquier Vladimir Pasquier
                Reporter:
                vpasquier Vladimir Pasquier
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: