UnableToEvolve database from schooltool 1.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SchoolTool |
Fix Released
|
High
|
Gediminas Paulauskas |
Bug Description
When upgrading from version 1.2 into 2.0.3 schooltool fails to start, reporting UnableToEvolve error.
Trace is below.
To replicate just start 2.0.3 with a 1.2 database file, or use the one attached.
Traceback (most recent call last):
File "/usr/bin/paster", line 8, in <module>
load_
File "/usr/lib/
invoke(command, command_name, options, args[1:])
File "/usr/lib/
exit_code = runner.run(args)
File "/usr/lib/
result = self.command()
File "/usr/lib/
relative_
File "/usr/lib/
**kw)
File "/usr/lib/
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/
return context.create()
File "/usr/lib/
return self.object_
File "/usr/lib/
**context.
File "/usr/lib/
val = callable(*args, **kw)
File "/usr/lib/
app = loader.
File "/usr/lib/
name=name, global_
File "/usr/lib/
return self.object_
File "/usr/lib/
return fix_call(
File "/usr/lib/
val = callable(*args, **kw)
File "/usr/lib/
os.
File "/usr/lib/
db = self.setup(options)
File "/usr/lib/
notify(
File "/usr/lib/
subscriber(
File "/usr/lib/
zope.
File "/usr/lib/
return sitemanager.
File "/usr/lib/
return self.adapters.
File "/usr/lib/
subscriptio
File "/usr/lib/
zope.
File "/usr/lib/
subscriber(
File "/usr/lib/
zope.
File "/usr/lib/
return sitemanager.
File "/usr/lib/
return self.adapters.
File "/usr/lib/
subscriptio
File "/usr/lib/
evolve(
File "/usr/lib/
manager.
zope.app.
Changed in schooltool: | |
assignee: | nobody → Gediminas Paulauskas (menesis) |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → 1.7.1 |
milestone: | 1.7.1 → 2.1.1 |
Changed in schooltool: | |
status: | Triaged → In Progress |
Changed in schooltool: | |
status: | In Progress → Fix Committed |
Changed in schooltool: | |
status: | Fix Committed → Fix Released |
I cannot reproduce the exact same failure with the attached database, but my guess is that you hit the Bug #1003834 that was recently reported as https:/ /answers. launchpad. net/schooltool/ +question/ 198155
The indication is that at the end of /var/log/ schooltool/ error.log there is an error:
AttributeError: 'Timetable' object has no attribute 'uniqueMeetingId'
However, with your database I got an error in the next stage of upgrade,
2012-06-01 17:09:58,130 main db/schooltool: failed to evolve to generation 37 menesis/ .buildout/ eggs/zope. app.generations -3.6.1- py2.7.egg/ zope/app/ generations/ generations. py", line 494, in evolve evolve( context, generation) menesis/ .buildout/ eggs/zope. app.generations -3.6.1- py2.7.egg/ zope/app/ generations/ generations. py", line 145, in evolve evolve( context) menesis/ src/schooltool/ 2.1/src/ schooltool/ src/schooltool/ generations/ evolve37. py", line 67, in evolve menesis/ .buildout/ eggs/zope. container- 3.12.0- py2.7-linux- i686.egg/ zope/container/ sample. py", line 88, in __delitem__ (self._ _data[key] , self, key) menesis/ src/schooltool/ 2.1/python/ lib/python2. 7/UserDict. py", line 23, in __getitem__ level.level' generations. interfaces. UnableToEvolve: (37, u'schooltool', 38)
Traceback (most recent call last):
File "/home/
manager.
File "/home/
evolver.
File "/home/
del app[LEVELS_APP_KEY]
File "/home/
uncontained
File "/home/
raise KeyError(key)
KeyError: 'schooltool.
Traceback (most recent call last):
...
zope.app.
That I am fixing now.