skip to Main Content

I use macOS monterey (intel). I tried installing mongodb manually. Same problem. I used homebrew to install [email protected]. Same problem.

Nomatter what I try. I get this error. Please help!!!

2

Answers


  1. I have had exactly the same problem, though on an M1 Mac. After a lot of googling mongo.log messages and changing ownership and group of various files, I managed to get mongo up and running again by reverting to version 5.

    The sequence which should get you up and running is:

    brew services stop mongodb-community
    brew install mongodb/brew/[email protected]
    brew services start mongodb/brew/[email protected]
    

    A quick check using mongosh indicated all was up and running with no loss of data. I made a copy of my data before I made any changes, just in case:

    cd /opt/homebrew/var
    cp -a mongodb mongodbsave
    
    Login or Signup to reply.
  2. For me, it worked just by stopping and starting the MongoDB community service

    First Stop the service

    brew services stop mongodb-community

    then Start it again

    brew services start mongodb-community

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search