cubicweb #1401937 crash on db-upgrade from 3.9 to 3.10 [rejected]

what:

-> migration needed from 3.9.9 to 3.11.0 for cubicweb
Backup carlo database? [Y/n/a(bort)/s(hell)]: n
-> no backup done.
Execute '/home/aurelien/src/fcw/cubicweb/misc/migration/bootstrapmigration_repository.py' ? [Y/n/s(how)/a(bort)]:
Execute '/home/aurelien/src/fcw/cubicweb/misc/migration/3.10.0_Any.py' ? [Y/n/s(how)/a(bort)]:
Execute command: add_entity_type('CWSource') ? [Y/n/a(bort)/s(hell)]:
Execute command: add_relation_definition('CWSource', 'cw_source', 'CWSource') ? [Y/n/a(bort)/s(hell)]:
Execute command: add_entity_type('CWSourceHostConfig') ? [Y/n/a(bort)/s(hell)]:
Execute command: create_entity('CWSource', type=u'native', name=u'system') ? [Y/n/a(bort)/s(hell)]:
Commit now ? [Y/n/a(bort)]:
Execute sql: INSERT INTO cw_source_relation(eid_from,eid_to) SELECT e.eid,s.cw_eid FROM entities as e, cw_CWSource as s WHERE s.cw_name=e.type ? [Y/n/a(bort)/s(hell)]:
Commit now ? [Y/n/a(bort)]:
Commit now ? [Y/n/a(bort)]:
Execute '/home/aurelien/src/fcw/cubicweb/misc/migration/3.10.0_common.py' ? [Y/n/s(how)/a(bort)]:
Execute command: option_group_changed('cleanup-session-time', 'web', 'main') ? [Y/n/a(bort)/s(hell)]:
Execute '/home/aurelien/src/fcw/cubicweb/misc/migration/3.10.4_Any.py' ? [Y/n/s(how)/a(bort)]:
Execute sql: INSERT INTO cw_source_relation(eid_from, eid_to) SELECT e.eid,s.cw_eid FROM entities as e, cw_CWSource as s WHERE s.cw_name=e.source AND NOT EXISTS(SELECT 1 FROM cw_source_relation WHERE eid_from=e.eid AND eid_to=s.cw_eid) ? [Y/n/a(bort)/s(hell)]:
Commit now ? [Y/n/a(bort)]:
Execute '/home/aurelien/src/fcw/cubicweb/misc/migration/3.10.5_Any.py' ? [Y/n/s(how)/a(bort)]:
Execute command: sync_schema_props_perms('CWSourceHostConfig', syncperms=False) ? [Y/n/a(bort)/s(hell)]:
Execute sql: INSERT INTO cw_source_relation(eid_from, eid_to) SELECT e.eid,s.cw_eid FROM entities as e, cw_CWSource as s WHERE s.cw_name=e.source AND NOT EXISTS(SELECT 1 FROM cw_source_relation WHERE eid_from=e.eid AND eid_to=s.cw_eid) ? [Y/n/a(bort)/s(hell)]:
Commit now ? [Y/n/a(bort)]:
Execute '/home/aurelien/src/fcw/cubicweb/misc/migration/3.10.7_Any.py' ? [Y/n/s(how)/a(bort)]:
Execute command: add_attribute('TrInfo', 'tr_count') ? [Y/n/a(bort)/s(hell)]:
Execute command: sync_schema_props_perms('TrInfo') ? [Y/n/a(bort)/s(hell)]:
Traceback (most recent call last):
File "/home/aurelien/src/fcw/cubicweb/cwctl.py", line 154, in run_arg
status = cmdmeth(appid)
File "/home/aurelien/src/fcw/cubicweb/cwctl.py", line 752, in upgrade_instance
mih.migrate(vcconf, reversed(toupgrade), self.config)
File "/home/aurelien/src/fcw/cubicweb/server/migractions.py", line 148, in migrate
super(ServerMigrationHelper, self).migrate(vcconf, toupgrade, options)
File "/home/aurelien/src/fcw/cubicweb/migration.py", line 180, in migrate
self.cmd_process_script(script)
File "/home/aurelien/src/fcw/cubicweb/server/migractions.py", line 153, in cmd_process_script
migrscript, funcname, *args, **kwargs)
File "/home/aurelien/src/fcw/cubicweb/migration.py", line 346, in cmd_process_script
execfile(migrscript, scriptlocals)
File "/home/aurelien/src/fcw/cubicweb/misc/migration/3.10.7_Any.py", line 2, in <module>
sync_schema_props_perms('TrInfo')
File "/home/aurelien/src/fcw/cubicweb/migration.py", line 136, in <lambda>
meth=meth)
File "/home/aurelien/src/fcw/cubicweb/migration.py", line 202, in interact
return meth(*args, **kwargs)
File "/home/aurelien/src/fcw/cubicweb/server/migractions.py", line 1150, in cmd_sync_schema_props_perms
self.commit()
File "/home/aurelien/src/fcw/cubicweb/server/migractions.py", line 296, in commit
self._cnx.commit()
File "/home/aurelien/src/fcw/cubicweb/dbapi.py", line 467, in decorator
return func(self, *args, **kwargs)
File "/home/aurelien/src/fcw/cubicweb/dbapi.py", line 673, in commit
return self._repo.commit(self.sessionid, **self._txid())
File "/home/aurelien/src/fcw/cubicweb/server/repository.py", line 794, in commit
return session.commit()
File "/home/aurelien/src/fcw/cubicweb/server/session.py", line 762, in commit
operation.handle_event('precommit_event')
File "/home/aurelien/src/fcw/cubicweb/server/hook.py", line 683, in handle_event
getattr(self, event)()
File "/home/aurelien/src/fcw/cubicweb/hooks/syncschema.py", line 715, in precommit_event
session.system_sql(sql)
File "/home/aurelien/src/fcw/cubicweb/server/session.py", line 317, in system_sql
return source.doexec(self, sql, args, rollback=rollback_on_failure)
File "/home/aurelien/src/fcw/cubicweb/server/sources/native.py", line 663, in doexec
cursor.execute(str(query), args)
ProgrammingError: relation "unique_cw_trinfo_cw_tr_count_cw_wf_info_for_idx" already exists

instance carlo not upgraded: relation "unique_cw_trinfo_cw_tr_count_cw_wf_info_for_idx" already exists

prioritynormal
typebug
done in3.10.7
load0.000
load left0.000
closed by<not specified>