Comment 27 for bug 1272181

Revision history for this message
Gediminas Paulauskas (menesis) wrote : Re: [Bug 1272181] Re: Problems upgrading to schooltool 2.7.0dev

ZEO not starting is probably permissions problem again, see
ls -l /var/log/schooltool or zeo.log. If schooltool process does not start,
check both error.lol and paste.log, I'm not sure where errors go myself,
this definitely could be improved.

You can try starting schooltool in the foreground, the command should be

$ start-schooltool-instance /etc/schooltool/standard

After
$ service schooltool start

When the other 3 processes start but schooltool doesn't.

Not sure it's the right command, but I need to see some error to understand
why it fails. You did everything correctly as far as I can see. Except
restoring from /media/backup that you don't have, but that doesn't hurt.
2014.02.07 11:25, "mark mcdougall" <email address hidden> rašė:

> and on my saucy attempt zeo isnt running still,
> I copied the blobs across trying first with -r then without
> then as schooltool seemed to be in a loop not starting I pressed c and it
> gave out a traceback
> weve got no school management system running now...neither one
> ;;;;;;;;;;;;;;;;;;;;
> Reading package lists... Done
> schtl@schtl:~$ sudo apt-get install schooltool/saucy
> python-schooltool/saucy
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> schooltool is already the newest version.
> python-schooltool is already the newest version.
> python-schooltool set to manually installed.
> Selected version '1:2.6.1.2-0ubuntu2~saucy1' (SchoolTool PPA:13.10/saucy
> [all]) for 'schooltool'
> Selected version '1:2.6.1.2-0ubuntu2~saucy1' (SchoolTool PPA:13.10/saucy
> [all]) for 'python-schooltool'
> 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
> schtl@schtl:~$ sudo service schooltool start
> * Starting SchoolTool... [
> OK ]
> schtl@schtl:~$ sudo service schooltool status
> schooltool RUNNING pid 4214, uptime 0:08:27
> services:celery_report RUNNING pid 4213, uptime 0:08:27
> services:redis RUNNING pid 4211, uptime 0:08:27
> services:zeo FATAL Exited too quickly (process
> log may have details)
> schtl@schtl:~$ sudo service schooltool stop
> * Stopping SchoolTool... [
> OK ]
> schtl@schtl:~$ sudo service schooltool start
> * Starting SchoolTool... [
> OK ]
> schtl@schtl:~$ sudo service schooltool status
> schooltool RUNNING pid 6699, uptime 0:00:13
> services:celery_report RUNNING pid 6698, uptime 0:00:13
> services:redis RUNNING pid 6696, uptime 0:00:13
> services:zeo FATAL Exited too quickly (process
> log may have details)
> schtl@schtl:~$ cp /var/log/schooltool/error.log ~/Documents/
> schtl@schtl:~$ apt-cache policy python-schooltool
> python-schooltool:
> Installed: 1:2.6.1.2-0ubuntu2~saucy1
> Candidate: 1:2.6.1.2-0ubuntu2~saucy1
> Version table:
> *** 1:2.6.1.2-0ubuntu2~saucy1 0
> 500 http://ppa.launchpad.net/schooltool-owners/ppa/ubuntu/saucy/main i386 Packages
> 100 /var/lib/dpkg/status
> 1:2.6.0-0ubuntu1 0
> 500 http://au.archive.ubuntu.com/ubuntu/ saucy/universe i386
> Packages
> schtl@schtl:~$ sudo /etc/init.d/schooltool stop
> [sudo] password for schtl:
> * Stopping SchoolTool... [
> OK ]
> schtl@schtl:~$ sudo cp -r
> /media/schtl/087B-ACC7/schooltool/blobs-20140206-1120
> /var/lib/schooltool/blobs /media/backups/schooltool/blobs-$(date
> +%Y%m%d-%H%M)
> cp: target ‘/media/backups/schooltool/blobs-20140207-2008’ is not a
> directory
> schtl@schtl:~$ sudo cp
> /media/schtl/087B-ACC7/schooltool/blobs-20140206-1120
> /var/lib/schooltool/blobs
> cp: omitting directory
> ‘/media/schtl/087B-ACC7/schooltool/blobs-20140206-1120’
> schtl@schtl:~$ sudo /etc/init.d/schooltool start
> * Starting SchoolTool... [
> OK ]
> schtl@schtl:~$ sudo /etc/init.d/schooltool startsudo
> /etc/init.d/schooltool start
> * Usage: /etc/init.d/schooltool {start|stop|restart|force-reload|status}
> schtl@schtl:~$ sudo /etc/init.d/schooltool start
> * Starting SchoolTool...
> ^CTraceback (most recent call last):
> File "/usr/bin/supervisorctl", line 9, in <module>
> load_entry_point('supervisor==3.0b2', 'console_scripts',
> 'supervisorctl')()
> File "/usr/lib/python2.7/dist-packages/supervisor/supervisorctl.py",
> line 1116, in main
> c.onecmd(" ".join(options.args))
> File "/usr/lib/python2.7/dist-packages/supervisor/supervisorctl.py",
> line 144, in onecmd
> return do_func(arg)
> File "/usr/lib/python2.7/dist-packages/supervisor/supervisorctl.py",
> line 657, in do_start
> results = supervisor.startAllProcesses()
> File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
> verbose=self.__verbose
> File "/usr/lib/python2.7/dist-packages/supervisor/xmlrpc.py", line 462,
> in request
> r = self.connection.getresponse()
> File "/usr/lib/python2.7/httplib.py", line 1045, in getresponse
> response.begin()
> File "/usr/lib/python2.7/httplib.py", line 409, in begin
> version, status, reason = self._read_status()
> File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
> line = self.fp.readline(_MAXLINE + 1)
> File "/usr/lib/python2.7/socket.py", line 476, in readline
> data = self._sock.recv(self._rbufsize)
> KeyboardInterrupt
> schtl@schtl:~$
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1272181
>
> Title:
> Problems upgrading to schooltool 2.7.0dev
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/schooltool/+bug/1272181/+subscriptions
>