Azure Cosmos Db Emulator strating but never start

David DEL VECCHIO 26 Reputation points
2022-08-24T11:56:39.533+00:00

Hi,

I use Azure Cosmos Db Emulator for about 1 year now and it’s the 3de time it sudently stop working.

The only way i found for resolve the problem was to do a complete re-install of windows 10 …

My configuration :

  • Windows 10 Pro
  • Administrator privilege
  • Domain link to AAD
  • Antivirus software : ESET Endpoint antivirus 9.1.2051.0
  • Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz 3.40 GHz
  • 32 Go of RAM
  • All my software installed on C :

I try this in command prompt (as Administrator) :

1) Clear performance counter before start

  • Microsoft.Azure.Cosmos.Emulator.exe /shutdown
  • lodctr /R (2 time to be sure)
  • Microsoft.Azure.Cosmos.Emulator.exe
    Result :
     The notification for « Starting » show up

 A dump file is create in AppData/Local/CrashDumps

 The notification that the emulator is « start » never come
 The web page never open

2) Uninstall – re-install

  • Microsoft.Azure.Cosmos.Emulator.exe /shutdown
  • Delete folder AppData\Local\CosmosDBEmulator
  • Uninstall Cosmos Db Emulator
  • Delete folder C:\Program Files\Azure Cosmos DB Emulator
  • Restart the computer
  • Install last app version : azure-cosmosdb-emulator-2.14.9-3c8bff92.msi
  • Check for start the emulator after install end
    Result :
     Same result than 1)

3) Start trace

  • Microsoft.Azure.Cosmos.Emulator.exe /shutdown
  • Microsoft.Azure.Cosmos.Emulator.exe /startwprtraces
  • Microsoft.Azure.Cosmos.Emulator.exe
  • [wait for 1 minute]
  • Microsoft.Azure.Cosmos.Emulator.exe /stopwprtraces
  • Microsoft.Azure.Cosmos.Emulator.exe /shutdown

Result :
 The notification for « Starting » show up
 A dump file is create in AppData/Local/CrashDumps
 Until the 1 minute of waiting , a dump file was created for about every 20/30s
 When i execute Microsoft.Azure.Cosmos.Emulator.exe /stopwprtraces, a docdbemulator_001.etl was created in C:\Program Files\Azure Cosmos DB Emulator
 The notification that the emulator is « start » never come
 The web page never open

Please Help me I don’t want to reinstall my PC each time this pb come…

I try to read the dump file with WinDbg.exe and i found this error message :

CLR_EXCEPTION_System.Collections.Generic.KeyNotFoundException_80131577_Microsoft.Azure.Documents.Common.dll!Microsoft.Azure.Documents.Common.Service.WindowsFabricConfigurationProvider.GetValue

And the stack trace was :

00000085583feb40 00007ffe49323302 Microsoft_Azure_Documents_Common!Microsoft.Azure.Documents.Common.Service.WindowsFabricConfigurationProvider.GetValue+0x52
00000085583feb80 00007ffe493230cb Microsoft_Azure_Documents_Common!Microsoft.Azure.Documents.Common.CrashDump.Register+0xdb
00000085583febf0 00007ffe48f673ee Microsoft_Azure_Cosmos_Compute_Host_ServiceFabric_EntryPoint!Microsoft.Azure.Cosmos.Compute.Host.ServiceFabric.EntryPoint.EntryPoint.CosmosDBGatewayInit+0x56e
00000085583fecf0 00007ffe48f51465 Microsoft_Azure_Cosmos_Compute_Host_ServiceFabric_EntryPoint!Microsoft.Azure.Cosmos.Compute.Host.ServiceFabric.EntryPoint.EntryPoint.Main+0x295

In windows logs I found the same error description (in french):

Application : Microsoft.Azure.Cosmos.Compute.Host.ServiceFabric.EntryPoint.exe Version du Framework : v4.0.30319 Description : le processus a été arrêté en raison d'une exception non gérée. Informations sur l'exception : System.Collections.Generic.KeyNotFoundException à Microsoft.Azure.Documents.Common.Service.WindowsFabricConfigurationProvider.GetValue(System.String) à Microsoft.Azure.Documents.Common.CrashDump.Register(System.Collections.Generic.IEnumerable`1\

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,906 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. David DEL VECCHIO 26 Reputation points
    2022-08-25T09:00:44.473+00:00

    Finaly I found that Cosmos Db create 3 Security Groups that are not delete on uninstall.

    I delete all 3 and remove all registry reference on each. (searching for Cosmos Db and DocDb)

    Now when i reinstall all work properly !


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.