[Server-devel] Fresh install of XS 0.6 -- "Moodle is disabled at the moment."

Ben T benjtran at gmail.com
Tue Dec 1 19:42:04 EST 2009

Ok, I think I'm getting closer on this .. found an error message in a log
file .. please see below.
Attempting to start pgsql-xs resulted in it asking me to run initdb for
postgresql to initialize the cluster (was this supposed to be done
automatically as part of the installation?).  I did that and it said OK.
 However, looking at the initdb.log file, it ran into an error trying to
create the database.  With the database not being there, pgsql-xs couldn't
start?  leading to Moodle not being enabled?  It says device out of space
but I'm sure I have plenty of space.  Any ideas how to take care of this


[root at schoolserver ~]# service pgsql-xs start
/library/pgsql-xs/data-8.3 is missing. Use "service postgresql initdb" to
initialize the cluster first. [FAILED]

[root at schoolserver ~]# service postgresql initdb
Initializing database: [OK]

[root at schoolserver ~]# service pgsql-xs start
/library/pgsql-xs/data-8.3 is missing. Use "service postgresql initdb" to
initialize the cluster first. [FAILED]

[root at schoolserver ~]# shutdown -r now

- same error trying to pgsql-xs
- attempting to execute 'service postgresql initdb' again --> "Data
directory is not empty!"

[root at schoolserver ~]# cd /library/pgsql-xs/data-8.3
[root at schoolserver data-8.3]# ll
total 2
drwx------ 2 postgres postgres 1024 2009-11-22 13:43 pg_log
-rw------- 1 postgres postgres    0 2009-11-22 13:49 pgstartup-8.3.log
[root at schoolserver data-8.3]# cd pg_log
[root at schoolserver pg_log]# ll
total 3
-rw------- 1 root root 1240 2009-11-22 13:43 initdb.log

The files belonging to this database system will be owned by user
This user must also own the server process.

The database cluster will be initialized with locale C.
The default database encoding has accordingly been set to SQL_ASCII.
The default text search configuration will be set to "english".

fixing permissions on existing directory /library/pgsql-xs/data-8.3 ... ok
creating subdirectories ... ok
(goes on to perform more tasks and they're all 'ok')
copying template1 to template0 ... ok
copying template1 to postgres ... FATAL:  could not write to file
"base/11511/2689": No space left on device

child process exited with exit code 1
initdb: removing contents of data directory "/library/pgsql-xs/data-8.3"

On Mon, Nov 30, 2009 at 8:15 PM, Ben T <benjtran at gmail.com> wrote:

> Hi Martin,
> Thanks for checking in .. I took a break from this for a few days .. Will
> give it another attempt sometime tomorrow and update.
> -Ben
> On Fri, Nov 27, 2009 at 3:34 AM, Martin Langhoff <
> martin.langhoff at gmail.com> wrote:
>> On Tue, Nov 24, 2009 at 4:17 PM, Martin Langhoff
>> <martin.langhoff at gmail.com> wrote:
>> >> drwx------ 3 postgres postgres 1024 2009-11-22 13:49 data-8.3
>> >
>> > So it exists... and is mounted correctly! What happens if you try to
>> > start pgsql-xs service? Does it still complain?
>> >
>> > With this, and your logs looking normal, I can only think of a timing
>> > thing -- PostgreSQL startup might be slow and Moodle is starting right
>> > after and not finding it?
>> Bump! Did you retry? Is it working?
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/server-devel/attachments/20091201/153e4f42/attachment.htm 

More information about the Server-devel mailing list