{"action":"created","issue":{"url":"https://api.github.com/repos/translate/pootle/issues/3347","labels_url":"https://api.github.com/repos/translate/pootle/issues/3347/labels{/name}","comments_url":"https://api.github.com/repos/translate/pootle/issues/3347/comments","events_url":"https://api.github.com/repos/translate/pootle/issues/3347/events","html_url":"https://github.com/translate/pootle/issues/3347","id":48616506,"number":3347,"title":"Rescanning project directory files fails when the same key name exists in different files.","user":{"login":"jason-p-pickering","id":2968061,"avatar_url":"https://avatars.githubusercontent.com/u/2968061?v=3","gravatar_id":"","url":"https://api.github.com/users/jason-p-pickering","html_url":"https://github.com/jason-p-pickering","followers_url":"https://api.github.com/users/jason-p-pickering/followers","following_url":"https://api.github.com/users/jason-p-pickering/following{/other_user}","gists_url":"https://api.github.com/users/jason-p-pickering/gists{/gist_id}","starred_url":"https://api.github.com/users/jason-p-pickering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jason-p-pickering/subscriptions","organizations_url":"https://api.github.com/users/jason-p-pickering/orgs","repos_url":"https://api.github.com/users/jason-p-pickering/repos","events_url":"https://api.github.com/users/jason-p-pickering/events{/privacy}","received_events_url":"https://api.github.com/users/jason-p-pickering/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-13T09:47:50Z","updated_at":"2015-07-04T17:00:57Z","closed_at":"2015-07-04T17:00:57Z","body":"```pytb\r\nTransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.\r\n2014-11-13 09:44:29,980 WARNING Data integrity error while importing unit edit_profile:\r\n(1062, \"Duplicate entry '175-d445af6ff723ac6da265f6ec2ce20db9' for key 'pootle_store_unit_store_id_1f16b986f8b3b0db_uniq'\")\r\n2014-11-13 09:44:29,982 ERROR Error while rescanning translation project files\r\nTraceback (most recent call last):\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/pootle/apps/pootle_translationproject/views.py\", line 91, in rescan_files\r\n    store.update(update_structure=True, update_translation=True)\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/transaction.py\", line 371, in inner\r\n    return func(*args, **kwargs)\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py\", line 1598, in update\r\n    self.parse(store=store)\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/transaction.py\", line 371, in inner\r\n    return func(*args, **kwargs)\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py\", line 1550, in parse\r\n    self.unit_set.all().delete()\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/query.py\", line 467, in delete\r\n    collector.collect(del_query)\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/deletion.py\", line 166, in collect\r\n    reverse_dependency=reverse_dependency)\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/deletion.py\", line 77, in add\r\n    if not objs:\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/query.py\", line 100, in __nonzero__\r\n    self._fetch_all()\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/query.py\", line 857, in _fetch_all\r\n    self._result_cache = list(self.iterator())\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/query.py\", line 220, in iterator\r\n    for row in compiler.results_iter():\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/sql/compiler.py\", line 713, in results_iter\r\n    for rows in self.execute_sql(MULTI):\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/sql/compiler.py\", line 786, in execute_sql\r\n    cursor.execute(sql, params)\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/backends/util.py\", line 47, in execute\r\n    self.db.validate_no_broken_transaction()\r\n  File \"/var/www/pootle/env/lib/python2.7/site-packages/django/db/backends/__init__.py\", line 372, in validate_no_broken_transaction\r\n    \"An error occurred in the current transaction. You can't \"\r\nTransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.\r\n```"},"comment":{"url":"https://api.github.com/repos/translate/pootle/issues/comments/118534213","html_url":"https://github.com/translate/pootle/issues/3347#issuecomment-118534213","issue_url":"https://api.github.com/repos/translate/pootle/issues/3347","id":118534213,"user":{"login":"dwaynebailey","id":647438,"avatar_url":"https://avatars.githubusercontent.com/u/647438?v=3","gravatar_id":"","url":"https://api.github.com/users/dwaynebailey","html_url":"https://github.com/dwaynebailey","followers_url":"https://api.github.com/users/dwaynebailey/followers","following_url":"https://api.github.com/users/dwaynebailey/following{/other_user}","gists_url":"https://api.github.com/users/dwaynebailey/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaynebailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaynebailey/subscriptions","organizations_url":"https://api.github.com/users/dwaynebailey/orgs","repos_url":"https://api.github.com/users/dwaynebailey/repos","events_url":"https://api.github.com/users/dwaynebailey/events{/privacy}","received_events_url":"https://api.github.com/users/dwaynebailey/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T17:00:57Z","updated_at":"2015-07-04T17:00:57Z","body":"Rescan is no longer an available option"}}