-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
GenericMMSError: Instance failed to start within 10000ms #771
Comments
i am pretty sure the template had some extra notes. assuming from the version
a note to self: docker image
docker currently shipped qemu version does not support AVX instructions, which mongodb requires since 5.0 (and mongodb-memory-server's current default is a 5.x version), see #710
this error should not happen and throw a actual error, could you post the full log of when this error occurs with debug logs enabled? assuming you are using a mac with arm and running x86 docker, then your only options are:
|
@hasezoey This is the full debug log:
I will try to downgrade to 4.x mongodb version and will update here in sometime. |
Downgrading mongodb to 4.x resolves my issue. I added below config in package.json file and it worked.
Thanks @hasezoey . |
thanks for the debug log, from which it seems like no error was ever thrown and the childprocess just hangs, which the timeout was made for |
I have exactly the same issue, but I do need to use Mongo 5+ because some specific queries and configurations of the project so I can't run my unit tests (where I'm using this package), because this issue :/. How would be the workaround then? I mean, I can run MongoDB 5+ as a replicaset inside docker, but mongodb server throws this error. I tried to activate Rosetta in Docker and the error changed a little bit, saying that the CPU does not have AVX support. Anyway, is there a way to deactivate that and still using Mongo 5+? Thank you! |
to my knowledge AVX is a hard requirement for mongodb 5.0 and up and cannot be disabled for x86_64 builds (unless you somehow build from source?)
what image are you using for that? from my knowledge there are only the following "workarounds":
(it is likely that a image exists which does work, but MMS only sources its binaries from the official mongodb archive, which has a hard-requirement of AVX when compiled for x86_64) |
Well, I'm using the following docker image on my M2 laptop. Believe it or not, it works on M1 (collegue machine) and on my M2 machine: v5 (d2c5bd63ff0c). This runs directly on Docker environment, with and without Rosetta activated and it is a whole ReplicaSet (3 nodes). The error happens only with Mongo Memory Server. The workaround that my friend had found was create a secondary ReplicaSet just for testing and connect to that, but that workaround should not work as that, because we are just using it for unit tests, so is too deep for that purpose. Conclusion, there should be a configuration or something different that can be set on Mongo Memory Server that could create this Mongo resource, without throwing the AVX resource issue. If it is working outside as expected, it should be a way fix this and do it on memory. I found the image by its difest SHA-256, this is the Docker image I'm using can be found as: |
image if this works, then using ubuntu arm binaries will also work (from older experiences reading issues, i had the assumption that docker arm cannot run arm because it is using qemu x86_64 to run the containers) note that this only works if the container you are running MMS in is also ARM64 and running ubuntu (not alpine) and you will have to overwrite the used Config option |
That assumption is right. And it works, the thing is, that is does not work with Mongo Memory Server. I tried to run it as I didn't modified the |
What would be the correct archive name? Because I used one for Amazon instead of Ubuntu. I will give it a try. That would explain the error respect to "Binary" |
you should not use
if you want to post it you can
Docs:
if the container you are running MMS in is arm64, then i dont know why the mongo container works but this not, maybe post the full debug log of when you are running a arm64 container with MMS and have Note: i dont have a ARM64 system to test this on (and also no mac) |
Ok, I understood the process, the thing is that the project is using node:16 image, and as dar as I know, that is Debian 10, and Mongo is not listing any Debian 10 ARM 64 archive. What do you suggest in this scenario? |
the ubuntu binaries can be used in a debian image from my knowledge |
I thought the same, I did the following:
|
please provide full logs |
Versions
package: mongo-memory-server
What is your question?
when I write this following code
I get the following error
Note: I am running docker container over m1 chip(arm64 processor).
how can I overcome these errors ?
The text was updated successfully, but these errors were encountered: