[SERVER-51861] mongodb Error: couldn't connect to server 127.0.0.1:27017 Created: 28/Oct/20  Updated: 28/Oct/20  Resolved: 28/Oct/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Amon Kwok Assignee: Edwin Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

Follow the installation steps end-up with "mongodb Error: couldn't connect to server 127.0.0.1:27017" when run the command "mongo"

Command "brew services start mongodb-community@4.4" status stated service is started, but actually service is not started and nothing in mongodb.log file.

 

And so many have the same issue and asking all over the internet, but no answer from mongoDB team, left everybody like a headless chicken. 

 



 Comments   
Comment by Edwin Zhou [ 28/Oct/20 ]

Hi aependy@gmail.com,

The SERVER project is for bugs and feature suggestions for the MongoDB server. For this issue we'd like to encourage you to start by asking our community for help by posting on the MongoDB Developer Community Forums.

Here's a couple of steps you can take to help you get started:

  • Check top or ps to confirm that the mongod process is running. 
  • Try brew services restart mongodb-community@4.4.

If the discussion there leads you to suspect a bug in the MongoDB server, then we'd want to discuss it here in the SERVER project.

Kind regards,
Edwin

 

Comment by Tim Fogarty [ 28/Oct/20 ]

Hi aependy@gmail.com, sorry to hear you are having trouble. This Jira project is only for tracking development and bugfixes for the MongoDB Database Tools (mongoimport, mongodump, etc.). So this isn't the best place to ask about installing the server. I will move this ticket to the SERVER Jira project - they might be able to help further. 

You could also post your question in the MongoDB Community Forum here: https://community.mongodb.com/. Additionally, if you have a MongoDB Enterprise Advanced subscription, you can file a ticket through the MongoDB Support Portal: https://support.mongodb.com/welcome.

Generated at Thu Feb 08 05:26:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.