-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded mongo not working on M1 macbook: Bad CPU #494
Comments
@KasperWolsink99 can you execute /Users//.embedmongo/fileSets/75f255a9a3917075d50c1da18ca4d30fbc1f9d1148349e1bb0544af13824da69/mongod by yourself? |
Yes this seems to be working fine |
@KasperWolsink99 As i do not own a m1-apple i can only guess.. is the openjdk for the m1 cpu? |
I tried running it with the Zulu JVM but the error still persisted. However, I did end up finding a solution. The mongod binary is a x86 executable:
The mongod instance installed through homebrew was an arm based executable. It is a bit hacky but for my use-case it is sufficient. Thanks for the help! |
@KasperWolsink99 .. hmm.. this is strange. There should be an arm-version for 6.0.6 (see https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo.packageresolver/blob/4b0ca475ecc54f75b2bdde1bf88e059f73622bb1/src/main/java/de/flapdoodle/embed/mongo/packageresolver/OSXPackageFinder.java#L80) .. do you have any log information/stack trace? Maybe there is a hint there.. |
@michaelmosmann it is worth pointing out that my colleagues also have a M1 mac and they did not encounter this exact problem. What is really interesting though is that their mongo executables used by flapdoodle were also x86 executables. Maybe the reason it worked for them is because they have Rosetta configured differently? I am actually not sure but it might be worth it to confirm this with someone else on an ARM based mac. The complete stack trace (left out spring specific stuff):
|
@KasperWolsink99 are there any updates on this issue? |
@michaelmosmann not really aside from the latest stacktrace I posted. |
I just installed rosetta 2 on your mac using |
I have some issues getting Flapdoodle to work on my machine.
Im using a spring boot application and whenever I try to start an embedded mongo instance, I get this stack trace:
flapdoodle version: 4.10.0
mongodb-community version: 6.0.6
jdk version: Openjdk 17
Macbook air with apple M1
OS version: Sonoma 14.0
Im more than happy to supply any additional information if needed.
The text was updated successfully, but these errors were encountered: