mongod.service: Main process exited, code=dumped, status=4/ILL
The meaning is 'ILL', it's related to illegal binary instruction which the MongoDB binary is compiled for CPU with AVX instruction but not available.
The only way to use MongoDB without AVX instructions is to use MongoDB 4 and earlier versions but now at start of 2025 only v5 and up to v8 are from official MongoDB distribution. MongoDB 5 onward won't work without AVX.
See lowest possible official version at: https://www.mongodb.com/docs/manual
Check if the command below has no output, no output means no AVX and must install MongoDB 4 and before:
cat /proc/cpuinfo | grep avx
If MongoDB latest is installed, it's no use, find packages installed and remove them:
# Ubuntu
sudo apt list --installed | grep mongo
# Then sudo apt remove them
Attempt to find some old Linux repo with MongoDB 4, solution:
- Remove new MongoDB, install v4:
https://stackoverflow.com/a/68973100/5581893 - Disable MongoDB upgrade:
https://stackoverflow.com/a/70308724/5581893
Outcome: MongoDB 4 is still working with VM of 1 core + 1 GB RAM😃
No comments:
Post a Comment