Hi @Chase_Schlachter,

Assuming you haven’t changed any paths from the Homebrew default, you can view the last lines in the log (eg last 20) with:

tail -n 20 $(brew --prefix)/var/log/mongodb/mongo.log

Or using grep with -C# to show lines of context before/after a pattern match:

grep -C5 “shutdown:” $(brew --prefix)/var/log/mongodb/mongo.log

What version of MongoDB were you running prior to the upgrade? In-place upgrades are only supported for adjacent major release series, so if you were not running MongoDB 5.0 prior to installing 6.0 I would expect find an error message like:

Failed to start up WiredTiger under any compatibility version. This may be due to an unsupported upgrade or downgrade.

You could look for the last instance of this specific message with:

grep “Failed to start” $(brew --prefix)/var/log/mongodb/mongo.log | tail -n1

Please see the MongoDB documentation for supported in-place upgrade procedures: https://www.mongodb.com/docs/manual/release-notes/6.0-upgrade-standalone/.

Regards,
Stennie

4 Likes