Closed akira-kurogane closed 4 years ago
Running into same issue, environment is ubuntu server 18.04, python 2.7.15.
Same, multiple environments.
Per setup.py
, the latest version of pymongo is being installed ('pymongo>=3.3.1'). In version 3.6 of pymongo, a session
parameter was added to _socket_for_writes()
. Of course, they can do that because this is a private method and shouldn't be used.
So, a quick fix could be installing manually a previous version of pymongo, like pip install pymongo==3.5.1
.
I will push a permanent fix for this as soon as I can.
Ahh, makes sense! Sorry for the oversight but appreciate the super quick response!!
On Fri, Dec 6, 2019, 7:51 AM Sebastián Rajo notifications@github.com wrote:
Per setup.py, the latest version of pymongo is being installed ('pymongo>=3.3.1'). In version 3.6 of pymongo, a session parameter was added to _socket_for_writes(). Of course, they can do that because this is a private method and shouldn't be used.
So, a quick fix could be installing manually a previous version of pymongo, like pip install pymongo==3.5.1.
I will push a permanent fix for this as soon as I can.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stampery/mongoaudit/issues/45?email_source=notifications&email_token=AEIB6IDBDWNNRYV7TGD3FIDQXJDGHA5CNFSM4JE6YTKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGD7U7A#issuecomment-562559612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIB6IADVBQDQUZ5WYAQHBTQXJDGHANCNFSM4JE6YTKA .
Thank you very much elecay!
Whilst running either the basic (no-auth connection) or advanced (auth connection) tests I found mongoaudit error exit back to normal shell with this backtrace:
Environment is Ubuntu 19.10. Python 2.7.17rc1. mongoaudit installed via pip. Test connections were against a 4.2 MongoDB cluster of nodes all on localhost. Error occurs whether to a mongos or mongod. Authentication enabled but no TLS options on.