how to fix file not found issue in Linux Cosmos DB emulator

Ruiqi Liu 35 Reputation points
2023-11-09T18:11:31.97+00:00

I started encountering file not found issues when starting the Cosmos DB emulator container (Linux version). The error messages are from the Docker container logs.

It worked well last week.

How to know the file path that's being complaint about? (it's Linux version)

Are you aware of relevant changes? What may be possible causes? e.g. dependencies changes? e.g. any releases of the linux version?

How can I specify a specific linux version to use? Where can I see release notes of the linux version? 

Please advise. Thanks.

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)    at Microsoft.Azure.Documents.Common.ProcessUtil.Run(String fileName, String args)    at Microsoft.Azure.Documents.Common.EtwManifest.<>c__DisplayClass7_0.<UnInstallEtwManifest>b__0()    at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__5`2.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)    at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__5`2.MoveNext()    --- End of inner exception stack trace ---    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)    at Microsoft.Azure.Documents.Common.EtwManifest.UnInstallEtwManifest(String manifestFile)    at Microsoft.Azure.Documents.Common.EtwManifest.InstallEtwManifest(String manifestFile)    at Microsoft.Azure.Documents.Services.StartupEntryPoint.ServiceSetupHelper.InstallRuntimeSourceManifest(String manifestPath)    at Microsoft.Azure.Documents.Services.StartupEntryPoint.GatewayServiceSetupCommand.GatewayInit(CodePackageActivationContext context)    at Microsoft.Azure.Documents.Services.StartupEntryPoint.GatewayServiceSetupCommand.<>c.<AddCommand>b__3_1()    at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)    at Microsoft.Azure.Documents.Services.StartupEntryPoint.ServiceStartupEntryPoint.Main(String[] args) Failed to create CoreCLR, HRESULT: 0x8007000E
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,901 questions
{count} votes

Accepted answer
  1. first last 80 Reputation points
    2023-11-10T22:10:38.36+00:00

    I was able to fix this by changing my docker-compose for cosmosdb to have mem_limit: 4GB adding a C:\Users\<UserName>\.wslconfig file, and restarting docker desktop, then the cosmos emulator container was able to start successfully. The contents of the .wslconfig file should be as listed in this github issue comment https://github.com/Azure/azure-cosmos-db-emulator-docker/issues/77#issuecomment-1798588144.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2023-11-10T06:09:30.7933333+00:00

    Hi
    Ruiqi Liu
    •,

    Welcome to Microsoft Q&A.

    As I understand, you are getting File not found error in Cosmos DB Linux Emulator.

    Possible causes of file not found issues could be:

    1). changes to the container image or dependencies,

    2). changes to the host environment, or changes to the configuration of the container.

    3). It's also possible that the file was deleted or moved since the last time the container was started.

    I would recommend you to please file a support ticket for deeper investigation and in case if you don't have a support plan, do let us know here so that we can check on other options to unblock you.

    Thanks


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.