I am seeing that Mongodb installation documents are now updated For macOS running on Apple M1 processors. But I am still facing issue when installing with brew.
Can anyone help me with this ?
brew services list
19968
Name Status User File
mongodb-community@4.4 error
Welcome to the MongoDB Community Forums @Raghav_Sharma !
Available MongoDB server binaries for macOS are currently Intel x86_64 only (not native arm64 for M1), so will require you to have Rosetta 2 Intel emulation installed.
MozJS ESR 91 is now available so we can start on the engineering work for platform compatibility, but there is a non-trivial amount of development & testing involved in supporting the new platform architecture and required dependency updates.
Apple anticipated these issues in their architecture change and provides Rosetta 2 so you are able to run Intel binaries during the transition period. I have been using Intel MongoDB server binaries on M1 for my own development and testing since the beginning of this year and Rosetta has been working great.
Hey @Stennie_X , now i have got a new issue with the rosetta 2.
initially it worked for me too , i have installed the rosetta 2 and ran the `brew services start mongodb-community@5.0’
it started the mongodb-community.
but after i have and started it again… it again throws me the same error,
Name Status User File
mongodb-community error saikiran
i tried again this ===> softwareupdate --install-rosetta
but now it says ==>. 2021-11-28 11:17:55.726 softwareupdate[12679:88063] Package Authoring Error: 002-23768: Package reference com.apple.pkg.RosettaUpdateAuto is missing installKBytes attribute
Install of Rosetta 2 finished successfully.
Rosetta is a one-off installation, so if this worked for you previously there should be no need to reinstall.
This is a different error from one originally mentioned in this discussion topic: this error indicates that brew services was unable to successfully start the MongoDB service.
A few suggestions:
Check if there is already a running mongodb-community service started by brew:
brew services list
If brew services list doesn’t show the service as started, check if there is another mongod running in the background:
ps auwx | grep mongod | grep -v grep
Check the last MongoDB startup error message with:
While in less, use <spacebar> to view the next page, <b> to go back, or <q> to exit. There should be an error message message indicating why the mongod process failed to start.