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
Please help.. I get process.nextTick(function() { throw err; }) #2861
Comments
How are you connecting with mongoose? If the mongod server uses auth, are you specifying auth credentials when you connect? |
Thank you for your fast response. It doesn't work even without --auth in mongod. I get the same error. :) Thank you.. |
How are you connecting with mongoose? Can you connect using the shell? |
Yes I can connect it with the shell. Also I can connect mongoose without auth credentials in my Dev MacOS machine. Same code doesnt work in Ubuntu. I also uninstalled and reinstalled mongoose just in the Ubuntu Machine. Currently I connect without --auth like in my local and it works..
I hope I understood your question properly. Many thanks, |
Hmm can you connect using the mongodb shell on the ubuntu machine? Also, can you make sure the path that you're passing to mongoose.connect() is correct? |
No response for a couple weeks and can't repro. Re-open if still its an issue. |
This is still reproducible in 4.0.0 module. |
Please provide steps to repro @luqman523 |
The matter in discussion can easily be debugged by inspecting the url/uri, and decreasing your timeout. If you find yourself with a timeout error at 1 - 10 ms, it serves as a good sanity check. Otherwise, what you are experiencing is likely due to an improper URL or import that you may also try to substitute as a connection string. In my experience this is not an issue. |
I am still getting the same problem Using modulus.io mongodb |
Can you connect using the mongodb shell? |
Make sure you turn on mongodb by running 'mongod' inside your teminal or command line. |
Same issue :( process.nextTick(function() { throw err; }) |
Mongo server status: |
Try 127.0.0.1 instead of localhost |
@vkarpov15 Is there a reason why 127.0.0.1 works but not localhost? |
Not sure, DNS is up to your OS, mongoose and mongodb don't do anything with that. |
Versions I am using
My Dev environment is Mac and everything works good. I pointed my dev environment to live mongoDB and it works.
But when I try the same in my staging with the above versions I get the below error after a while.
Please help.
I tried setting up auth in mongod, Ports are open for all the required IP addresses.
Please help me fix this.
Many thanks,
Karthik
The text was updated successfully, but these errors were encountered: