{"action":"created","issue":{"url":"https://api.github.com/repos/indico/indico/issues/1667","labels_url":"https://api.github.com/repos/indico/indico/issues/1667/labels{/name}","comments_url":"https://api.github.com/repos/indico/indico/issues/1667/comments","events_url":"https://api.github.com/repos/indico/indico/issues/1667/events","html_url":"https://github.com/indico/indico/issues/1667","id":49753516,"number":1667,"title":"Trying to migrate from 0.98-rc1 to Indico 1.2","user":{"login":"satoledano","id":8507783,"avatar_url":"https://avatars.githubusercontent.com/u/8507783?v=3","gravatar_id":"","url":"https://api.github.com/users/satoledano","html_url":"https://github.com/satoledano","followers_url":"https://api.github.com/users/satoledano/followers","following_url":"https://api.github.com/users/satoledano/following{/other_user}","gists_url":"https://api.github.com/users/satoledano/gists{/gist_id}","starred_url":"https://api.github.com/users/satoledano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satoledano/subscriptions","organizations_url":"https://api.github.com/users/satoledano/orgs","repos_url":"https://api.github.com/users/satoledano/repos","events_url":"https://api.github.com/users/satoledano/events{/privacy}","received_events_url":"https://api.github.com/users/satoledano/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/indico/indico/labels/infoneeded","name":"infoneeded","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-21T21:59:12Z","updated_at":"2015-04-01T22:10:50Z","closed_at":null,"body":"Got this error while executing `migrate.py`:\r\n\r\n```\r\n# Indexing Conference Title (1.1)\r\n\r\nMigration failed! DB may be in  an inconsistent state:\r\nTraceback (most recent call last):\r\n  File \"/opt/indico/bin/migration/migrate.py\", line 1096, in main\r\n    dry_run=args.dry_run)\r\n  File \"/opt/indico/bin/migration/migrate.py\", line 1042, in runMigration\r\n    task(dbi, withRBDB, prevVersion)\r\n  File \"/opt/indico/bin/migration/migrate.py\", line 771, in indexConferenceTitle\r\n    nameIdx.index(conf.getId(), conf.getTitle().decode('utf-8'))\r\n  File \"/usr/lib/python2.6/site-packages/indico-1.2-py2.6.egg/MaKaC/common/indexes.py\", line 1254, in index\r\n    intId = self.addString(entryId)\r\n  File \"/usr/lib/python2.6/site-packages/indico-1.2-py2.6.egg/MaKaC/common/indexes.py\", line 1193, in addString\r\n    raise KeyError(\"Key '%s' already exists in index!\" % stringId)\r\nKeyError: \"Key '10' already exists in index!\"\r\n```"},"comment":{"url":"https://api.github.com/repos/indico/indico/issues/comments/88647830","html_url":"https://github.com/indico/indico/issues/1667#issuecomment-88647830","issue_url":"https://api.github.com/repos/indico/indico/issues/1667","id":88647830,"user":{"login":"satoledano","id":8507783,"avatar_url":"https://avatars.githubusercontent.com/u/8507783?v=3","gravatar_id":"","url":"https://api.github.com/users/satoledano","html_url":"https://github.com/satoledano","followers_url":"https://api.github.com/users/satoledano/followers","following_url":"https://api.github.com/users/satoledano/following{/other_user}","gists_url":"https://api.github.com/users/satoledano/gists{/gist_id}","starred_url":"https://api.github.com/users/satoledano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satoledano/subscriptions","organizations_url":"https://api.github.com/users/satoledano/orgs","repos_url":"https://api.github.com/users/satoledano/repos","events_url":"https://api.github.com/users/satoledano/events{/privacy}","received_events_url":"https://api.github.com/users/satoledano/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T22:10:50Z","updated_at":"2015-04-01T22:10:50Z","body":"I think this is one of the things that worked for me\n\nhttps://github.com/pferreir/indico/commit/074728b268e93fce2a209e1d57d715aabcba8e1d.diff\n\n\nOn Wed, Apr 1, 2015 at 3:07 PM, Soledad Antelada Toledano <\nsatoledano@lbl.gov> wrote:\n\n> I solved this, now I need to remember how...\n>\n> On Wed, Apr 1, 2015 at 4:04 AM, clerian <notifications@github.com> wrote:\n>\n>> Hello,\n>>\n>> I've got the same problem when migration from indico 1.0. The only\n>> difference is that it is Key '2' in my case.\n>>\n>> I tried to resolve it by running the various reindex scripts under\n>> bin/maintanance but this didn't help. I've also tried to run the migration\n>> script several times on a new database copy and on a reindexed version.\n>>\n>> thanks!\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/indico/indico/issues/1667#issuecomment-88441114>.\n>>\n>\n>\n>\n> --\n> Soledad Antelada Toledano\n> IT Division\n> Lawrence Berkeley National Laboratory\n> 1 Cyclotron Road, Mail Stop 50B2215\n> Berkeley, CA  94720-8226\n>\n> Office: (510) 486-6861\n>\n> SAToledano@lbl.gov\n>\n>\n>\n\n\n-- \nSoledad Antelada Toledano\nIT Division\nLawrence Berkeley National Laboratory\n1 Cyclotron Road, Mail Stop 50B2215\nBerkeley, CA  94720-8226\n\nOffice: (510) 486-6861\n\nSAToledano@lbl.gov\n"}}