Migrating Data.fs

Asked by Alfredo Parisi

Hi, I'm testing Schooltool in two different virtual machine with Ubuntu Server 12.04
I installed ST in one of them and setted my school. After I've done a new installation of SC in the second vm, copied Data.fs from the first to the second server, set correct permission and owner, but it doesn't work.
Someone can help me? Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
Alfredo Parisi
Solved:
Last query:
Last reply:
Revision history for this message
Alfredo Parisi (alfredo-parisi) said :
#1

$ tail /var/log/schooltool/paste.log
    return sitemanager.subscribers(objects, interface)
  File "/usr/lib/python2.7/dist-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/lib/python2.7/dist-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
  File "/usr/lib/python2.7/dist-packages/zope/app/generations/generations.py", line 521, in evolveMinimumSubscriber
    evolve(event.database, EVOLVEMINIMUM)
  File "/usr/lib/python2.7/dist-packages/zope/app/generations/generations.py", line 465, in evolve
    raise GenerationTooHigh(generation, key, manager.generation)
zope.app.generations.interfaces.GenerationTooHigh: (39, u'schooltool', 38)

$ tail /var/log/schooltool/error.log
2012-10-19 09:01:36,815 main db: evolving in mode EVOLVEMINIMUM
2012-10-19 09:01:36,816 main db/schooltool: current generation too high (39 > 38)
2012-10-19 09:05:08,989 main db: evolving in mode EVOLVEMINIMUM
2012-10-19 09:05:08,992 main db/schooltool: current generation too high (39 > 38)
2012-10-19 09:09:53,946 main db: evolving in mode EVOLVEMINIMUM
2012-10-19 09:09:53,949 main db/schooltool: current generation too high (39 > 38)
2012-10-19 09:13:14,174 main db: evolving in mode EVOLVEMINIMUM
2012-10-19 09:13:14,197 main db/schooltool: current generation too high (39 > 38)
2012-10-19 09:14:01,640 main db: evolving in mode EVOLVEMINIMUM
2012-10-19 09:14:01,642 main db/schooltool: current generation too high (39 > 38)

Revision history for this message
Douglas Cerna (replaceafill) said :
#2

Alfredo:

From the log message I think you have an older SchoolTool version installed in your second (target) VM. Could you double check that and let us know?

Revision history for this message
Alfredo Parisi (alfredo-parisi) said :
#3

Hi Douglas,
thanks for your answer.
I check it, you're right, the versions are different but I've installed them in the same mode.
On the first machine I've SchoolTool 2.2.4
On the second I've SchoolTool 2.1.1
In which mode can I upgrade the second vm?
Thank you

Revision history for this message
Douglas Cerna (replaceafill) said :
#4

You could try updating your second VM this way:

$ sudo apt-get update
$ sudo apt-get upgrade

That should get you the most recent software, including SchoolTool.

Revision history for this message
Alfredo Parisi (alfredo-parisi) said :
#5

I've done it, but it doesn't upgrade it

Revision history for this message
Douglas Cerna (replaceafill) said :
#6

If I understand correctly 2.1.1 is in the SchoolTool Owners "flourish" PPA.

Ubuntu 12.04 comes with SchoolTool 2.1 from the "universe" repository. In order to get 2.2 or 2.3 (the latest) you need the SchoolTool Owners "dev" PPA (http://book.schooltool.org/install-2_0.html)

Compare the /etc/apt/sources.list.d/ directories in both VMs. You should have some "schooltool-owners-..." files. I think the one in your first VM is pointing to "schooltool-owners/dev" while the second VM is pointing to "schooltool-owners/ppa".

Let us know.

Revision history for this message
Alfredo Parisi (alfredo-parisi) said :
#7

Yes, this is the problem. I've veryfing it just now. Maybe I've solved.
The problem was on repository.
ppa:schooltool-owners/dev is it ok for Ubuntu 12.04 server?

Revision history for this message
Douglas Cerna (replaceafill) said :
#8

Yes, ppa:schooltool-owners/dev will work on 12.04 although I think you'll get SchoolTool 2.3 now (https://lists.launchpad.net/schooltoolers/msg00206.html)

2.3 should fix your original problem though (related to evolution). Make a backup copy of your original database, just in case ;)

Revision history for this message
Alfredo Parisi (alfredo-parisi) said :
#9

Ok perfect, I upgraded them.
Thanks a lot for your support and for the excellent project.
Now I'm looking for a backup manager for Data.fs