On Sat, Oct 10, 2009 at 10:57 AM, Martin Langhoff
<martin.langh...@gmail.com> wrote:
> We probably need a procedure to dump-and-recreate the Moodle DB
> because now it is half-there and it probably won't init correctly any
> more.

http://wiki.laptop.org/go/XS_Techniques_and_Configuration#Moodle_Initialization_Fails

== Moodle Initialization Fails ==

During the first boot after an installation or upgrade Moodle will run
its installation/upgrade scripts. These scripts are triggered by the
existence of <code>/etc/moodle/needsupgrade</code> and when they
execute, they log to <code>/var/log/moodle-instupg.log</code>.

If there is no <code>/etc/moodle/needsupgrade</code> and the log ends
with a line saying 'Success', Moodle should be installed and running
correctly.

In case the initialization/upgrade has failed

* Make sure to report the situation to the server-devel mailing list,
attaching <code>/var/log/moodle-instupg.log</code>, and a description
of the situation.
* Drop the database: <code>sudo -u postgres dropdb moodle-xs</code>
* Start the Moodle 'service': <code>service moodle-xs start</code>.
This may take a while (specially on XS-on-XO) and you can trace the
execution by 'tailing' the logfile with <code>tail -f
/var/log/moodle-instupg.log</code> from a different console.




m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
_______________________________________________
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel

Reply via email to