-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show error message on init when NodeBB is unable to connect to the database #2322
Comments
Weird I thought we already log error messages if db connection fails You are on mongo right? |
Yeah I am. This is my log when I try to launch without mongo running:
|
Are you starting with ./nodebb start or node app etc? I'll give this a shot now. |
Is what I get on latest when mongo isn't running. |
Oh you are on windows? 😨 |
Yes haha, I start with I do get the error message when I run |
Yeah thats weird since both node app and node app --upgrade call db.init. |
Can you update to latest and comment out https://github.com/NodeBB/NodeBB/blob/master/app.js#L123 and see if you get a log on windows? If not im out of ideas :) |
So I also just discovered the weirdest thing... Just arrived at work and decided to try it out on my laptop, and it does show the error. Both on 0.5.x branch. I'll try your idea when I get home to see if that fixes it for my PC. |
Yeah the error message displays fine with that commented out, but now it also displayed fine without it commented out... I'm guessing it's a timing issue, where the process is already exited before winston logged the error? |
I'm not sure what's going on, winston just does a
node -v 0.10.26 |
It shows when doing
--upgrade
, but doesn't seem to show when just running the app.js.I am using mongo, if that matters.
The text was updated successfully, but these errors were encountered: