I have been experiencing an issue when trying to run MongoDB 6.0.5 on my Ubuntu system with an AMD Ryzen 5 5500U processor (x86_64 architecture). When attempting to start the MongoDB service, I receive an “Illegal Instruction” error (signal=ILL), and the service fails to start. I have tried multiple troubleshooting steps, such as reinstalling MongoDB, checking the configuration file, and ensuring my system is up to date, but the issue persists.
Here is the error log from my system:
mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Sun 2023-03-19 21:05:35 UTC; 7s ago
Docs: https://docs.mongodb.org/manual
Process: 1870 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
Main PID: 1870 (code=dumped, signal=ILL)
CPU: 5ms
mar 19 21:05:35 database systemd[1]: Started MongoDB Database Server.
mar 19 21:05:35 database systemd[1]: mongod.service: Main process exited, code=dumped, > status=4/ILL
mar 19 21:05:35 database systemd[1]: mongod.service: Failed with result 'core-dump'.
My system information is as follows: Linux database 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux.
I understand that MongoDB requires an AMD Bulldozer or later processor for x86_64 systems, and the Ryzen 5 5500U is based on the Zen 2 architecture, which should be compatible. However, I am still encountering issues.
I would appreciate any assistance or insights from the community on how to resolve this problem or any suggestions for further troubleshooting steps.
It’s basically those steps. Later i’ve tried with 6.04 and a 5.0 version as well, none of them worked. Them i’ve tried the Turnkey LXC Container for Mongodb (it uses the 4.4.4 version) and it worked really well. But i’m sad because i was willing to use latest version since i’m developing a new app and making a virtual machine for the database only for that purpose.
Upon looking I found that Proxmox VM, uses KVM64 as the default CPU, and KVM64 doesn’t support full AVX instruction. As a result, it is not compatible with binaries compiled for newer microarchitectures, such as MongoDB 5.0+.