Reputation: 61
After restarting the server, MongoDB, stopped working.
When I start service mongod start
and gives the default message: mongodb start/running, process 6986
But it so soon after, does not give error messages and even saved log.
And when I start which wants executable: mongo / mongod / mongorestore / etc ..
it gives the following message:
Attempt to add global initializer failed, status: DuplicateKey ForkServer
Aborted (core dumped)
I'm using MongoDB 3.2
on Ubuntu 14.04.2
I've reinstalled the MongoDB already made a downgrade and keep getting the same message.
Thanks in advance.
Upvotes: 6
Views: 14856
Reputation: 11
I had this error on last version, that now is 5. I installed old 4.4 version, and all works perfect.
Upvotes: 1
Reputation: 497
To troubleshoot this problem you have to uninstall and completely remove all files related to MongoDB by using this link
and then run one by one
sudo apt update
sudo apt install mongodb
sudo systemctl status mongodb
That's it this steps are working for me
Upvotes: 0
Reputation: 647
I ended up having this same problem. I received the error message mongodb.service: Failed with result 'core-dump'.
To fix it, you should run:
sudo mongod --repair --dbpath /path/to/mongodb
Upvotes: 7