{"action":"created","issue":{"url":"https://api.github.com/repos/10gen-labs/mongo-connector/issues/247","labels_url":"https://api.github.com/repos/10gen-labs/mongo-connector/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/10gen-labs/mongo-connector/issues/247/comments","events_url":"https://api.github.com/repos/10gen-labs/mongo-connector/issues/247/events","html_url":"https://github.com/10gen-labs/mongo-connector/issues/247","id":74728615,"number":247,"title":"Error syncing from one monogdb cluster to another","user":{"login":"dharshanr","id":5958490,"avatar_url":"https://avatars.githubusercontent.com/u/5958490?v=3","gravatar_id":"","url":"https://api.github.com/users/dharshanr","html_url":"https://github.com/dharshanr","followers_url":"https://api.github.com/users/dharshanr/followers","following_url":"https://api.github.com/users/dharshanr/following{/other_user}","gists_url":"https://api.github.com/users/dharshanr/gists{/gist_id}","starred_url":"https://api.github.com/users/dharshanr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharshanr/subscriptions","organizations_url":"https://api.github.com/users/dharshanr/orgs","repos_url":"https://api.github.com/users/dharshanr/repos","events_url":"https://api.github.com/users/dharshanr/events{/privacy}","received_events_url":"https://api.github.com/users/dharshanr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-09T18:21:58Z","updated_at":"2015-05-12T18:42:26Z","closed_at":null,"body":"Logging to mongo-connector.log.\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.6/site-packages/mongo_connector-2.1.dev0-py2.6.egg/mongo_connector/oplog_manager.py\", line 490, in do_dump\r\n    upsert_all(dm)\r\n  File \"/usr/local/lib/python2.6/site-packages/mongo_connector-2.1.dev0-py2.6.egg/mongo_connector/oplog_manager.py\", line 474, in upsert_all\r\n    dm.bulk_upsert(docs_to_dump(namespace), mapped_ns, long_ts)\r\n  File \"/usr/local/lib/python2.6/site-packages/mongo_connector-2.1.dev0-py2.6.egg/mongo_connector/doc_managers/doc_manager_base.py\", line 99, in bulk_upsert\r\n    self.upsert(doc, namespace, timestamp)\r\n  File \"/usr/local/lib/python2.6/site-packages/mongo_connector-2.1.dev0-py2.6.egg/mongo_connector/util.py\", line 38, in wrapped\r\n    reraise(new_type, exc_value, exc_tb)\r\n  File \"/usr/local/lib/python2.6/site-packages/mongo_connector-2.1.dev0-py2.6.egg/mongo_connector/util.py\", line 32, in wrapped\r\n    return f(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.6/site-packages/mongo_connector-2.1.dev0-py2.6.egg/mongo_connector/doc_managers/mongo_doc_manager.py\", line 143, in upsert\r\n    \"ns\": namespace\r\n  File \"/usr/local/lib64/python2.6/site-packages/pymongo/collection.py\", line 288, in save\r\n    manipulate, safe, check_keys=check_keys, **kwargs)\r\n  File \"/usr/local/lib64/python2.6/site-packages/pymongo/collection.py\", line 551, in update\r\n    docs, check_keys, self.uuid_subtype, client)\r\n  File \"/usr/local/lib64/python2.6/site-packages/pymongo/message.py\", line 393, in _do_batched_write_command\r\n    results.append((idx_offset, send_message()))\r\n  File \"/usr/local/lib64/python2.6/site-packages/pymongo/message.py\", line 345, in send_message\r\n    command=True)\r\n  File \"/usr/local/lib64/python2.6/site-packages/pymongo/mongo_client.py\", line 1131, in _send_message\r\n    rv = self.__check_response_to_last_error(response, command)\r\n  File \"/usr/local/lib64/python2.6/site-packages/pymongo/mongo_client.py\", line 1049, in __check_response_to_last_error\r\n    helpers._check_command_response(result, self.disconnect)\r\n  File \"/usr/local/lib64/python2.6/site-packages/pymongo/helpers.py\", line 182, in _check_command_response\r\n    raise OperationFailure(msg % errmsg, code, response)\r\nOperationFailed: not authorized on __mongo_connector to execute command { update: \"calendar.launchusers\", updates: [ { q: { _id: ObjectId('5504df6f9bd8dff331b2ad55') }, u: { _id: ObjectId('5504df6f9bd8dff331b2a\r\nd55'), ns: \"calendar.launchusers\", _ts: 6146937823732695124 }, multi: false, upsert: true } ] }\r\n\r\nHere are the permissions I have provided the user I am using on the destination cluster\r\n\r\n\"_id\" : \"admin.connectoruser\",\r\n\"user\" : \"connectoruser\",\r\n\"db\" : \"admin\",\r\n\"roles\" : [\r\n        {\r\n                \"role\" : \"root\",\r\n                \"db\" : \"admin\"\r\n        },\r\n        {\r\n                \"role\" : \"readWrite\",\r\n                \"db\" : \"admin\"\r\n        },\r\n        {\r\n                \"role\" : \"readWrite\",\r\n                \"db\" : \"local\"\r\n        },\r\n        {\r\n                \"role\" : \"readWrite\",\r\n                \"db\" : \"calendar\"\r\n        }\r\n]"},"comment":{"url":"https://api.github.com/repos/10gen-labs/mongo-connector/issues/comments/101382183","html_url":"https://github.com/10gen-labs/mongo-connector/issues/247#issuecomment-101382183","issue_url":"https://api.github.com/repos/10gen-labs/mongo-connector/issues/247","id":101382183,"user":{"login":"llvtt","id":5168837,"avatar_url":"https://avatars.githubusercontent.com/u/5168837?v=3","gravatar_id":"","url":"https://api.github.com/users/llvtt","html_url":"https://github.com/llvtt","followers_url":"https://api.github.com/users/llvtt/followers","following_url":"https://api.github.com/users/llvtt/following{/other_user}","gists_url":"https://api.github.com/users/llvtt/gists{/gist_id}","starred_url":"https://api.github.com/users/llvtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llvtt/subscriptions","organizations_url":"https://api.github.com/users/llvtt/orgs","repos_url":"https://api.github.com/users/llvtt/repos","events_url":"https://api.github.com/users/llvtt/events{/privacy}","received_events_url":"https://api.github.com/users/llvtt/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T18:42:26Z","updated_at":"2015-05-12T18:42:26Z","body":"Great! May I close this issue then?"}}