How to migrate from 2.6.4 to 2.8?

Asked by Rafael PampaVilca on 2014-06-19

How to migrate from 2.6.4 to 2.8?

I tried to migrate making:

"sudo apt-get update"
"sudo add-apt-repository ppa:schooltool-owners/2.8"
"sudo apt-get upgrade"

but I have not succeeded.

Question information

Language:
English Edit question
Status:
Answered
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
2014-06-19
Last reply:
2014-09-19
Tom Hoffman (tom-hoffman) said : #1

Update *after* you add the repository.

Rafael PampaVilca (rafopm) said : #2

I also tried that, but stops working schooltool.

"sudo add-apt-repository ppa:schooltool-owners/2.8"
"sudo apt-get update"
"sudo apt-get upgrade"

Tom Hoffman (tom-hoffman) said : #3

OK, can you check the server status and send us the error logs as described here:

http://book.schooltool.org/troubleshooting.html

I have the same issue.

I did an upgrade from 2.6.4 to 2.8.0

Status:

schooltool RUNNING pid 17697, uptime 0:04:11
services:celery_report RUNNING pid 17696, uptime 0:04:11
services:redis RUNNING pid 17694, uptime 0:04:11
services:zeo RUNNING pid 17695, uptime 0:04:11

Error log:

2014-08-19 09:54:42,406 ['/var/run/schooltool/zeo.sock'] ClientStorage (pid=17367) created RW/normal for storage: '1'
2014-08-19 09:54:42,412 created temporary cache file '<fdopen>'
2014-08-19 09:54:42,500 (/var/run/schooltool/zeo.sock) received handshake 'Z309'
2014-08-19 09:54:42,503 ['/var/run/schooltool/zeo.sock'] Testing connection <ManagedClientConnection /var/run/schooltool/zeo.sock>
2014-08-19 09:54:42,508 ['/var/run/schooltool/zeo.sock'] Server authentication protocol None
2014-08-19 09:54:42,516 ['/var/run/schooltool/zeo.sock'] Connected to storage: /var/run/schooltool/zeo.sock
2014-08-19 09:54:42,523 ['/var/run/schooltool/zeo.sock'] No verification necessary -- empty cache
2014-08-19 09:54:42,569 main db: evolving in mode EVOLVEMINIMUM
2014-08-19 09:58:17,378 ['/var/run/schooltool/zeo.sock'] ClientStorage (pid=17697) created RW/normal for storage: '1'
2014-08-19 09:58:17,380 created temporary cache file '<fdopen>'
2014-08-19 09:58:17,468 (/var/run/schooltool/zeo.sock) received handshake 'Z309'
2014-08-19 09:58:17,470 ['/var/run/schooltool/zeo.sock'] Testing connection <ManagedClientConnection /var/run/schooltool/zeo.sock>
2014-08-19 09:58:17,472 ['/var/run/schooltool/zeo.sock'] Server authentication protocol None
2014-08-19 09:58:17,474 ['/var/run/schooltool/zeo.sock'] Connected to storage: /var/run/schooltool/zeo.sock
2014-08-19 09:58:17,477 ['/var/run/schooltool/zeo.sock'] No verification necessary -- empty cache
2014-08-19 09:58:17,504 main db: evolving in mode EVOLVEMINIMUM
2014-08-19 09:58:17,507 main db/schooltool: currently at generation 42, targetting generation 43

Something with the database maybe?

Rafael PampaVilca (rafopm) said : #5

Status:
schooltool RUNNING pid 2584, uptime 0:00:16
services:celery_report RUNNING pid 2583, uptime 0:00:16
services:redis RUNNING pid 2581, uptime 0:00:16
services:zeo RUNNING pid 2582, uptime 0:00:16

Error log:
2014-09-18 21:59:56,602 ['/var/run/schooltool/zeo.sock'] ClientStorage (pid=26601) created RW/normal for storage: '1'
2014-09-18 21:59:56,640 created temporary cache file '<fdopen>'
2014-09-18 21:59:56,729 (/var/run/schooltool/zeo.sock) received handshake 'Z309'
2014-09-18 21:59:56,731 ['/var/run/schooltool/zeo.sock'] Testing connection <ManagedClientConnection /var/run/schooltool/zeo.sock>
2014-09-18 21:59:56,732 ['/var/run/schooltool/zeo.sock'] Server authentication protocol None
2014-09-18 21:59:56,734 ['/var/run/schooltool/zeo.sock'] Connected to storage: /var/run/schooltool/zeo.sock
2014-09-18 21:59:56,736 ['/var/run/schooltool/zeo.sock'] No verification necessary -- empty cache
2014-09-18 21:59:56,798 main db: evolving in mode EVOLVEMINIMUM
2014-09-18 21:59:56,834 main db/schooltool: currently at generation 42, targetting generation 44
2014-09-18 22:02:29,334 ['/var/run/schooltool/zeo.sock'] ClientStorage (pid=2473) created RW/normal for storage: '1'
2014-09-18 22:02:29,359 created temporary cache file '<fdopen>'
2014-09-18 22:02:29,507 ['/var/run/schooltool/zeo.sock'] Testing connection <ManagedClientConnection /var/run/schooltool/zeo.sock>
2014-09-18 22:02:29,521 (/var/run/schooltool/zeo.sock) received handshake 'Z309'
2014-09-18 22:02:29,612 ['/var/run/schooltool/zeo.sock'] Server authentication protocol None
2014-09-18 22:02:29,613 ['/var/run/schooltool/zeo.sock'] Connected to storage: /var/run/schooltool/zeo.sock
2014-09-18 22:02:29,614 ['/var/run/schooltool/zeo.sock'] No verification necessary -- empty cache
2014-09-18 22:02:29,658 main db: evolving in mode EVOLVEMINIMUM
2014-09-18 22:02:29,665 main db/schooltool: currently at generation 42, targetting generation 44
2014-09-18 22:05:54,434 ['/var/run/schooltool/zeo.sock'] ClientStorage (pid=2584) created RW/normal for storage: '1'
2014-09-18 22:05:54,455 created temporary cache file '<fdopen>'
2014-09-18 22:05:54,524 (/var/run/schooltool/zeo.sock) received handshake 'Z309'
2014-09-18 22:05:54,526 ['/var/run/schooltool/zeo.sock'] Testing connection <ManagedClientConnection /var/run/schooltool/zeo.sock>
2014-09-18 22:05:54,527 ['/var/run/schooltool/zeo.sock'] Server authentication protocol None
2014-09-18 22:05:54,529 ['/var/run/schooltool/zeo.sock'] Connected to storage: /var/run/schooltool/zeo.sock
2014-09-18 22:05:54,531 ['/var/run/schooltool/zeo.sock'] No verification necessary -- empty cache
2014-09-18 22:05:54,550 main db: evolving in mode EVOLVEMINIMUM
2014-09-18 22:05:54,582 main db/schooltool: currently at generation 42, targetting generation 44

Douglas Cerna (replaceafill) said : #6

Hi Rafael.

From your last line:

2014-09-18 22:05:54,582 main db/schooltool: currently at generation 42, targetting generation 44

I notice two things:

1. You are already running 2.8.1 (evolve44 was added in that release)
2. The database is being evolved. It means the service has not fully started yet (no clients can connect). This may take some time depending on how big your database is (how many students, sections, etc you have).

So, my advice is to give it some time and check the error.log file a little later looking for tracebacks.

HTH.

Can you help with this problem?

Provide an answer of your own, or ask Rafael PampaVilca for more information if necessary.

To post a message you must log in.