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
165 stars 47 forks source link

Cosmos DB Linux emulator - inserting larger document #70

Open maranmaran opened 1 year ago

maranmaran commented 1 year ago

Hi, I'm trying to run and implement integration tests locally with cosmos emulator in linux container.

I also want to do some initial seeding and it requires single 500kb document in one collection, but the requests just end up in timeout.

If I increase timeouts it seems to never finish with any meaningful error message. Creation through explorer / importing of json file also fails without any meaningful error message.

I've tried fiddling with scale settings but with no success.

Anyone experienced similar issues?

coryisakson commented 1 year ago

I am not able to insert any data using the JSON upload feature with the Linux Container. It even crashes the container with some errors that look like its trying to use a Windows package.

This program has encountered a fatal error and cannot continue running at Fri Jun 9 19:00:36 2023 2023-06-09 13:00:36 The following diagnostic information is available: 2023-06-09 13:00:36 2023-06-09 13:00:36 Reason: OS Fatal Error (0x00000006) 2023-06-09 13:00:36 Message: Last Chance 2023-06-09 13:00:36 Address: 0x3fff84091082 2023-06-09 13:00:36 Parameters: 0x3fff8901cf0b 2023-06-09 13:00:36 Stack Trace: 2023-06-09 13:00:36 file://package1/windows/system32/sqlpal.dll+0x0000000000298F1C 2023-06-09 13:00:36 file://package1/windows/system32/sqlpal.dll+0x0000000000296EC1 2023-06-09 13:00:36 file://package1/windows/system32/sqlpal.dll+0x0000000000266430 2023-06-09 13:00:36 file://package1/windows/system32/sqlpal.dll+0x00000000002660ED 2023-06-09 13:00:36 file://package1/windows/system32/sqlpal.dll+0x00000000003944F3 2023-06-09 13:00:36 file:///windows/System32/Drivers/netio.sys+0x0000000000001082 2023-06-09 13:00:36 file:///windows/System32/Drivers/Http.sys+0x0000000000069526 2023-06-09 13:00:36 file:///windows/System32/Drivers/Http.sys+0x000000000006AAA4 2023-06-09 13:00:36 file:///windows/System32/Drivers/Http.sys+0x0000000000004B79 2023-06-09 13:00:36 file:///windows/System32/Drivers/Http.sys+0x00000000000A3E27 2023-06-09 13:00:36 file://package1/windows/system32/sqlpal.dll+0x000000000024A57C 2023-06-09 13:00:36 file://package1/windows/system32/sqlpal.dll+0x0000000000394491 2023-06-09 13:00:36 +0x000000000BE4BC00 2023-06-09 13:00:36 Process: 24 - cosmosdb-emulator 2023-06-09 13:00:36 Thread: 3418 (application thread 0x620) 2023-06-09 13:00:36 Instance Id: 0e752c6f-934f-4b1e-a9ba-f0b2e1473df4 2023-06-09 13:00:36 Crash Id: cc3ddcb7-0272-400e-8539-4ed4fb4a674c 2023-06-09 13:00:36 Build stamp: (null) 2023-06-09 13:00:36 Distribution: Ubuntu 20.04.6 LTS 2023-06-09 13:00:36 Processors: 8 2023-06-09 13:00:36 Total Memory: 16559042560 bytes 2023-06-09 13:00:36 Timestamp: Fri Jun 9 19:00:36 2023 2023-06-09 13:00:36 Last errno: -34938881 2023-06-09 13:00:36 Last errno text: Unknown error -34938881 2023-06-09 13:00:36 * PAL PANIC CORE DUMP GENERATION FAILED ** 2023-06-09 13:00:36 Unable to locate handle-crash.sh. Error: File: signals.cpp:483 [Status: 0xC0000034 Object name not found errno = 0x2(2) No such file or directory] 2023-06-09 13:00:36 Executing: /usr/local/bin/cosmos/handle-crash.sh with parameters 2023-06-09 13:00:36 handle-crash.sh 2023-06-09 13:00:36 /usr/local/bin/cosmos/cosmosdb-emulator 2023-06-09 13:00:36 24 2023-06-09 13:00:36 /usr/local/bin/cosmos 2023-06-09 13:00:36 /tmp/cosmos/appdata/log/ 2023-06-09 13:00:36
2023-06-09 13:00:36 0e752c6f-934f-4b1e-a9ba-f0b2e1473df4 2023-06-09 13:00:36 cc3ddcb7-0272-400e-8539-4ed4fb4a674c 2023-06-09 13:00:36
2023-06-09 13:00:36 *
PANIC CORE DUMP GENERATION FAILED ** 2023-06-09 13:00:36 Attempt to launch handle-crash.sh failed. 2023-06-09 13:00:36 This program has encountered a fatal error and cannot continue running at Fri Jun 9 19:00:36 2023 2023-06-09 13:00:36 The following diagnostic information is available: 2023-06-09 13:00:36 2023-06-09 13:00:36 Reason: Host Extension RTL_ASSERT (0x00000003) 2023-06-09 13:00:36 Status: STATUS_WAIT_2 (0x00000002) 2023-06-09 13:00:36 Message: !killTheTarget 2023-06-09 13:00:36 Stack: 2023-06-09 13:00:36 SP IP Function 2023-06-09 13:00:36 ---------------- ---------------- ---------------- 2023-06-09 13:00:36 00007f130ffc1df0 000055e07ae48bba 2023-06-09 13:00:36 00007f130ffc2e50 000055e07ae4858f 2023-06-09 13:00:36 00007f130ffc30b0 000055e07adabb26 2023-06-09 13:00:36 00007f130ffc30e0 000055e07ae4c0a4 2023-06-09 13:00:36 00007f130ffc4310 000055e07ae4b769 2023-06-09 13:00:36 00007f130ffc4440 00007f131211b609 start_thread+0xd9 2023-06-09 13:00:36 00007f130ffc4500 00007f1311b9c133 clone+0x43 2023-06-09 13:00:36 2023-06-09 13:00:36 Process: 22 - cosmosdb-emulator 2023-06-09 13:00:36 Thread: 23 2023-06-09 13:00:36 Instance Id: 0e752c6f-934f-4b1e-a9ba-f0b2e1473df4 2023-06-09 13:00:36 Crash Id: cc3ddcb7-0272-400e-8539-4ed4fb4a674c 2023-06-09 13:00:36 Build stamp: (null) 2023-06-09 13:00:36 Distribution: Ubuntu 20.04.6 LTS 2023-06-09 13:00:36 Processors: 8 2023-06-09 13:00:36 Total Memory: 16559042560 bytes 2023-06-09 13:00:36 Timestamp: Fri Jun 9 19:00:36 2023 2023-06-09 13:00:36 Last errno: 2 2023-06-09 13:00:36 Last errno text: No such file or directory 2023-06-09 13:00:36 Aborted