Earlier today, I noticed the Ubuntu VM containing my mongodb instance was using a lot of memory, so I stopped the programs that used it and then restarted it. Suddenly, when I restarted it, mongodb now refuses to start.
Running sudo systemctl start mongod
and then sudo systemctl status mongod
returns the following:
Reinstalling mongodb did not change anything - same issue.
After a quick Google search I found out that the command sudo mongod --repair --dbpath /var/lib/mongod
could fix the problem - but that only responded with “Illegal instruction”. In fact, running mongod
at all just responds with “Illegal instruction” or “Illegal instruction (core dumped)”
What do I do?