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

Reduce logs severity of JWT authentication toward Insight

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.5.11, 3.1.4
    • Fix Version/s: 3.2.0, 2.7.0
    • Component/s: CI/CD

      Description

      We should reduce the severity of those logs from ERROR to WARN:

      2021-07-07T13:00:57,164 ERROR [NuxeoCloudClient] Authentication/Connection issue with Insight cloud                                                                            │
      │ org.nuxeo.client.spi.NuxeoClientRemoteException:                                                                                                                               │
      │     at org.nuxeo.client.NuxeoClient.handleResponse(NuxeoClient.java:317) ~[nuxeo-java-client-3.5.0.jar:3.5.0]                                                                  │
      │     at org.nuxeo.client.NuxeoClient.fetchResponse(NuxeoClient.java:275) ~[nuxeo-java-client-3.5.0.jar:3.5.0]                                                                   │
      │     at org.nuxeo.client.objects.AbstractConnectable.fetchResponse(AbstractConnectable.java:65) ~[nuxeo-java-client-3.5.0.jar:3.5.0]                                            │
      │     at org.nuxeo.client.objects.user.UserManager.fetchCurrentUser(UserManager.java:75) ~[nuxeo-java-client-3.5.0.jar:3.5.0]                                                    │
      │     at org.nuxeo.client.NuxeoClient$Builder.connect(NuxeoClient.java:492) ~[nuxeo-java-client-3.5.0.jar:3.5.0]                                                                 │
      │     at org.nuxeo.ai.sdk.rest.client.InsightClient.connect(InsightClient.java:115) ~[insight-rest-client-1.0.1.jar:?]                                                           │
      │     at org.nuxeo.ai.cloud.NuxeoCloudClient.configureClient(NuxeoCloudClient.java:191) ~[nuxeo-ai-model-2.7.0-SNAPSHOT.jar:?]                                                   │
      │     at org.nuxeo.ai.cloud.NuxeoCloudClient.lambda$getClient$0(NuxeoCloudClient.java:208) ~[nuxeo-ai-model-2.7.0-SNAPSHOT.jar:?]                                                │
      │     at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4876) [guava-26.0-jre.jar:?]                                                                 │
      │     at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3528) [guava-26.0-jre.jar:?]                                                        │
      │     at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2277) [guava-26.0-jre.jar:?]                                                                        │
      │     at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2154) [guava-26.0-jre.jar:?]                                                                 │
      │     at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2044) [guava-26.0-jre.jar:?]                                                                             │
      │     at com.google.common.cache.LocalCache.get(LocalCache.java:3952) [guava-26.0-jre.jar:?]                                                                                     │
      │     at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4871) [guava-26.0-jre.jar:?]
      
      2021-07-07T13:00:59,103 ERROR [WorkManagerImpl] Uncaught error on thread: Nuxeo-Work-default-5, current work might be lost, WorkManager metrics might be corrupted.            │
      │ org.nuxeo.ecm.core.api.NuxeoException: Work failed after 2 retries, class=class org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork id=1272144080540251.690420839 ca │
      │ tegory=invalidateModelDefinitionsListener title=Listener invalidateModelDefinitionsListener [invalidateModelDefinitions]                                                       │
      │     at org.nuxeo.ecm.core.work.AbstractWork.workFailed(AbstractWork.java:439) ~[nuxeo-core-event-10.10-HF44.jar:?]                                                             │
      │     at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:395) ~[nuxeo-core-event-10.10-HF44.jar:?]                                                                    │
      │     at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-10.10-HF44.jar:?]                                                                         │
      │     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_282]                                                                          │
      │     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_282]                                                                          │
      │     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]                                                                                                                     │
      │ Caused by: com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key system.                                                            │
      │     at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2314) ~[guava-26.0-jre.jar:?]                                                              │
      │     at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[guava-26.0-jre.jar:?]                                                                       │
      │     at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2154) ~[guava-26.0-jre.jar:?]                                                                │
      │     at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2044) ~[guava-26.0-jre.jar:?]                                                                            │
      │     at com.google.common.cache.LocalCache.get(LocalCache.java:3952) ~[guava-26.0-jre.jar:?]                                                                                    │
      │     at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4871) ~[guava-26.0-jre.jar:?]                                                                   │
      │     at org.nuxeo.ai.cloud.NuxeoCloudClient.getClient(NuxeoCloudClient.java:208) ~[nuxeo-ai-model-2.7.0-SNAPSHOT.jar:?]                                                         │
      │     at org.nuxeo.ai.cloud.NuxeoCloudClient.getPublishedModels(NuxeoCloudClient.java:425) ~[nuxeo-ai-model-2.7.0-SNAPSHOT.jar:?]
      
      2021-07-07T13:00:59,101 ERROR [AsyncEventExecutor] Failed to execute async event null on listener invalidateModelDefinitionsListener                                           │
      │ com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key system.                                                                       │
      │     at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2314) ~[guava-26.0-jre.jar:?]                                                              │
      │     at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[guava-26.0-jre.jar:?]                                                                       │
      │     at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2154) ~[guava-26.0-jre.jar:?]                                                                │
      │     at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2044) ~[guava-26.0-jre.jar:?]                                                                            │
      │     at com.google.common.cache.LocalCache.get(LocalCache.java:3952) ~[guava-26.0-jre.jar:?]                                                                                    │
      │     at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4871) ~[guava-26.0-jre.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: