You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can connect via mongo3t using the following directly to 30000, or 30001
When I connect programmatically through my app using mongoose via mongodb://localhost:30000/ttt uri, I have no issue.
The problem comes when I try to connect using mongodb://localhost:30000,localhost:30001,localhost:30002/ttt?replicaSet=rs0, it will complain this.
[2020-08-2922:29:44][error]CouldnotconnecttoanyserversinyourMongoDBAtlascluster.Onecommonreasonisthatyou're trying to access the database from an IP that isn'twhitelisted.MakesureyourcurrentIPaddressisonyourAtlascluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `ts-node-dev --no-notify src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Joseph\AppData\Roaming\npm-cache\_logs\2020-08-29T14_29_44_686Z-debug.log
I'm not sure why it is complaining about the MongoDB Atlas cluster though. I'm running this locally on my machine using docker
This discussion was converted from issue #418 on June 09, 2022 00:00.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to setup mongo-replicas setup using docker-compose. Here's my script
click to show
This is my
rs.status()
when I run the command inmongo-primary
click to show
I can access
mongo-express
I can connect via
mongo3t
using the following directly to30000
, or30001
When I connect programmatically through my app using
mongoose
viamongodb://localhost:30000/ttt
uri, I have no issue.The problem comes when I try to connect using
mongodb://localhost:30000,localhost:30001,localhost:30002/ttt?replicaSet=rs0
, it will complain this.I'm not sure why it is complaining about the
MongoDB Atlas cluster
though. I'm running this locally on my machine usingdocker
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions