-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
MongoDB not supported by CPU #4
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
You're not the only one but it is what it is. It's a mongodb restriction and the links provided in the log entry explain what it is. Nothing we can do. |
For anyone else encountering this issue on ARM (specifically I am running on a Raspberry Pi 4), the version
It seems that version: "3"
services:
db:
# 4.4.18 is the last version that runs on RPi's ARM.
# Also, we can't use more than 4.4 for Unifi
image: arm64v8/mongo:4.4.18
volumes:
- unifi-db:/data/db
secrets:
- source: init-js
target: /docker-entrypoint-initdb.d/init-mongo.js
network-application:
image: lscr.io/linuxserver/unifi-network-application:latest
environment:
PUID: 1000
PGID: 1000
TZ: Europe/Rome
MONGO_USER: unifi
MONGO_PASS: ${DB_PASSWORD}
MONGO_HOST: db
MONGO_PORT: 27017
MONGO_DBNAME: unifi
# Optional
# MEM_LIMIT: 1024
# MEM_STARTUP: 1024
volumes:
- unifi-data:/config
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
# Optional
- 1900:1900/udp
- 8843:8843
- 8880:8880
- 6789:6789
- 5514:5514/udp
volumes:
unifi-data: {}
unifi-db: {}
secrets:
init-js:
file: "${INIT_MONGO_JS}" |
On my X64 machine I used docker tag mongo:4.4.6 to make it work in the end. This seems to be the last version without required AVX support as far as I heard. |
WOW thanks,m this worked on my Raspberry Pi 4 2gb running Raspberry Pi OS 64 bit, |
The MongoDB now can be run in the Raspberry Pi 5(with 4GB or 8GB), because the processor of Raspberry Pi 5 is the ARM Cortex-76, that are the ArmV8.2 that supports the AVX |
Regarding the error message, if you're running this one vm hosted on proxmox, you would need to set the CPU type to "host". I had a similar issue, but my server and it's CPUs are much older than you make yours out to be. On the off chance that maybe you have a similar setup, maybe try the proposed change? |
My simplest settings in docker compose:
String connection: mongodb://orangepi:[email protected]:27017/ [lscpu] |
Is this a new feature request?
Wanted change
I tried switching to Unifi Network Application, and tried to set up MongoDB.
Unfortunately at bootup I get the message, that MongoDB is not supported by my CPU:
Are there any other way to use the new controller docker?
My server is around 3-4 years old.
I think there must be more people unable to run MongoDB. Maybe consider supporting other databases.
Reason for change
I can't be the only one with this issue.
Proposed code change
No response
The text was updated successfully, but these errors were encountered: