Error migrating registration statuses when upgrading from 1.2 to 2.0


#1

Hello, I am in the process of upgrading indico from 0.94 to 2.0. The 0.94 to 1.2 process seems to have worked just fine. However, in the second stage migration from 1.2 to 2.0 using the latest indico_migrate I am getting the following error message:

Traceback (most recent call last):
  File "/opt/indico/.venv/bin/indico-migrate", line 10, in <module>
    sys.exit(main())
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/cli.py", line 126, in main
    return cli()
  File "/opt/indico/.venv/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/opt/indico/.venv/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/opt/indico/.venv/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/indico/.venv/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/cli.py", line 122, in cli
    debug=debug, **kwargs)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/migrate.py", line 106, in migrate
    **kwargs).run()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/importer.py", line 161, in run
    self.migrate()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/util.py", line 323, in _f
    f(self, *args, **kwargs)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/importer.py", line 183, in migrate
    self.migrate_event_data()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/importer.py", line 211, in migrate_event_data
    context.run_step(importer)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/importer.py", line 137, in run_step
    importer.run()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/__init__.py", line 83, in run
    self.migrate()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/registration.py", line 191, in migrate
    self.migrate_regform()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/registration.py", line 203, in migrate_regform
    self._migrate_registrations()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/registration.py", line 568, in _migrate_registrations
    registration = self._migrate_registration(old_reg)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/registration.py", line 594, in _migrate_registration
    self._migrate_registration_statuses(old_reg, registration)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/events/registration.py", line 673, in _migrate_registration_statuses
    status_info = info['choices'][old_status._value] if old_status._value else None
KeyError: <persistent broken MaKaC.registration.StatusValue instance '\x00\x00\x00\x00\x00%\xfe\x9e'>