Skip to content
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

DB: Setting up a new Cluster/DBase #1

Closed
paulywill opened this issue May 27, 2021 · 3 comments
Closed

DB: Setting up a new Cluster/DBase #1

paulywill opened this issue May 27, 2021 · 3 comments
Assignees

Comments

@paulywill
Copy link
Member

Need a place to put the data!

image

@paulywill
Copy link
Member Author

Tried creating a fresh Cluster using the freeCodeCampBarrie gmail address, but kept getting an error.

MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/

Decided to use an existing database that was working.

I will continue to troubleshoot what I messed up.

@paulywill
Copy link
Member Author

I think the issue was my machine.

I am using a USB Live Ubuntu that's running on UTC time.

According to someone on Stackoverflow this could be the cause.

Just verifying on my other machine (Mac) if my initial connection connection resolves this error as it's running on Local Time (Eastern/Toronto).

@paulywill
Copy link
Member Author

Yup!
It was all about the time setting on my development machine! Wacky, but thankfully that Stackoverflow user pointed me in the right direction. Must be a wonderful gottchya-security-feature from MongoDB Atlas.

But once I confirmed that new cluster was working on my Mac, I tried the Ubuntu machine and it connected fine just like the previous setup database.

image

@paulywill paulywill self-assigned this May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant