-
Type:
Task
-
Resolution: Works as Designed
-
Priority:
Unknown
-
None
-
Affects Version/s: 4.0
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Hello,
I recently started getting errors from the pymongo driver. I spotted that 4.0 was release in the last couple of days. The error I receive is..
"pymongo.errors.AutoReconnect: connection pool paused"
I run the CI and pull in the latest version of pymongo. I've fixed this by installing a specific version...
pip install pymongo==3.12.2
Full trace from one failing CI...
Run mlaunch --replicaset --sharded shard01 shard02 shard03 --auth --username admin -*** 6launching: "mongod" on port 27018 7launching: "mongod" on port 27019 8launching: "mongod" on port 27020 9launching: "mongod" on port 27021 10launching: "mongod" on port 27022 11launching: "mongod" on port 27023 12launching: "mongod" on port 27024 13launching: "mongod" on port 27025 14launching: "mongod" on port 27026 15launching: config server on port 27027 16pymongo.errors.AutoReconnect: connection pool paused 17 18The above exception was the direct cause of the following exception: 19 20Traceback (most recent call last): 21 File "/home/runner/.local/bin/mlaunch", line 8, in <module> 22 sys.exit(main()) 23 File "/home/runner/.local/lib/python3.8/site-packages/mtools/mlaunch/mlaunch.py", line 2073, in main 24 tool.run() 25 File "/home/runner/.local/lib/python3.8/site-packages/mtools/mlaunch/mlaunch.py", line 542, in run 26 getattr(self, self.args['command'])() 27 File "/home/runner/.local/lib/python3.8/site-packages/mtools/mlaunch/mlaunch.py", line 647, in init 28 self._initiate_replset(members[0], "configRepl") 29 File "/home/runner/.local/lib/python3.8/site-packages/mtools/mlaunch/mlaunch.py", line 1676, in _initiate_replset 30 rs_status = con['admin'].command({'replSetGetStatus': 1}) 31 File "/home/runner/.local/lib/python3.8/site-packages/pymongo/database.py", line 594, in command 32 with self.__client._socket_for_reads( 33 File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/contextlib.py", line 113, in __enter__ 34 return next(self.gen) 35 File "/home/runner/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1180, in _socket_for_reads 36 with self._get_socket(server, session) as sock_info: 37 File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/contextlib.py", line 113, in __enter__ 38 return next(self.gen) 39 File "/home/runner/.local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1099, in _get_socket 40 with server.get_socket( 41 File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/contextlib.py", line 113, in __enter__ 42 return next(self.gen) 43 File "/home/runner/.local/lib/python3.8/site-packages/pymongo/pool.py", line 1371, in get_socket 44 sock_info = self._get_socket(all_credentials) 45 File "/home/runner/.local/lib/python3.8/site-packages/pymongo/pool.py", line 1436, in _get_socket 46 self._raise_if_not_ready(emit_event=True) 47 File "/home/runner/.local/lib/python3.8/site-packages/pymongo/pool.py", line 1407, in _raise_if_not_ready 48 _raise_connection_failure( 49 File "/home/runner/.local/lib/python3.8/site-packages/pymongo/pool.py", line 250, in _raise_connection_failure 50 raise AutoReconnect(msg) from error 51pymongo.errors.AutoReconnect: localhost:27027: connection pool paused 52Error: Process completed with exit code 1.