Open Thunkar opened 8 years ago
That traceback means that the pymongo.MongoClient instance the cursor manager was referencing was reclaimed. I've never actually seen this happen before, but it would only happen when the MongoClient instance is being destroyed.
Were you shutting down mongo-connector?
No, it just happens randomly. I'm testing it now leaving the oplog.timestamp file inside the container to check for permission issues...will report back if I gather new info.
Just happened again after some time without issues, exact same error and behavior.
After using python 2 as base image instead of the latest one (based on python 3), the issue has dissapeared. Root cause still unknown though...
I'm running mongo-connector inside a docker container with elasticsearch 2 and after a random amount of time it displays the following exception:
After this, no new data is indexed in Elasticsearch. Sometimes deleting the oplog.timestamp file solves the problem (it is always empty, though), sometimes not. My docker-compose file is the following:
And my mongo-connector config is this:
As you can see, the oplog file resides on the host and it is mounted into the container, which in turn can use it and write to it as the folder has 775 permissions. Any help would be appreciated.