{"action":"created","issue":{"url":"https://api.github.com/repos/twisted/txmongo/issues/232","repository_url":"https://api.github.com/repos/twisted/txmongo","labels_url":"https://api.github.com/repos/twisted/txmongo/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/twisted/txmongo/issues/232/comments","events_url":"https://api.github.com/repos/twisted/txmongo/issues/232/events","html_url":"https://github.com/twisted/txmongo/issues/232","id":338435520,"node_id":"MDU6SXNzdWUzMzg0MzU1MjA=","number":232,"title":"TxMongo: command SON(...) failed with 'not authorized' on remains to execute command","user":{"login":"tonal","id":316216,"node_id":"MDQ6VXNlcjMxNjIxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/316216?v=4","gravatar_id":"","url":"https://api.github.com/users/tonal","html_url":"https://github.com/tonal","followers_url":"https://api.github.com/users/tonal/followers","following_url":"https://api.github.com/users/tonal/following{/other_user}","gists_url":"https://api.github.com/users/tonal/gists{/gist_id}","starred_url":"https://api.github.com/users/tonal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonal/subscriptions","organizations_url":"https://api.github.com/users/tonal/orgs","repos_url":"https://api.github.com/users/tonal/repos","events_url":"https://api.github.com/users/tonal/events{/privacy}","received_events_url":"https://api.github.com/users/tonal/received_events","type":"User","site_admin":false},"labels":[{"id":260549536,"node_id":"MDU6TGFiZWwyNjA1NDk1MzY=","url":"https://api.github.com/repos/twisted/txmongo/labels/bug","name":"bug","color":"e11d21","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-05T05:55:23Z","updated_at":"2018-07-19T07:56:40Z","closed_at":null,"author_association":"NONE","body":"After upgrade pymongo to 3.7.0 break TxMongo\r\n```\r\n2018-07-05 03:30:03,714 [scrapy.utils.signal] ERROR: Error caught on signal handler: <bound method MongodbSaver.spider_opened of <remains.mongo_ext.MongodbSaver object at 0x7fad95940dd8>>\r\nTraceback (most recent call last):\r\n  File \"/opt/pyenv/versions/3.6.6/envs/remains/lib/python3.6/site-packages/twisted/internet/defer.py\", line 1384, in _inlineCallbacks\r\n    result = result.throwExceptionIntoGenerator(g)\r\n  File \"/opt/pyenv/versions/3.6.6/envs/remains/lib/python3.6/site-packages/twisted/python/failure.py\", line 422, in throwExceptionIntoGenerator\r\n    return g.throw(self.type, self.value, self.tb)\r\n  File \"/opt/remains_grab/remains/remains/mongo_ext.py\", line 56, in spider_opened\r\n    item_cnt=self.items_scraped, page_count=self.response_count))\r\n  File \"/opt/pyenv/versions/3.6.6/envs/remains/lib/python3.6/site-packages/twisted/internet/defer.py\", line 653, in _runCallbacks\r\n    current.result = callback(current.result, *args, **kw)\r\n  File \"/opt/pyenv/versions/3.6.6/envs/remains/lib/python3.6/site-packages/txmongo/database.py\", line 67, in on_ok\r\n    _check_command_response(response, msg, allowable_errors)\r\n  File \"/opt/pyenv/versions/3.6.6/envs/remains/lib/python3.6/site-packages/pymongo/helpers.py\", line 155, in _check_command_response\r\n    raise OperationFailure(msg % errmsg, code, response)\r\npymongo.errors.OperationFailure: TxMongo: command SON([('insert', 'tasks'), ('documents', [{'_id': ObjectId('5b3d668b7f7d193791c668c4'), 'type': 'site', 'name': 'Акваполис', 'load_start': datetime.datetime(2018, 7, 5, 3, 30, 3, 658310), 'load_end': datetime.datetime(2018, 7, 5, 3, 30, 3, 684830), 'status': 'start', 'msg': None, 'item_cnt': 0, 'page_count': 0}]), ('ordered', True), ('writeConcern', {})]) on namespace remains.$cmd failed with 'not authorized on remains to execute command { insert: \"tasks\", ordered: true, writeConcern: {}, $db: \"remains\" }'\r\n```\r\nAfter downgrade pymongo to 3.6.1 - work Ok."},"comment":{"url":"https://api.github.com/repos/twisted/txmongo/issues/comments/406189035","html_url":"https://github.com/twisted/txmongo/issues/232#issuecomment-406189035","issue_url":"https://api.github.com/repos/twisted/txmongo/issues/232","id":406189035,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjE4OTAzNQ==","user":{"login":"IlyaSkriblovsky","id":909638,"node_id":"MDQ6VXNlcjkwOTYzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/909638?v=4","gravatar_id":"","url":"https://api.github.com/users/IlyaSkriblovsky","html_url":"https://github.com/IlyaSkriblovsky","followers_url":"https://api.github.com/users/IlyaSkriblovsky/followers","following_url":"https://api.github.com/users/IlyaSkriblovsky/following{/other_user}","gists_url":"https://api.github.com/users/IlyaSkriblovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/IlyaSkriblovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlyaSkriblovsky/subscriptions","organizations_url":"https://api.github.com/users/IlyaSkriblovsky/orgs","repos_url":"https://api.github.com/users/IlyaSkriblovsky/repos","events_url":"https://api.github.com/users/IlyaSkriblovsky/events{/privacy}","received_events_url":"https://api.github.com/users/IlyaSkriblovsky/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T07:56:40Z","updated_at":"2018-07-19T07:56:40Z","author_association":"CONTRIBUTOR","body":"Fixed by #233 "}}
{"actor":{"display_login":"IlyaSkriblovsky"}}