@jimmyc2018 maybe your server restarted without you knowing and mongo and nodebb didn't automatically start back up?
Have you tried starting the mongod service and then starting nodebb?
Btw, you shouldn't run NodeBB with root or sudo. That may also be causing the problem.