MongoEngine/mongoengine

timeout issues with ssh tunnelling

matthieudesprez opened this issue · 1 comments

Hello,

We are experiencing issues since we've upgraded mongoengine from 0.23.1 to 0.24.1, but only when used along with ssh tunnelling.

I didn't have the time to investigate further but here is the stack trace when encountering the issue:
image

No issues at all with 0.23.1, and apparently no issues detected when not trying to connect through ssh tunnelling.

I doubt your problem comes from MongoEngine, the major change with 0.24.x is the support for the new Pymongo major version. My guess is that you aren't pinning Pymongo and so when you install MongoEngine 0.24.x it pulls the latest Pymongo version with it.

Try pinning Pymongo to whatever version you were using before, and only upgrade MongoEngine and see if it works.

If yes, then the culprit is Pymongo and probably you need to configure the connection slightly differently (e.g with some bigger timeout)