Connect ECONNREFUSED 127.0.0.1:27017

I’m receiving error connect ECONNREFUSED 127.0.0.1:27017 randomly today after my DB connection worked for over two years.

I updated brew and ran brew install mongodb-community@6.0, which worked. However, brew services start mongodb-community@6.0 gives me the below error:

    Bootstrap failed: 5: Input/output error

    Try re-running the command as root for richer errors.

    Error: Failure while executing; `/bin/launchctl bootstrap gui/501 
    /Users/chaseschlachter/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist` exited with 5.

brew services restart mongodb-community@6.0 appears to work but when I run brew services list I see below:

Name              Status       User            File
mongodb-community error  15872 chaseschlachter ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

How do I reconnect my DB?

1 Like