Skip to content

Error: Exception: Failure fetching models from Azure Foundry catalog #405

@leestott

Description

@leestott

OpenVinoExecution provider Exception on Intel Devices

Error

🟢 Service is Started on http://127.0.0.1:53483/, PID 1304!
🕖 Downloading and registering OpenVINOExecutionProvider [1/2]... Exception: Failure fetching models from Azure Foundry catalog
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..

Repo:

Tried two versions of foundry local unistallled and reinstalled foundry local app.
Deleted .foundry user users\

Versions Tested

foundry --version
0.8.119

foundry --version
0.8.117

log

foundry cache list
🟢 Service is Started on http://127.0.0.1:55604/, PID 15472!
Models cached on device:
Alias Model ID
🕛 Downloading and registering OpenVINOExecutionProvider [1/2]... Exception: Failure fetching models from Azure Foundry catalog
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
[13:12:34 ERR] LogException
Microsoft.AI.Foundry.Local.Common.FLException: Failure fetching models from Azure Foundry catalog
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
at System.Net.Sockets.NetworkStream.Read(Span1) + 0x59 --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Span1) + 0xf1
at System.Net.Http.HttpConnection.d__82.MoveNext() + 0xde
--- End of stack trace from previous location ---
at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.Fill() + 0x8b
at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.Read(Span1) + 0xbd at System.Net.Http.HttpBaseStream.Read(Byte[], Int32, Int32) + 0x51 at System.IO.StreamReader.ReadBuffer() + 0x37 at System.IO.StreamReader.get_EndOfStream() + 0x34 at Microsoft.AI.Foundry.Local.Common.EPManagement.<InitializeEPsAsync>d__6.MoveNext() + 0xb7c --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Common.EPManagement.<InitializeEPsAsync>d__6.MoveNext() + 0x1138 --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<GetAutoRegisterEPStatus>d__23.MoveNext() + 0x73b --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<InitModelsAsync>d__22.MoveNext() + 0x3cf --- End of inner exception stack trace --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<InitModelsAsync>d__22.MoveNext() + 0xe7b --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<Models>d__8.MoveNext() + 0x53 --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<GetModelAsync>d__16.MoveNext() + 0x63 --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Commands.CacheListCommand.<<Create>b__2_0>d.MoveNext() + 0x4e1 --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Common.CommandActionFactory.<>c__DisplayClass0_01.<b__0>d.MoveNext() + 0x1e7
--- End of stack trace from previous location ---
at System.CommandLine.NamingConventionBinder.CommandHandler.d__66.MoveNext() + 0x50
--- End of stack trace from previous location ---
at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.d__11.MoveNext() + 0x61
--- End of stack trace from previous location ---
at System.CommandLine.Invocation.InvocationPipeline.d__0.MoveNext() + 0x1cd
--- End of stack trace from previous location ---
at Microsoft.AI.Foundry.Local.Program.

d__1.MoveNext() + 0x4e4

Log from .foundry

at Microsoft.AI.Foundry.Local.Common.ServiceManagement.d__9.MoveNext() + 0x5f
2026-01-29 13:17:31.743 +00:00 [INF] Starting service <C:\Program Files\WindowsApps\Microsoft.FoundryLocal_0.8.119.102_x64__8wekyb3d8bbwe\Inference.Service.Agent.exe --urls="http://127.0.0.1:0/" --OpenAIServiceSettings:ModelDirPath="C:\Users******.foundry\cache\models" --JsonRpcServer:Run=true --JsonRpcServer:PipeName="inference_agent" --Logging:LogLevel:Default="Information">
2026-01-29 13:17:31.920 +00:00 [INF] Service endpoints are not yet bound after 1 tries, waiting to retry...
2026-01-29 13:17:31.926 +00:00 [INF] Now listening on: http://127.0.0.1:53483
2026-01-29 13:17:31.926 +00:00 [INF] Application started. Press Ctrl+C to shut down.
2026-01-29 13:17:31.926 +00:00 [INF] Hosting environment: Production
2026-01-29 13:17:31.927 +00:00 [INF] Content root path: C:\Program Files\WindowsApps\Microsoft.FoundryLocal_0.8.119.102_x64__8wekyb3d8bbwe
2026-01-29 13:17:32.002 +00:00 [INF] Provider 1/2: OpenVINOExecutionProvider is in NotReady state. Downloading and ensuring provider is ready.
2026-01-29 13:17:32.049 +00:00 [INF] Provider OpenVINOExecutionProvider download and ensuring ready attempt: Success
2026-01-29 13:17:32.072 +00:00 [INF] Provider 1/2: OpenVINOExecutionProvider is now in Ready state. Now registering provider.
2026-01-29 13:17:32.433 +00:00 [INF] Found service endpoints: http://127.0.0.1:53483
2026-01-29 13:17:32.433 +00:00 [INF] Service is started on http://127.0.0.1:53483/, PID 1304!
2026-01-29 13:17:32.434 +00:00 [INF] Command:ModelInit Status:Success Direct:True Time:938ms
2026-01-29 13:17:32.434 +00:00 [INF] Command:ServiceStart Status:Failure Direct:False Time:939ms
2026-01-29 13:17:32.434 +00:00 [INF] Checking EP autoregistration status...
2026-01-29 13:17:32.463 +00:00 [INF] UserAgent:foundry-local-CLI/0.8.119 Command:ServiceStatus Status:Success Direct:True Time:0ms
2026-01-29 13:17:32.463 +00:00 [INF] Processing EP autoregistration status...
2026-01-29 13:17:32.463 +00:00 [INF] Command:ServiceStatus Status:Success Direct:False Time:29ms
2026-01-29 13:17:32.466 +00:00 [INF] UserAgent:foundry-local-CLI/0.8.119 Command:AutoRegisterCertifiedEps Status:Success Direct:True Time:0ms
2026-01-29 13:17:32.467 +00:00 [INF] Reporting progress of running EP download
2026-01-29 13:17:35.952 +00:00 [INF] Stream disconnected
2026-01-29 13:17:35.954 +00:00 [INF] Command:ServiceAutoRegister Status:Failure Direct:False Time:3491ms
2026-01-29 13:17:35.954 +00:00 [INF] Command:ModelList Status:Failure Direct:True Time:4459ms
2026-01-29 13:17:35.955 +00:00 [ERR] LogException
Microsoft.AI.Foundry.Local.Common.FLException: Failure fetching models from Azure Foundry catalog
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
at System.Net.Sockets.NetworkStream.Read(Span1) + 0x59 --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Span1) + 0xf1
at System.Net.Http.HttpConnection.d__82.MoveNext() + 0xde
--- End of stack trace from previous location ---
at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.Fill() + 0x8b
at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.Read(Span1) + 0xbd at System.Net.Http.HttpBaseStream.Read(Byte[], Int32, Int32) + 0x51 at System.IO.StreamReader.ReadBuffer() + 0x37 at System.IO.StreamReader.get_EndOfStream() + 0x34 at Microsoft.AI.Foundry.Local.Common.EPManagement.<InitializeEPsAsync>d__6.MoveNext() + 0xb7c --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Common.EPManagement.<InitializeEPsAsync>d__6.MoveNext() + 0x1138 --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<GetAutoRegisterEPStatus>d__24.MoveNext() + 0x73b --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<InitModelsAsync>d__23.MoveNext() + 0x3cf --- End of inner exception stack trace --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<InitModelsAsync>d__23.MoveNext() + 0xe7b --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<Models>d__8.MoveNext() + 0x53 --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Catalog.AzureFoundryCatalog.<DisplayModelInfoAsync>d__22.MoveNext() + 0x5f --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Commands.ModelListCommand.<<Create>b__2_0>d.MoveNext() + 0x167 --- End of stack trace from previous location --- at Microsoft.AI.Foundry.Local.Common.CommandActionFactory.<>c__DisplayClass0_01.<b__0>d.MoveNext() + 0x1e7
--- End of stack trace from previous location ---
at System.CommandLine.NamingConventionBinder.CommandHandler.d__66.MoveNext() + 0x50
--- End of stack trace from previous location ---
at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.d__11.MoveNext() + 0x61
--- End of stack trace from previous location ---
at System.CommandLine.Invocation.InvocationPipeline.d__0.MoveNext() + 0x1cd
--- End of stack trace from previous location ---
at Microsoft.AI.Foundry.Local.Program.

d__1.MoveNext() + 0x4cb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions