Androz2091 / AtlantaBot

🤖 Another powerful Discord Bot with a web-dashboard used by more than 130k users!
https://www.atlanta-bot.fr
GNU General Public License v3.0
848 stars 578 forks source link

MongoDB connection errors. #523

Open Considerated opened 3 years ago

Considerated commented 3 years ago

Hi, I'm trying to use Atlanta BUT I cannot connect to the mongodb cluster. I get this error:

MongooseError: Operation `members.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (C:\Users\progamer68\CloudBot\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:197:23)
    at listOnTimeout (internal/timers.js:555:17)
    at processTimers (internal/timers.js:498:7)
MongooseError: Operation `users.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (C:\Users\progamer68\CloudBot\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:197:23)
    at listOnTimeout (internal/timers.js:555:17)
    at processTimers (internal/timers.js:498:7)
[2021-07-21 13:36:51.606]: ERROR Unable to connect to the Mongodb database. Error:Error: querySrv ETIMEOUT _mongodb._tcp.cloud.2pzvo.mongodb.net

I've setup Mongodb correctly, made sure I used the correct username/password, whitelisted all IP's and made sure I used the right database, but I don't seem to understand whats the problem.

le-show-de-didoub74 commented 3 years ago

Are you sure you have installed discord.js@12.5.3 ? with the release of the 13.0.0 when you donpm i discord.js he install discord.js version 13, so try to do npm i discord.js@12.5.3

Considerated commented 3 years ago

It is discord.js v12, the latest sub-version of it. The problem is with the mongodb

S1mp1yDucky commented 2 years ago

Update everything