To Fix Bootstrap failed: 5: Input/output error Error: Failure while executing Error just Run mongodb through homebrew. Here you have to just run mongodb through homebrew launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist followed by launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist It will help you to remove the error.