Need help from Indico 1.2.1 upgrading to Indico 2.0

Hello,

I tried to migrate from Indico 1.2.1 to Indico v2.0.3 using Guide on https://docs.getindico.io/en/latest/installation/upgrade_legacy/. However, I got unexpected error during the migration.

Any help would be greatly appreciated.

Thanks
Marek

# cat /opt/indico/migration.log 
 >  Global IP acl                 
× [global_pre] No valid IPs found
 >  API settings                  
 >  Global settings               
 >  User management settings      
 >  Legal settings                
 >  Payment settings              
i [global_pre] saving currency: name='Swiss Franc', code=CHF
i [global_pre] saving currency: name='Euro', code=EUR
i [global_pre] saving currency: name='US dollar', code=USD
i [global_pre] default currency: EUR
 >  News settings                 
 >  News                          
 >  IP Networks                   
 >  Reference types               
- [global_pre] 0.066144 seconds
 >  Users                         
 >  Favorite users                
 >  Admins                        
/opt/indico/.venv/lib/python2.7/site-packages/sqlalchemy/sql/default_comparator.py:161: SAWarning: The IN-predicate on "users.id" was invoked with an empty sequence. This results in a contradiction, which nonetheless can be expensive to evaluate.  Consider alternative strategies for improved performance.
  'strategies for improved performance.' % expr)

Traceback (most recent call last): |/opt/indico/.venv/bin/indico-migrate:11 [<module>]
 |/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/cli.py:126 [main]
 |/opt/indico/.venv/lib/python2.7/site-packages/click/core.py:722 [__call__]
 |/opt/indico/.venv/lib/python2.7/site-packages/click/core.py:697 [main]
 |/opt/indico/.venv/lib/python2.7/site-packages/click/core.py:895 [invoke]
 |/opt/indico/.venv/lib/python2.7/site-packages/click/core.py:535 [invoke]
 |/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/cli.py:122 [cli]
 debug=debug, **kwargs)
 |/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/migrate.py:106 [migrate]
 |/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/importer.py:161 [run]
 |/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/users_groups.py:73 [migrate]
 |/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/util.py:323 [_f]
 |/opt/indico/.venv/lib/python2.7/site-packages/indico_migrate/steps/users_groups.py:253 [migrate_admins]
 user = self.global_ns.avatar_merged_user[avatar.id]

'1'

Traceback (most recent call last):
  File "/opt/indico/.venv/bin/indico-migrate", line 11, 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/steps/users_groups.py", line 73, in migrate
    self.migrate_admins()
  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/users_groups.py", line 253, in migrate_admins
    user = self.global_ns.avatar_merged_user[avatar.id]
KeyError: '1'