MongoDB Installation Error at install

I’m trying to install the MongoDB Community Edition by following MongoDB’s guide here. I’m on an M1 Mac running MacOS 12.6.

Brew (seemingly) installs MongoDB with no problems, however, when I go to run

brew services start mongodb-community@6.0

I encounter this error:

Error: Permission denied @ rb_sysopen - /Users/[username]/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

When I go to view the file mentioned, using

ls -la ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

I get the following error:

ls: /Users/[username]/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist: No such file or directory

I’ve uninstalled mongodb twice now and reinstalled it but nothings changed. Has anyone had this problem?

Hi @Braeden_Kilburn ,

Welcome to The MongoDB Community Forums! :wave:
I notice you haven’t had a response to this topic yet - were you able to find a solution?

The error looks like a file permission problem and should be unrelated to using an M1 mac.

I would try running brew doctor via, as this will detect & resolve common permission and install issues that affect brew .

If brew doctor doesn’t help, I would try:

sudo chown $(whoami) ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.