#MongoDB Connection timout

1 messages · Page 1 of 1 (latest)

idle grail
#

Hey

I'm having an issue with MongoDB. It was working fine, but now I'm getting a timeout error. Do you guys have any idea why this might be happening?

Traceback (most recent call last):
File "/root/Loopify/main.py", line 57, in connect_db
await func.MONGO_DB.server_info()
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1922, in server_info
self.admin.command(
File "/usr/local/lib/python3.10/dist-packages/pymongo/_csot.py", line 108, in csot_wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymongo/database.py", line 893, in command
with self.__client._conn_for_reads(read_preference, session, operation=command_name) as (
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1369, in _conn_for_reads
server = self._select_server(read_preference, session, operation)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1316, in _select_server
server = topology.select_server(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 368, in select_server
server = self._select_server(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 346, in _select_server
servers = self.select_servers(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 253, in select_servers
server_descriptions = self._select_servers_loop(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 303, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: ac-delo9tk-shard-00-01.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),ac-delo9tk-shard-00-02.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),ac-delo9tk-shard-00-00.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 66735aaceb3a1e52e3433b6d, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-delo9tk-shard-00-00.vxyxyw3.mongodb.net', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('ac-delo9tk-shard-00-00.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>, <ServerDescription ('ac-delo9tk-shard-00-01.vxyxyw3.mongodb.net', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('ac-delo9tk-shard-00-01.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>, <ServerDescription ('ac-delo9tk-shard-00-02.vxyxyw3.mongodb.net', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('ac-delo9tk-shard-00-02.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>
#

@stray pine sorry for the interruption.

stray pine
#

I will check it later I’m on the train right now

idle grail
#

Alright, it's actually 5 AM here, cuase of that I was in a bit of a hurry

#

but no worrys

stray pine
#

There a lot of similar issues

idle grail
#

idid

#

well none of them works

stray pine
#

Ok, but now I’m not able to test it

#

I’m using my phone right now

#

I need a pc to do that

idle grail
#

yea iknow

#

told u

#

no worrys

stray pine
#

I thought you said now worry

idle grail
#

well dead

#

it was a mistake so yeah

#

I can barely see the monitor right now, so I'm not sure how I'm i even typing.

stray pine
#

can i have your mongodb url

idle grail
#

if you can delete this forum