Azure / azure-cosmos-dotnet-v2

Contains samples and utilities relating to the Azure Cosmos DB .NET SDK
MIT License
577 stars 836 forks source link

CosmosDB Emulator wont start #470

Open Frankwayne opened 6 years ago

Frankwayne commented 6 years ago

Not sure where to post this issue. I have another ticket opened at https://github.com/MicrosoftDocs/azure-docs/issues/6788

I cant seem to start the Cosmos DB Emulator. I have windows 10 and it appears to install fine, but when I click to start it up I see the tray icon appear and then it disappears before I can click on it. The localhost landing page "https://localhost:8081/_explorer/index.html" does not appear and I cannot navigate to it either

I have tried to restart my machine. Uninstall the application. Turn off the IIS web server I use for debugging but nothing appears to work.

I have ran the command "lodctr /R" and got a successful message back from running it, it still wont start.

I tried to look for the crash dumps at c:\Users\user_name\AppData\Local\CrashDump but I see no crashDump files

I have tried to launch the Emulator as an administrator but it still wont start.

I tried to Collect trace files with the following steps

  1. cd /d "%ProgramFiles%\Azure Cosmos DB Emulator"
  2. CosmosDB.Emulator.exe /shutdown. Watch the system tray to make sure the program has shut down, it may take a minute. You can also just click Exit in the Azure Cosmos DB emulator user interface.
  3. CosmosDB.Emulator.exe /starttraces
  4. CosmosDB.Emulator.exe
  5. Reproduce the problem. If Data Explorer is not working, you only need to wait for the browser to open for a few seconds to catch the error.
  6. CosmosDB.Emulator.exe /stoptraces
  7. Navigate to %ProgramFiles%\Azure Cosmos DB Emulator and find the docdbemulator_000001.etl file.
  8. Send the .etl file along with repro steps to askcosmosdb@microsoft.com for debugging.

but I dont get any trace files either. Im not sure what is wrong at this point in time

David-Noble-at-work commented 6 years ago

Please be sure that you've downloaded and installed the latest version of the Emulator from here. If you send an e-mail to askcosmosdb@microsoft.com I'll work with you directly.

Thanks.

Frankwayne commented 6 years ago

@David-Noble-at-work Thanks David, I have uninstalled and installed that download link version 1.21.0.0 and I am still having the same issue. I have sent off an email with the details of my issue from the following issue case.

https://github.com/MicrosoftDocs/azure-docs/issues/6788

ToddTaylor commented 6 years ago

When I tried to upgrade the emulator to the latest version, I ran into a similar issue where nothing worked following the uninstall/reinstall.

What finally fixed the issue for me was: