Azure Document Intelligence Container not working

Shailesh Kumar (NAV Backoffice) 25 Reputation points
2024-06-11T16:20:02.0633333+00:00

Hi,

I am trying to setup an Azure Document Intelligence Custom Container to read documents on-premise using the Document Intelligence Container and following the below documentation.

https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/containers/install-run?view=doc-intel-3.1.0&preserve-view=true&tabs=custom#create-an-environment-file

I did the same thing mentioned here, the file docker-compose.yml contains 4 containers, out of which I am able to run container form-recognizer-studio which means the network and other settings are perfectly fine, but the containers azure-cognitive-service-layout and azure-cognitive-service-custom-template are not working, and not throwing any errors.

I checked the NGINX error logs, and found the below error logs, which is obvious because the upstream services are not responding.

[alert] 33#33: 1000 worker_connections are not enough

2024/06/11 15:38:52 [error] 33#33: *9980 upstream prematurely closed connection while reading response header from upstream, client: 172.22.0.1, server: , request: "GET / HTTP/1.0", upstream: "http://172.16.18.154:5000/", host: "inslnxdevv61:5000", referrer: "http://inslnxdevv61:5000"

Below are the logs from layout container.

Using API key for authentication.

Using '/logs/formrecognizerlayout/036694734fd3' for writing logs and other output data.

Using '/shared' for shared mounts.

Logging to console.

Submitting metering to 'https://test.cognitiveservices.azure.com/'.

Is hosting: False

Build information: Form Recognizer Layout 2022-08-31 20231109.2-7a5d3e697e5090acd8c726cee2906b20c78d5cc9

Logging to console.

info: formrecognizerlayout[0]

Add health checkpoint for AddMemoryUpperBoundCheckpoint to 8674443. buildVersion='1.2.454.0-20231109.2-7a5d3e697e5090acd8c726cee2906b20c78d5cc9' hostId='036694734fd3' serviceName='formrecognizerlayout' tags='healthcheck' namespace='vdi' Namesapce='vdi'

info: Microsoft.CloudAI.Containers.Http.CloudAIHttpClient[0]

Using HTTP proxy http:/guest:pass@test.com:3129.

info: Microsoft.CloudAI.Containers.Metering.CloudMeterClient[0]

Reporting meter usage of 0 units at 638537188782706403.

info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[62]

User profile is available. Using '/home/nonroot/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.

warn: Microsoft.CloudAI.Containers.Queuing.MemoryWorkQueueAccessor[0]

Using an in-memory work queue implementation. Queues will not be shared across containers.

info: formrecognizerlayout[0]

Add health checkpoint for QueueAccessor to 8674443. buildVersion='1.2.454.0-20231109.2-7a5d3e697e5090acd8c726cee2906b20c78d5cc9' hostId='036694734fd3' serviceName='formrecognizerlayout' tags='healthcheck' namespace='vdi' Namesapce='vdi'

I tried adding proxy details, and nothing worked here. I tried other local URL's in the same NGINX file, and it was running perfectly fine.

Below is my .env file.

SHARED_MOUNT_PATH="./shared"

OUTPUT_MOUNT_PATH="./output"

FILE_MOUNT_PATH="./files"

DB_MOUNT_PATH="./db"

FORM_RECOGNIZER_ENDPOINT_URI="https://test.cognitiveservices.azure.com/"

FORM_RECOGNIZER_KEY="key"

NGINX_CONF_FILE="./nginx.conf"

Other information is the same as mentioned in the Azure documentation link shared above.

Azure resource region : East US

Azure Subscription ID : c465d20b-9240-4558-b26c-dcc875162335

I don't have any support plan on Azure; can anyone help me here?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,532 questions
{count} votes