Open johntom opened 5 years ago
@johntom Thanks for posting! We'll take a look as soon as possible.
In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.
For help with questions about Sails, click here.
Are there any other error/debug messages, either on your side or on server side as to why it might fail, @johntom ?
@johntom - Also any further example code or repo with db configuration will help. Agree'd with @wulfsolter , any error/debug messages (if available) are crucial to further investigating this one. I'm playing around with ScaleGrid at the moment in attempt to replicate a connection issue but further details will help confirm what to replicate. Appreciate the detailed URL info so far 👍
Hi,
error:
Error: Failed to connect to MongoDB. Are you sure your configured Mongo instan
ce is running?
Error details:
{ MongoError: server SG-Brookbridge-22049.servers.mongodirector.com:48815 timed
out at Pool.
1) My connection string works fine with Sudio3t 2) Connection string works fine with native mongodb drivers tested with a non-sails app. 3) it easy to test with ScaleGrid,com as they have a 30 day trial Thanks, John
@johntom I was able to connect with the latest sails v1.2.3 and sails-mongo v1.0.1 using MongoDB on AWS through ScaleGrid.
mongodb://admin:<password>@SG-Sailsmongotest-22793.servers.mongodirector.com:27017/admin
This may be hitting limitations of the older sails-mongo adapter 0.12.1 (possibly sails v0.10 too). Testing it further with these versions now.
Here's a quick checklist for sails-mongo configuration in sails: https://sailsjs.com/documentation/tutorials/using-mongo-db#?developing-locally-with-mongodb
Thanks for checking.
On Tue, Jul 2, 2019 at 12:33 PM johnabrams7 notifications@github.com wrote:
@johntom https://github.com/johntom I was able to connect with the latest sails v1.2.3 https://www.npmjs.com/package/sails and sails-mongo v1.0.1 https://www.npmjs.com/package/sails-mongo using a basic mongodb setup on AWS in ScaleGrid.
mongodb://admin:
@ SG-Sailsmongotest-22793.servers.mongodirector.com:27017/admin This may be hitting limitations of the older sails-mongo adapter 0.12.1 (possibly sails v0.10 too). Testing it further with these versions now.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/balderdashy/sails/issues/6802?email_source=notifications&email_token=AAOKLAAGXS25ZGXJOAIO6CDP5N7PHA5CNFSM4H4NICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZB3CSA#issuecomment-507752776, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOKLAAFIOTNBWPH4B2V3X3P5N7PHANCNFSM4H4NICHA .
@johntom - It's possible these versions of Sails, Waterline, and sails-mongo may not be compatible, so I wanted to double check on which versions you're using for them?
Node version: 8.9.4 Sails version (sails):0.10 sails-mongo": "^0.12.2
Not sure what other info will be helpful
@johntom If it's feasible for the project, could you try this out with the last 0.x minor version of Sails (Sails v0.12.14) and latest revision of the 0.12.x sails-mongo (sails-mongo v0.12.3)?
Node version: 8.9.4 Sails version (sails):0.10 Mongo Waterline version_waterline@^0.12.1
I've succcesfully connected to mlab url:"mongodb://acct:xx5800@ds153380.mlab.com:53380/gallerynm?readPreference=primary"
but not with scalegrid
url:"mongodb://admin:password@SG-BBB-22047.servers.mongodirector.com:48815,SG-BBB-22048.servers.mongodirector.com:48815,SG-BBB-22049.servers.mongodirector.com:48815/clientbase?ssl=true&replicaSet=RS-BBB-0&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1&databases=clientbase"