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
145 stars 43 forks source link

Failed run in Parallels Desktop 19.3 on macbooks with m1, m3 chips #99

Open wondertalik opened 1 month ago

wondertalik commented 1 month ago

Describe the bug I have two macbooks pro with m1 and m3 chips and i can't run an emulator inside atheParallels Dekstop 19.3 with windows 11

To Reproduce Steps to reproduce the behavior:

  1. Install Parallels Desktop 19.3
  2. Download and install emulator using `Windows(locla) manual.
  3. Run and in 10-15 sec shows an error.

Screenshots image

In events i found this

Faulting application name: Microsoft.Azure.Cosmos.Server.exe, version: 2.14.0.0, time stamp: 0x66445983
Faulting module name: Microsoft.Azure.Cosmos.Server.exe, version: 2.14.0.0, time stamp: 0x66445983
Exception code: 0xc000001d
Fault offset: 0x000000000001b760
Faulting process id: 0x0xBD8
Faulting application start time: 0x0x1DAAD306D79173E
Faulting application path: C:\Program Files\Azure Cosmos DB Emulator\Packages\ServerService\ServerService.Code\Microsoft.Azure.Cosmos.Server.exe
Faulting module path: C:\Program Files\Azure Cosmos DB Emulator\Packages\ServerService\ServerService.Code\Microsoft.Azure.Cosmos.Server.exe
Report Id: 0ef7392a-ca63-44ea-a0ad-99205911359c
Faulting package full name: 
Faulting package-relative application ID: 
Windows cannot access the file  for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program Azure Cosmos Master Service because of this error.

Program: Azure Cosmos Master Service
File: 

The error value is listed in the Additional Data section.
User Action
1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
2. If the file still cannot be accessed and
    - It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
    - It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
4. If the problem persists, restore the file from a backup copy.
5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.

Additional Data
Error value: 0x0
Disk type: 0x0

Desktop (please complete the following information):

**Arguments && Environment variables to start Docker:

Docker Environment

andyvanosdale commented 1 month ago

What architecture is the Windows install? If you try to emulate x86 (it will be slower) and use a Windows x86 install, does it work?

wondertalik commented 1 month ago

What architecture is the Windows install?

Edition Windows 11 Enterprise
Version 23H2
Installed on    ‎5/‎14/‎2024
OS build    22631.3593
Experience  Windows Feature Experience Pack 1000.22700.1003.0

Processor   Apple Silicon   3.20 GHz  (4 processors)
Installed RAM   8.00 GB
System type 64-bit operating system, ARM-based processor

If you try to emulate x86 (it will be slower) and use a Windows x86 install, does it work?

What do you mean?

ivanball-hitachi commented 1 month ago

[wondertalik] Were you able to figure it out? A member on my team also have the same issue.

wondertalik commented 1 month ago

[wondertalik] Were you able to figure it out? A member on my team also have the same issue.

Nop and i tried with Parallel Desktop 19.4 with Using Rosetta to run x86-64 Docker Containers and Binaries in Linux virtual machines with Parallels Desktop and it failed too unfortunatelly.

pikami commented 3 weeks ago

@wondertalik Cosmos emulator does not support the arm architecture, to run it on a mac you would need to emulate x86 As a alternative I've been developing a cosmos emulator from scratch, it's not 100% compatible, but it works on my Mac M2 (should work on other cpus as well). If you're using the cosmos NoSql api you can try it here https://github.com/pikami/cosmium