Search code examples
dockerazure-cosmosdbazure-cosmosdb-emulator

Azure Cosmos DB Emulator Linux image does not start (Error: The evaluation period has expired.)


With the following image mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest when attempting to start a container either via:

  • Docker Desktop (Windows)
  • Or, via the following CLI command (Windows):
docker run --name azure-cosmosdb-emulator --memory 2GB --interactive --tty -p 8081:8081 -p 8900:8900 -p 8901:8901 -p 8902:8902 -p 10250:10250 -p 10251:10251 -p 10252:10252 -p 10253:10253 -p 10254:10254 -p 10255:10255 -p 10256:10256 -p 10350:10350 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator

I get the same error in all the above:

2022-11-15 16:34:08 Error: The evaluation period has expired.
2022-11-15 16:34:08 ./cosmosdb-emulator: ERROR: PAL initialization failed. Error: 104

I've tried to delete the containers/image and pull latest to no avail


Solution

  • We are looking into this issue and update on the findings by EOD here, the new image needs to get published and it might take couple of days if everything works as expected.

    as a workaround until this gets fixed, you can use the image with the tag mongodb , the same features are available

    mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:mongodb

    UPDATE:

    we have published a new image , try with the latest tag

    FROM mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest