Restarting mac corrupts Mongo 4.4 when running with Homebrew

Hi!

I installed Mongo using Homebrew and created a service using the instructions. Everytime I restart the computer, Mongo won’t restart as it encounters a SIGABRT error. I’ve tried repairing the DB, but mongo stops with segmentation fault. I’ve removed lock files, tmp socket files, and followed every stackoverflow/blog post and the only fix is removing the data directory and restoring an older version.

The problem appears unrelated to Mongo being a service. If I do control+c, Mongo will be unable to restart cleanly:

scottamesmessinger@comp ~ % mongod --config /opt/homebrew/etc/mongod.conf
^C
zsh: abort      mongod --config /opt/homebrew/etc/mongod.conf
scottamesmessinger@comp ~ % 
scottamesmessinger@comp ~ % mongod --config /opt/homebrew/etc/mongod.conf
zsh: abort      mongod --config /opt/homebrew/etc/mongod.conf

As you can see, when I try to restart Mongo, it fails after a second or two.

Previously, I was using the MongoDB.app mac app which never had this problem. Any idea what’s going on or how to prevent it?

I can’t attach the logs as a new user, but happy to share