Skip to content
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

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that! #18

Open
gyrex opened this issue Dec 13, 2024 · 4 comments

Comments

@gyrex
Copy link

gyrex commented Dec 13, 2024

I'm using the Docker image on a Proxmox server with a N5105 CPU which doesn't appear to have AVX instructions and I'm getting the error below when the MongoDB container attempts to start:

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!

  see https://jira.mongodb.org/browse/SERVER-54407

  see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2

  see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814

Is it possible to run an older version of MongoDB for Notesnook? Or is there another workaround someone could offer if possible please?

Many thanks in advance.

@dyw770
Copy link
Contributor

dyw770 commented Dec 13, 2024

You can try using an older version of mongodb. Just need to modify the docker-compose.yml file. But it does not guarantee that Notesnook can run normally.

notesnook-db:
  image: mongo:You version
initiate-rs0:
  image: mongo:You version

@gyrex
Copy link
Author

gyrex commented Dec 13, 2024

You can try using an older version of mongodb. Just need to modify the docker-compose.yml file. But it does not guarantee that Notesnook can run normally.

Thanks for your response. I found a docker image of MongoDB which doesn't require AVX but now I'm getting some other errors.

notesnook-db

/opt/bitnami/mongodb/scripts/entrypoint.sh: line 31: exec: --: invalid option

exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]

notesnook-initiate-rs0

/bin/sh: 1: mongosh: not found

@dyw770
Copy link
Contributor

dyw770 commented Dec 17, 2024

You can try using version 4.4.9

  notesnook-db:
    image: mongo:4.4.9
  initiate-rs0:
    image: mongo:4.4.9
    command:
      - -c
      - |
        mongo mongodb://notesnook-db:27017 <<EOF
          rs.initiate();
          rs.status();
        EOF

If the identity-server connection db times out, you can manually initialize MongoDB once.

docker compose exec -it notesnook-db /bin/bash
mongo mongodb://notesnook-db:27017
rs.initiate();
rs.status();

Exit Container and exec

docker compose up -d

This does not guarantee complete normal operation. Good luck to you

@allentd
Copy link

allentd commented Dec 17, 2024

Are you sure the CPU doesn't have AVX support?

If it a VM, just use "Host" flag. CPU tab when creating a VM, or Hardware > Processors > Type to edit existing VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants