mongoDB (result= signal , code = killed , signal = ill
I
get this error when I want to activate mongo on linux and it won’t work
$ sudo systemctl status mongod
mongod.service – MongoDB database server
Loaded: Loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Event: Failed since Sun 2021-08-01 13:39:18 +03 (Result: Signal); 47 seconds ago
Documentation: https://docs.mongodb.org/manual
Process: 12854 ExecStart=/usr/bin/mongod –config/etc/mongod.conf (code=killed, signal=ILL)
Main PID: 12854 (code=killed, signal=ILL)
CPU: 19 ms
Aug 01 13:39:18 jr systemd[1]: Started the MongoDB database server.
Aug 1 13:39:18 jr systemd[1]:mongod.service: main process exits, code=killed, status=4/ILL
Aug 1 13:39:18 jr systemd[1]:mongod.service: Failed with “signal”.
When I type mongod
It said
$ Blinded
zsh: Illegal hardware instruction mongod
Solution
I have the same problem with the same message. Seems to be an issue with processor compatibility.
Find this article https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610
Use the following command to check if your processor has the flags mentioned in the answer:
cat /proc/cpuinfo
If not, you can try an older version of Mongo.
In my case, my processor can’t handle mongo 4.4, but mongo 4.2 is installed and works fine, but it depends on your processor and SO.