[Cubicweb] cw migration from 3.10.8 to 3.10.9

Carlos Balderas carlos.balderas at gmail.com
Thu Mar 3 14:54:02 CET 2011


Hi List!

I have an instance which I'd like to migrate to cw 3.10.9 version.

At the time to execute the question, "fix existing cwuir?"

I get this error:

Execute
'/home/carlos/src/fcubicweb/cubicweb/misc/migration/bootstrapmigration_repository.py'
? [Y/n/s(how)/a(bort)]:
Execute '/home/carlos/src/fcubicweb/cubicweb/misc/migration/3.10.9_Any.py' ?
[Y/n/s(how)/a(bort)]:
fix existing cwuri? [Y/n/a(bort)/s(hell)]:
[....................................................................
]Traceback (most recent call last):
  File "/home/carlos/src/fcubicweb/cubicweb/cwctl.py", line 161, in run_arg
    status = cmdmeth(appid)
  File "/home/carlos/src/fcubicweb/cubicweb/cwctl.py", line 757, in
upgrade_instance
    mih.migrate(vcconf, reversed(toupgrade), self.config)
  File "/home/carlos/src/fcubicweb/cubicweb/server/migractions.py", line
148, in migrate
    super(ServerMigrationHelper, self).migrate(vcconf, toupgrade, options)
  File "/home/carlos/src/fcubicweb/cubicweb/migration.py", line 180, in
migrate
    self.cmd_process_script(script)
  File "/home/carlos/src/fcubicweb/cubicweb/server/migractions.py", line
153, in cmd_process_script
    migrscript, funcname, *args, **kwargs)
  File "/home/carlos/src/fcubicweb/cubicweb/migration.py", line 346, in
cmd_process_script
    execfile(migrscript, scriptlocals)
  File "/home/carlos/src/fcubicweb/cubicweb/misc/migration/3.10.9_Any.py",
line 12, in <module>
    commit(ask_confirm=False)
  File "/home/carlos/src/fcubicweb/cubicweb/server/migractions.py", line
614, in checkpoint
    self.commit()
  File "/home/carlos/src/fcubicweb/cubicweb/server/migractions.py", line
296, in commit
    self._cnx.commit()
  File "/home/carlos/src/fcubicweb/cubicweb/dbapi.py", line 471, in
decorator
    return func(self, *args, **kwargs)
  File "/home/carlos/src/fcubicweb/cubicweb/dbapi.py", line 677, in commit
    return self._repo.commit(self.sessionid, **self._txid())
  File "/home/carlos/src/fcubicweb/cubicweb/server/repository.py", line 791,
in commit
    return session.commit()
  File "/home/carlos/src/fcubicweb/cubicweb/server/session.py", line 762, in
commit
    operation.handle_event('precommit_event')
  File "/home/carlos/src/fcubicweb/cubicweb/server/hook.py", line 718, in
handle_event
    getattr(self, event)()
  File "/home/carlos/src/fcubicweb/cubicweb/hooks/syncschema.py", line 681,
in precommit_event
    rdefentity = self.entity.reverse_constrained_by[0]
IndexError: tuple index out of range


I read about this action, and It tells It is about changing anonymous user
configuration, but I guess the migration does not get at that point before
the error is thrown.

I could you please give me clue about what could be happening here?. =)

Thank you very much
Carlos Balderas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20110303/156dbcc0/attachment-0048.html>


More information about the Cubicweb mailing list