Scientific UI Design vs Arts

Software UI designs should start with being scientific. Scientific here means well organized. One of the way for UI to be organized is to: M...

20 March, 2025

MongoDB Installation and the Issue in VM Cloud Server

MongoDB suggests that it requires a system of at least 2 cores, 2 GB RAM; but that might not be a problem. After installing the latest MongoDB (eg. v8.0 this 2025) with steps in official documentation, starting the mongod service and status (sudo service mongod status) may show the following error:

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:
  1. Remove new MongoDB, install v4:
    https://stackoverflow.com/a/68973100/5581893
  2. 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