[Server-devel] XS-0.6 -

Martin Langhoff martin.langhoff at gmail.com
Sat Oct 10 05:07:18 EDT 2009


On Sat, Oct 10, 2009 at 10:57 AM, Martin Langhoff
<martin.langhoff at 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.langhoff at gmail.com
 martin at 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


More information about the Server-devel mailing list