Getting "Cannot connect document 2022-08-31 grpc server from 127.0.0.1:50051 after 150 seconds." when running container locally

Pelican Azure 0 Reputation points
2025-05-02T14:46:44.19+00:00

I keep getting this error when running my container locally on Kubernetes using helm charts

Below Document container console log

EULA Notice: Copyright © Microsoft Corporation 2020. This Cognitive Services Container image is made available to you under the terms [https://go.microsoft.com/fwlink/?linkid=2018657] governing your subscription to Microsoft Azure Services (including the Online Services Terms [https://go.microsoft.com/fwlink/?linkid=2018760]). If you do not have a valid Azure subscription, then you may not use this container.
Using API key for authentication.
Logging to console.
Submitting metering to 'https://*********************************************/'.
EULA Notice: Copyright © Microsoft Corporation 2020. This Cognitive Services Container image is made available to you under the terms [https://go.microsoft.com/fwlink/?linkid=2018657] governing your subscription to Microsoft Azure Services (including the Online Services Terms [https://go.microsoft.com/fwlink/?linkid=2018760]). If you do not have a valid Azure subscription, then you may not use this container.
Using API key for authentication.
Using '/share' for shared mounts.
Logging to console.
Submitting metering to 'https://*********************************************/'.
Is hosting: False
Build information: Form Recognizer Document 2022-08-31  20250225.1-9f9aec83
Logging to console.
Warning: CustomFieldAnalyzer can 't find credentials. Calls to this analyzer are limited to QueryFields.basic.
Using file-based Object storage.
fail: formrecognizerkvp[0]
      Cannot connect document 2022-08-31 grpc server from 127.0.0.1:50051 after 150 seconds. System.AggregateException: One or more errors occurred. (A task was canceled.)
       ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
         at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)
         at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
         at System.Threading.Tasks.Task.Wait()
         at Microsoft.CloudAI.Containers.VDI.Vertical.ServiceCollectionExtensions.CreateGrpcAnalyzeHandler(IServiceProvider provider, EngineAdapterConfig config, String modelType, String modelVersion, String host, String analyzerVersion)
         at Microsoft.CloudAI.Containers.VDI.Vertical.ServiceCollectionExtensions.<>c.
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,385 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,026 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.