@dunlix So you updated NodeBB only? No other system updates that may have touched mongodb, correct? Cuz, if so, then this just seems bizarre - why, oh why, would a NodeBB update/grade have anything to do with mongodb? Mongodb should still start regardless, independent, of any NodeBB changes. It is not like they are joined at the hip. One uses your pkg manager to update, whilst the other is.... other... depending on how you do it.
If sudo is working for you, and assuming that you are otherwise utilizing systemd to launch mongodb, I suggest you either 1) examine the mongodb service file and tweak to point to correct path, or 2) relocate that mongodb data dir to where mongodb expects to find it. Then go from there.
Hope this helps. But, like I said, unless you also ran some system wide updates, this seems rather bizarre.
Good luck and have fun! o/
@dunlix said in Mongodb not working:
realized that it wasn’t loading the confit file or something, because there error was that it couldn’t find a database at this path
This needs to be investigated further. Logs??