Comment 14 for bug 1272181

Revision history for this message
Gediminas Paulauskas (menesis) wrote : Re: Fails to start with SyntaxError: ("'continue' not properly in loop",

Also you are have blindly copied the backup/restore commands to a non-existing backup directory.

If schooltool starts, you don't need to restore from backup. But if it fails with 'generation too high' error, have to restore an older dtabase.

On every upgrade, a backup is made in /var/lib/schooltool

$ sudo ls -ltr /var/lib/schooltool/
drwx------ 4 schooltool schooltool 4096 Sep 25 02:08 blobs
-rw-r--r-- 1 schooltool schooltool 13596 Nov 17 18:09 Data.fs.index
-rw-r--r-- 1 schooltool schooltool 117963 Dec 15 13:19 Data.fs.6.gz
-rw-r--r-- 1 schooltool schooltool 117963 Dec 15 13:19 Data.fs.5.gz
-rw-r--r-- 1 schooltool schooltool 117963 Dec 15 13:19 Data.fs.4.gz
-rw-r--r-- 1 schooltool schooltool 127616 Dec 23 20:38 Data.fs.3.gz
-rw-r--r-- 1 schooltool schooltool 127616 Dec 23 20:38 Data.fs.2.gz
-rw-r--r-- 1 schooltool schooltool 141592 Jan 24 16:10 Data.fs.1.gz
-rw-r--r-- 1 schooltool schooltool 1197151 Jan 24 16:10 Data.fs.0
-rw-r--r-- 1 schooltool schooltool 1752535 Jan 31 03:00 Data.fs
-rw-r--r-- 1 schooltool schooltool 0 Feb 4 14:57 Data.fs.tmp
-rw-r--r-- 1 schooltool schooltool 6 Feb 4 14:57 Data.fs.lock
-rw-r--r-- 1 schooltool schooltool 147 Feb 4 19:38 redis-dump.rdb

The current database is Data.fs

Make sure that the Data.fs file has owner and group schooltool. This may be the reason 'zeo' fails to start.

First, stop schooltool:

  $ sudo service schooltool stop

Copy current Data somewhere:

  $ sudo cp /var/lib/schooltool/Data.fs /var/lib/schooltool/Data.fs.saved

An older backup is Data.fs.0 . To restore to it, copy it over:

  $ sudo cp /var/lib/schooltool/Data.fs.0 /var/lib/schooltool/Data.fs

If that still does not start, next one is Data.fs.1.gz, you have to unarchive it to use

  $ sudo gunzip /var/lib/schooltool/Data.fs.1.gz
  $ sudo cp /var/lib/schooltool/Data.fs.1 /var/lib/schooltool/Data.fs

The newest copy with data before January 5 should work.