MongoDB Failing to Start - ***aborting after fassert() failure

前端 未结 6 2105

I am new to Ubuntu (Linux tbh). I encountered problem with starting MongoDB service. I want to created web app using Ruby on Rails and MongoDB but mongo seems to fail to sta

相关标签:
6条回答
  • 2020-12-01 18:23

    For me, it was because of the bad data inside the folder: ‘/data/db’

    Solution that worked for me: Remove all the files inside '/data/db'

    0 讨论(0)
  • 2020-12-01 18:24

    SOLUTION by kometen

    Does the file /tmp/mongodb-27017.sock exist? If so try to delete it, ie. 'sudo rm /tmp/mongodb-27017.sock'.

    0 讨论(0)
  • 2020-12-01 18:31
    mongo --shell
    

    It worked for me on ubuntu

    0 讨论(0)
  • 2020-12-01 18:42

    If you use Ubuntu, try:

    sudo mongod
    
    0 讨论(0)
  • 2020-12-01 18:47

    The problem can also be due to mongodb using up all the disk space. That was the case for me. You can install ncdu with this command: sudo apt install ncdu

    This will help you in looking at the disk usage. Use the command: ncdu -x /

    Remove the unwanted dbs from /var/lib/mongodb/

    0 讨论(0)
  • 2020-12-01 18:48
    sudo mongod
    

    (suggested by @João Bortolosso)

    after (suggested by @fresz):

    sudo rm /tmp/mongodb-27017.sock
    

    worked on mac!

    0 讨论(0)
提交回复
热议问题