error while starting the schooltool service

Bug #1258529 reported by hero1900
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
High
Gediminas Paulauskas

Bug Description

i got this error for the error.log file the service staus is starting and here is the errors in the tail of the log file
my system is (13.10 64 bit and i have the latest ppa package).:

manager.evolve(context, generation)
  File "/usr/lib/python2.7/dist-packages/zope/app/generations/generations.py", line 145, in evolve
    evolver.evolve(context)
  File "/usr/lib/python2.7/dist-packages/schooltool/generations/evolve42.py", line 63, in evolve
    evolveScheduleContainers(app)
  File "/usr/lib/python2.7/dist-packages/schooltool/generations/evolve42.py", line 37, in evolveScheduleContainers
    prefs = annotations[APP_PREFERENCES_KEY]
  File "/usr/lib/python2.7/dist-packages/zope/annotation/attribute.py", line 54, in __getitem__
    return annotations[key]
KeyError: 'schooltool.app.ApplicationPreferences'

Related branches

Revision history for this message
hero1900 (hero1900) wrote :
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

Steps to reproduce
===============

1. Install schooltool from universe

  $ sudo apt-get install schooltool

2. It starts. But don't open in the browser (to avoid creating preferences object).

3. Add the ppa

  $ sudo add-apt-repository ppa:schooltool-owners/ppa
  $ sudo apt-get update
  $ sudo apt-get dist-upgrade schooltool

4. New version is installed, but it fails to start.

Workaround
==========

1. Temporarily downgrade to the version from archive:

  $ sudo apt-get install python-schooltool=1:2.6.0-0ubuntu1

2. Server is started. Check it in the browser at http://localhost:7080

3. Upgrade to the version from PPA again

  $ sudo apt-get install python-schooltool

4. It should upgrade successfully and work. See http://localhost:7080

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

This is a fresh install without any useful data? Then you can simply remove the database:

  $ sudo service schooltool stop
  $ sudo rm /var/lib/schooltool/Data.fs*
  $ sudo service schooltool start

And don't need to reinstall anything.

Changed in schooltool:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Gediminas Paulauskas (menesis)
milestone: none → 2.6.2
Changed in schooltool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.