brew services. Cant start service. get "Bootstrap failed: 5: Input/output error"

dasqueel picture dasqueel · Aug 29, 2021 · Viewed 33.2k times · Source

running brew services start mongodb-community which yields:

Bootstrap failed: 5: Input/output error
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/<myUserName>/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist` exited with 5.

when I run launchctl load -w /Users/<myUserName>/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

yields

Load failed: 5: Input/output error

I recently upgraded macOs to BigSur 11.5.2.

Ive uninstall and reinstalled homebrew and xcode.

Answer

mari picture mari · Aug 31, 2021

try this

brew services restart <[email protected]>