paste.ini messed up?

Asked by mark mcdougall

I might have messed up the paste ini , theres no browser access? Have I done a bad change??
Heres the paste.ini as it currently sits
[composite:main]

use = egg:Paste#urlmap
/ = schooltool
/schooltool.task_results = task_results

[app:schooltool]
use = egg:schooltool#main
config_file=schooltool.conf

[app:task_results]
use = egg:schooltool#task_results
config_file=schooltool.conf

[server:main]
use = egg:zope.server
host = 127.0.0.1
port = 7080

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
Gediminas Paulauskas
Solved:
Last query:
Last reply:
Revision history for this message
mark mcdougall (mmcdouga) said :
#1

should add, ive tried to remove and redownload schooltool via the Ubuntu software cemtre and it still didnt work.
Mark

Revision history for this message
Gediminas Paulauskas (menesis) said :
#2

This file looks correct. What is the output of

  sudo service schooltool status

All four processes should be RUNNING.

And see if there are any errors in /var/log/schooltool/paste.log

Revision history for this message
mark mcdougall (mmcdouga) said :
#3

Hi thanks for the help, heres the status
schooltool FATAL Exited too quickly (process log
may have details)
services:celery_report RUNNING pid 1247, uptime 0:01:37
services:redis RUNNING pid 1245, uptime 0:01:37
services:zeo RUNNING pid 1246, uptime 0:01:37
and heres the attempt at getting the log
phil@ubuntu:~$ /var/log/schooltool/paste.log
bash: /var/log/schooltool/paste.log: Permission denied

so I might need advice even for this?
Mark

On Sun, Nov 3rd, 2013 at 11:26 PM, Gediminas Paulauskas
<email address hidden> wrote:

> Your question #238505 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/238505
>
> Status: Open => Needs information
>
> Gediminas Paulauskas requested more information:
> This file looks correct. What is the output of
>
> sudo service schooltool status
>
> All four processes should be RUNNING.
>
> And see if there are any errors in /var/log/schooltool/paste.log
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/schooltool/+question/238505
>
> You received this question notification because you asked the question.
>
>

Revision history for this message
Gediminas Paulauskas (menesis) said :
#4

2013/11/4 mark mcdougall <email address hidden>

> schooltool FATAL Exited too quickly (process log
> may have details)
> services:celery_report RUNNING pid 1247, uptime 0:01:37
> services:redis RUNNING pid 1245, uptime 0:01:37
> services:zeo RUNNING pid 1246, uptime 0:01:37
>

Right, schooltool process fails to start. But need the log to see why.

> and heres the attempt at getting the log
> phil@ubuntu:~$ /var/log/schooltool/paste.log
> bash: /var/log/schooltool/paste.log: Permission denied
>

You tried to execute the log file. Use 'less' command.

  $ sudo less /var/log/schooltool/paste.log

and

  $ sudo less /var/log/schooltool/error.log

Press 'End' to scroll to the end. See if there are any errors.

Press 'q' to exit.

--
Gediminas

Revision history for this message
mark mcdougall (mmcdouga) said :
#5

Hi, for the paste command heres the log,
Traceback (most recent call last):
  File "/usr/bin/start-schooltool-instance", line 9, in <module>
    load_entry_point('schooltool==2.6.0.1', 'console_scripts',
'start-schooltool-instance')()
  File "/usr/lib/python2.7/dist-packages/schooltool/paste/run.py", line 132,
in main
    paste.script.command.run(['serve', conf_file] + extra_options)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 104,
in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 143,
in invoke
    exit_code = runner.run(args)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 238,
in run
    result = self.command()
  File "/usr/lib/python2.7/dist-packages/paste/script/serve.py", line 279, in
command
    self.logging_file_config(log_fn)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 784,
in logging_file_config
    parser.read([config_file])
  File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors:
/etc/schooltool/standard/paste.ini
        [line 30]: 'D\n'
        [line 31]: 'D\n'
        [line 33]: 'p\n'
        [line 34]: 'A\n'
        [line 35]: 'B\n'
Traceback (most recent call last):
  File "/usr/bin/start-schooltool-instance", line 9, in <module>
    load_entry_point('schooltool==2.6.0.1', 'console_scripts',
'start-schooltool-instance')()
  File "/usr/lib/python2.7/dist-packages/schooltool/paste/run.py", line 132,
in main
    paste.script.command.run(['serve', conf_file] + extra_options)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 104,
in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 143,
in invoke
    exit_code = runner.run(args)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 238,
in run
    result = self.command()
  File "/usr/lib/python2.7/dist-packages/paste/script/serve.py", line 279, in
command
    self.logging_file_config(log_fn)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 784,
in logging_file_config
    parser.read([config_file])
  File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors:
/etc/schooltool/standard/paste.ini
        [line 30]: 'D\n'
        [line 31]: 'D\n'
        [line 33]: 'p\n'
        [line 34]: 'A\n'
        [line 35]: 'B\n'
Traceback (most recent call last):
  File "/usr/bin/start-schooltool-instance", line 9, in <module>
    load_entry_point('schooltool==2.6.0.1', 'console_scripts',
'start-schooltool-instance')()
  File "/usr/lib/python2.7/dist-packages/schooltool/paste/run.py", line 132,
in main
    paste.script.command.run(['serve', conf_file] + extra_options)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 104,
in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 143,
in invoke
    exit_code = runner.run(args)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 238,
in run
    result = self.command()
  File "/usr/lib/python2.7/dist-packages/paste/script/serve.py", line 279, in
command
    self.logging_file_config(log_fn)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 784,
in logging_file_config
    parser.read([config_file])
  File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors:
/etc/schooltool/standard/paste.ini
        [line 30]: 'D\n'
        [line 31]: 'D\n'
        [line 33]: 'p\n'
        [line 34]: 'A\n'
        [line 35]: 'B\n'
Traceback (most recent call last):
  File "/usr/bin/start-schooltool-instance", line 9, in <module>
    load_entry_point('schooltool==2.6.0.1', 'console_scripts',
'start-schooltool-instance')()
  File "/usr/lib/python2.7/dist-packages/schooltool/paste/run.py", line 132,
in main
    paste.script.command.run(['serve', conf_file] + extra_options)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 104,
in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 143,
in invoke
    exit_code = runner.run(args)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 238,
in run
    result = self.command()
  File "/usr/lib/python2.7/dist-packages/paste/script/serve.py", line 279, in
command
    self.logging_file_config(log_fn)
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 784,
in logging_file_config
    parser.read([config_file])
  File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors:
/etc/schooltool/standard/paste.ini
        [line 30]: 'D\n'
        [line 31]: 'D\n'
        [line 33]: 'p\n'
        [line 34]: 'A\n'
        [line 35]: 'B\n'
For the error command there was no list
Hope this helps?
Thanks again,
Mark

On Mon, Nov 4th, 2013 at 9:46 AM, Gediminas Paulauskas
<email address hidden> wrote:

> Your question #238505 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/238505
>
> Status: Open => Answered
>
> Gediminas Paulauskas proposed the following answer:
> 2013/11/4 mark mcdougall <email address hidden>
>
> > schooltool FATAL Exited too quickly (process
> log
> > may have details)
> > services:celery_report RUNNING pid 1247, uptime 0:01:37
> > services:redis RUNNING pid 1245, uptime 0:01:37
> > services:zeo RUNNING pid 1246, uptime 0:01:37
> >
>
> Right, schooltool process fails to start. But need the log to see why.
>
>
> > and heres the attempt at getting the log
> > phil@ubuntu:~$ /var/log/schooltool/paste.log
> > bash: /var/log/schooltool/paste.log: Permission denied
> >
>
> You tried to execute the log file. Use 'less' command.
>
> $ sudo less /var/log/schooltool/paste.log
>
> and
>
> $ sudo less /var/log/schooltool/error.log
>
> Press 'End' to scroll to the end. See if there are any errors.
>
> Press 'q' to exit.
>
>
> --
> Gediminas
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/schooltool/+question/238505/+confirm?answer_id=3
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/schooltool/+question/238505
>
> You received this question notification because you asked the question.
>
>

Revision history for this message
Gediminas Paulauskas (menesis) said :
#6

Strange. What you pasted at first is correct, but it seems there is something at the end of the paste.ini file.

Try removing schooltool and configuration files, and then reinstall.

  $ sudo apt-get purge schooltool
  $ sudo apt-get install schooltool

Revision history for this message
mark mcdougall (mmcdouga) said :
#7

Purging configuration files for schooltool ...
rmdir: failed to remove `/var/log/schooltool': Directory not empty
rmdir: failed to remove `/var/lib/schooltool': Directory not empty
rmdir: failed to remove `/var/run/schooltool': Directory not empty
dpkg: warning: while removing schooltool, directory
'/etc/schooltool/standard' not empty so not removed.
Processing triggers for ureadahead ...
 Hi, looks like this is the problem? Then it doesnt reload properly?

Mark

On Mon, Nov 4th, 2013 at 10:46 AM, Gediminas Paulauskas
<email address hidden> wrote:

> Your question #238505 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/238505
>
> Status: Open => Answered
>
> Gediminas Paulauskas proposed the following answer:
> Strange. What you pasted at first is correct, but it seems there is
> something at the end of the paste.ini file.
>
> Try removing schooltool and configuration files, and then reinstall.
>
> $ sudo apt-get purge schooltool
> $ sudo apt-get install schooltool
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/schooltool/+question/238505/+confirm?answer_id=5
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/schooltool/+question/238505
>
> You received this question notification because you asked the question.
>
>

Revision history for this message
Best Gediminas Paulauskas (menesis) said :
#8

There are some other files in that directory, therefore the directory could not be removed. You can remove it by hand

  $ sudo rm -r /etc/schooltool/standard

or, I think, the configuration files should be removed anyway, so reinstall should have helped.

Revision history for this message
mark mcdougall (mmcdouga) said :
#9

newly installed and operational,
thanks for the patient assistance,
mark

Revision history for this message
Gediminas Paulauskas (menesis) said :
#10

For the record, apt-get purge does remove your data files, not only configuration.

To restore a single file to default,

  $ sudo rm /etc/schooltool/standard/paste.ini
  $ sudo apt-get -o DPkg::options::=--force-confmiss --reinstall install schooltool

This will not touch other config files (unless they are missing, too) and leave data intact.

From http://askubuntu.com/a/181179/69889

Revision history for this message
yakub.bairewo (yakub-bairewo) said :
#11

Hi Douglas, my school tool is failling to start and showing this error below, It happened after running new updates,How do i go around this problem

Regards
Yakub B

schooltool FATAL Exited too quickly (process log may have details)
services:celery_report RUNNING pid 4589, uptime 0:00:15
services:redis RUNNING pid 4587, uptime 0:00:15
services:zeo RUNNING pid 4588, uptime 0:00:15