brew services start mongodb-community not working on m1 mac - mongodb

I was following mongodb docs to install mongodb-community on my mac. But this error appeared:
Bootstrap failed: 5: Input/output error
Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/lakshyadhariwal/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist` exited with 5
I tried to do the final step of brew services start mongodb-community, googling and tried various answers online but none worked.

Related

How do I fix this MongoDB Permission Denied error?

I'm using:
brew install mongodb-community#6.0
To install mongoDB. it keeps giving me the error :
==> Installing mongodb/brew/mongodb-community dependency: mongodb-database-
Error: An exception occurred within a child process:
Errno::EACCES: Permission denied # dir_s_mkdir - /usr/local/Cellar/mongodb-database-tools/100.6.1
How do I fix that?

Unable to start tailscaled service on debian 11 container

Tailscale version 1.22.0
Your operating system & version Debian bullseye 11
version
Hello sir, could you guide me how to start tailscaled.service. i got an error message like this :
failed to connect to local tailscaled; it doesn’t appear to be running (sudo systemctl start tailscaled ?)
And when i try to run this command sudo systemctl start tailscaled. I got another different error :
Job for tailscaled.service failed because the control process exited with error code.
See “systemctl status tailscaled.service” and “journalctl -xe” for details.
Thanks
The journalctl output it suggests to run would tell the error it is experiencing. I'd recommend running:
journalctl -u tailscaled --since="2 hours ago"

Error while trying to run postgresql using homebrew

I get this error after running
brew services start postgresql
Bootstrap failed: 5: Input/output error
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/user/Library/LaunchAgents/homebrew.mxcl.postgresql.plist` exited with 5.

Cannot start mongodb in Mac

In my mac 11.5.2, I wanted to install mongodb. I tried to install by brew install mongodb-community#3.2, Then brew services run mongodb-community#3.2 returned
Bootstrap failed: 5: Input/output error
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /usr/local/opt/mongodb-community#3.2/homebrew.mxcl.mongodb-community#3.2.plist` exited with 5.
And brew services shows
Name Status User Plist
mongodb-community#3.2 error SoftTimur /usr/local/opt/mongodb-community#3.2/homebrew.mxcl.mongodb-community#3.2.plist
nginx stopped
Could anyone help?

error starting mongodb with brew start on macOS Catalina 10.15.6

I have tried a few troubleshoots to no avail. They don't seem to match my specific error. I start mongodb with
> brew services start mongodb-community
The terminal says it is succesfully started, but when i
> brew services
to check mongodb's status it says error. No explanation.
But if I open up a new terminal and run mongo, I do however get a more detailed error.
> connecting to: mongodb://127.0.0.1:27017/?
> compressors=disabled&gssapiServiceName=mongodb
> Error: couldn't connect to server 127.0.0.1:27017, connection
> attempt failed: SocketException: Error connecting to
> 127.0.0.1:27017 :: caused by :: Connection refused :
I have found a solution to this problem. The socket exception error is apparently being thrown because the root owns the
/tmp/mongodb-27017.sock
solution
sudo rm -rf /tmp/mongodb-27017.sock
re start mongodb with
brew services start mongodb-community#4.4
it will create a new
/tmp/mongodb-27017.sock
which is owned by user. You can check by
ls -lsah /tmp/mongodb-27017.sock
my output was then
0 srwx------ 1 userName wheel 0B Apr 8 12:05 /tmp/mongodb-27017.sock
where username was previously root.
my solution was found here
https://stackoverflow.com/a/62196227/15311479