-
Notifications
You must be signed in to change notification settings - Fork 50
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
Sometimes the mongo object is null and it stops the webserver #14
Comments
It seems this happens when connecting to mongo fails? If this is true, please report an error that makes sense, e.g. "Cannot connect to mongodb at 127.0.0.1:123" It would be preferable to get this error at startup (fail-fast). I got it only when trying to browse project. |
I would say that this doesn't happens when we initiate the connection towards mongo but when it is somehow being dropped or we close it intentionally when we shouldn't have to. I will try to check the issue, but as it is not reproducible I cannot guarantee a quick solution. |
I see that the connection is initialized at startup, though the error message could be improved
|
re: dropping an existing connection, tcpview.exe from Sysinternals has an option to kill existing connections. WebGME successfully reconnects when you do this. I'll keep an eye out for a reliable repro. |
could someone who encounters the issue please send npm list and configuration context info? In the meantime I will create some immediate-respones for the initializing issues |
Some initial logs have been added to console reporting as well (they were existing in the log file, but as they were initiated by an external library and not propagated it was not straightforward how to catch them...) although the execution of the server is not stopped. Closing the issue, but please reopen it if some similar error occures. |
We have seen this on Mac and Windows. We do not know how to reproduce it. We have seen it when the webserver was running from 'home' and connected to a mongodb, which is located at 'work'.
/Users/zsolt/GitHub/webgme-domain-tools/node_modules/webgme/storage/mongo.js:145
mongo.collectionNames(function (err, collections) {
^
TypeError: Cannot call method 'collectionNames' of null
at Object.getProjectNames (/Users/zsolt/GitHub/webgme-domain-tools/node_modules/webgme/storage/mongo.js:145:10)
The text was updated successfully, but these errors were encountered: