Azure / azure-cosmos-db-emulator-docker

This repo serves as hub for managing issues, gathering feedback, and having discussions regarding the Cosmos DB Emulator Docker.
https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-develop-emulator?tabs=docker-linux%2Ccsharp&pivots=api-nosql
MIT License
153 stars 46 forks source link

Container creation failed and then cannot query all containers anymore #73

Open kerryjiang opened 1 year ago

kerryjiang commented 1 year ago

Can someone take a look at this issue?

The container creation failed in the middle and later all the container queries failed with the same exception.

System.AggregateException: System.AggregateException: One or more errors occurred. ---> Microsoft.Azure.Documents.DocumentClientException: Message: {"Errors":["An unknown error occurred while processing this request. If the issue persists, please contact Azure Support: http://aka.ms/azure-support"]} ActivityId: 6ec98da7-b7a2-4b7e-9189-47f422300c0a, Request URI: /apps/DocDbApp/services/DocDbServer67/partitions/a4cb498f-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, RequestStats: RequestStartTime: 2023-06-18T19:45:57.6583534Z, RequestEndTime: 2023-06-18T19:45:57.6593609Z, Number of regions attempted:1 {"systemHistory":[{"dateUtc":"2023-06-18T19:44:50.8952965Z","cpu":0.078,"memory":418788.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.1787,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-18T19:45:00.9079282Z","cpu":0.624,"memory":430020.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.109,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-18T19:45:10.9090206Z","cpu":0.000,"memory":430008.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0343,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-18T19:45:20.9243778Z","cpu":3.978,"memory":440812.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.1357,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-18T19:45:30.9253010Z","cpu":3.203,"memory":440576.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0949,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-18T19:45:50.9392602Z","cpu":2.771,"memory":440648.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0949,"availableThreads":32766,"minThreads":2,"maxThreads":32767}}]} RequestStart: 2023-06-18T19:45:57.6583534Z; ResponseTime: 2023-06-18T19:45:57.6593609Z; StoreResult: StorePhysicalAddress: rntbd://172.28.93.212:10253/apps/DocDbApp/services/DocDbServer67/partitions/a4cb498f-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 1, GlobalCommittedLsn: -1, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 500, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#1, UsingLocalLSN: True, TransportException: null, BELatencyMs: 0.726, ActivityId: 6ec98da7-b7a2-4b7e-9189-47f422300c0a, RetryAfterInMs: , TransportRequestTimeline: {"requestTimeline":[{"event": "Created", "startTimeUtc": "2023-06-18T19:45:57.6583534Z", "durationInMs": 0.0044},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2023-06-18T19:45:57.6583578Z", "durationInMs": 0.0027},{"event": "Pipelined", "startTimeUtc": "2023-06-18T19:45:57.6583605Z", "durationInMs": 0.623},{"event": "Transit Time", "startTimeUtc": "2023-06-18T19:45:57.6589835Z", "durationInMs": 0.4216},{"event": "Received", "startTimeUtc": "2023-06-18T19:45:57.6594051Z", "durationInMs": 0.0471},{"event": "Completed", "startTimeUtc": "2023-06-18T19:45:57.6594522Z", "durationInMs": 0}],"requestSizeInBytes":400,"responseMetadataSizeInBytes":176,"responseBodySizeInBytes":152}; ResourceType: Collection, OperationType: Read , SDK: Microsoft.Azure.Documents.Common/2.14.0, documentdb-dotnet-sdk/2.18.0 Host/64-bit MicrosoftWindowsNT/10.0.22621.0. Aborting test execution.

Later all the queries to the all the containers failed with this exception.

kerryjiang commented 1 year ago

Another error happened when creating container:

Message: {"Errors":["The MAC signature found in the HTTP request is not the same as the computed signature. Server used following string to sign - 'post\ndocs\ndbs\/xxxxx\ntue, 20 jun 2023 07:23:25 gmt\n\n'. Learn more: https:\/\/aka.ms\/cosmosdb-tsg-mac-signature"]} ActivityId: 6b33d5e4-d5f9-4006-a925-1e28b86a2f61, Request URI: /apps/DocDbApp/services/DocDbServer5/partitions/a4cb4951-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, RequestStats: RequestStartTime: 2023-06-20T07:23:25.1612518Z, RequestEndTime: 2023-06-20T07:23:25.1682524Z, Number of regions attempted:1 {"systemHistory":[{"dateUtc":"2023-06-20T07:22:26.6238544Z","cpu":5.928,"memory":330568.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":1.0055,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-20T07:22:36.6252266Z","cpu":1.404,"memory":331232.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0717,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-20T07:22:46.6264019Z","cpu":0.547,"memory":331188.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0745,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-20T07:22:56.6266396Z","cpu":0.313,"memory":331168.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0362,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-20T07:23:06.6409505Z","cpu":0.234,"memory":331768.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0559,"availableThreads":32766,"minThreads":2,"maxThreads":32767}},{"dateUtc":"2023-06-20T07:23:16.6414864Z","cpu":0.391,"memory":331924.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0842,"availableThreads":32766,"minThreads":2,"maxThreads":32767}}]} RequestStart: 2023-06-20T07:23:25.1622850Z; ResponseTime: 2023-06-20T07:23:25.1682524Z; StoreResult: StorePhysicalAddress: rntbd://172.29.208.81:10253/apps/DocDbApp/services/DocDbServer5/partitions/a4cb4951-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 0, GlobalCommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 401, SubStatusCode: 0, RequestCharge: 0, ItemLSN: -1, SessionToken: , UsingLocalLSN: True, TransportException: null, BELatencyMs: 1.742, ActivityId: 6b33d5e4-d5f9-4006-a925-1e28b86a2f61, RetryAfterInMs: , TransportRequestTimeline: {"requestTimeline":[{"event": "Created", "startTimeUtc": "2023-06-20T07:23:25.1612518Z", "durationInMs": 0.0079},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2023-06-20T07:23:25.1612597Z", "durationInMs": 0.0027},{"event": "Pipelined", "startTimeUtc": "2023-06-20T07:23:25.1612624Z", "durationInMs": 0.3705},{"event": "Transit Time", "startTimeUtc": "2023-06-20T07:23:25.1616329Z", "durationInMs": 2.0713},{"event": "Received", "startTimeUtc": "2023-06-20T07:23:25.1637042Z", "durationInMs": 0.1314},{"event": "Completed", "startTimeUtc": "2023-06-20T07:23:25.1638356Z", "durationInMs": 0}],"requestSizeInBytes":589,"requestBodySizeInBytes":101,"responseMetadataSizeInBytes":150,"responseBodySizeInBytes":300}; ResourceType: Document, OperationType: Query , SDK: Microsoft.Azure.Documents.Common/2.14.0