yougov / mongo-connector

MongoDB data stream pipeline tools by YouGov (adopted from MongoDB)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not authorized on __mongo_connector to execute command

feLiruc opened this issue · comments

I'm having problems inserting data into different databases using the mongo-connector...
When the connector connect 2 mongos instances(using the mongo_doc_manager), it creates the database structure but when it tries to insert/update data in my collections it gives me the following message:

mongo_connector.errors.OperationFailed: not authorized on __mongo_connector to execute command { update: "131-Comercial.Estoque" }

I created the user(131Comercial) with password in a specific authSource/database called 131-Comercial, with readWrite rights, but I already found articles on the Wiki about others privileges in others databases/collections. I need to have different users because each mongo instace will be installed in different locations, and this user need to have access to his only database.
Can anybody help me to figure out how to solve this problem?