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

Sameer Verma sverma at sfsu.edu
Wed Dec 9 13:05:19 EST 2009


On Wed, Dec 9, 2009 at 1:33 AM, Ben T <benjtran at gmail.com> wrote:
> So tonight I installed the XS 0.6 all over again but this time I didn't
> checkbox anything.  The end result was the exact same thing.  Moodle is
> disabled.  Please see results inline.  Thanks!
> [root at schoolserver ~]# service pgsql-xs initdb
> [FAILED]
> [root at schoolserver ~]# cat /library/pgsql-xs/data-8.3/pg_log/initdb.log
> initdb: directory "/library/pgsql-xs/data-8.3" exists but is not empty
> If you want to create a new database system, either remove or empty
> the directory "/library/pgsql-xs/data-8.3" or run initdb
> with an argument other than "/library/pgsql-xs/data-8.3".
> The files belonging to this database system will be owned by user
> "postgres".
> This user must also own the server process.
> The database cluster will be initialized with locale en_US.UTF-8.
> The default database encoding has accordingly been set to UTF8.
> The default text search configuration will be set to "english".
> [root at schoolserver ~]# rm -rf /library/pgsql-xs/data-8.3/*
> [root at schoolserver ~]# service pgsql-xs initdb
> [FAILED]
> [root at schoolserver ~]# cat /library/pgsql-xs/data-8.3/pg_log/initdb.log
> (same as previously)
> copying template1 to template0 ... ok
> copying template1 to postgres ... FATAL:  could not write to file
> "base/11511/2838": No space left on device



Ben,

The "No space left on device" shows up again. Is this on a real or a
virtual machine?

Sameer


> STATEMENT:  CREATE DATABASE postgres;
> child process exited with exit code 1
> initdb: removing contents of data directory "/library/pgsql-xs/data-8.3"
> On Thu, Dec 3, 2009 at 4:20 AM, Martin Langhoff <martin.langhoff at gmail.com>
> wrote:
>>
>> On Thu, Dec 3, 2009 at 1:15 AM, Ben T <benjtran at gmail.com> wrote:
>> > I deleted everything under /library/pgsql-xs/ but 'service pgsql-xs
>> > initdb'
>> > failed.  Ended up with an initdb.log file that was the same as running
>> > 'service postgresql initdb.'
>>
>> That is completely bizarre. I assume that /library/pgsql-xs exists,
>> and that you can create files there normally if you su to 'postgres',
>> even large files.
>>
>> > I already checked for inodes usage yesterday.  That's not a problem.
>>
>> Thanks.
>>
>> > When I installed the XS, I checkbox'd pretty
>> > much everything that was offered (editors, db, web server, etc.) ...
>> > would
>> > that make a difference?
>>
>> That may have confused the installer -- all those things are not on
>> the CD -- but it seems like you got your XS installed -- to
>> confirm:are xs-pkgs and xs-config reported as installed by rpm?
>
> [root at schoolserver ~]# rpm -qi xs-pkgs
> Name : xs-pkgs
> Version : 0.10.1.g2a97d89
> Release : 1
> (...and a lot more info)
> [root at schoolserver ~]# rpm -qi xs-config
> Name : xs-config
> Version : 0.6.0.16.g3c1e949
> Release : 1
> (...and a lot more info)
>
>>
>> Further debugging steps...
>>
>>  - Is selinux enabled perhaps?
>>   selinuxenabled && echo I am SELinux, son of HAL, you cannot open
>> the pod bay doors or start Pg...
>
> [root at schoolserver ~]# cat /etc/sysconfig/selinux
> SELINUX=disabled
> SELINUXTYPE=targeted
>
>>
>>  - Re-run initdb, looking at what it does:
>>     rm -fr /library/pgsql-xs
>>     ( bash -x /etc/init.d/pgsql-xs initdb 2>&1 ) | tee initdb.log
>
> [root at schoolserver ~]# rm -rf /library/pgsql-xs
> [root at schoolserver ~]# ( bash -x /etc/init.d/pgsql-xs initdb 2>&1 ) | tee
> initdb.log
> (it ended with the following:)
> ......
> [+ '[' color = color ']'
> + echo -en '\033[0;31m'
> + echo -n FAILED
> FAILED+ '[' color = color ']'
> + echo -en '\033[0;39m'
> + echo -n ']'
> ]+ echo -ne '\r'
> + return 1
> + script_result=1
> + exit 1
>
>>
>>
>>
>>  - Run the init under strace - install strace and then change the line
>> that actually starts Pg to run it under strace. It will get logged to
>> the same pgstartup.log we are getting now. Look for the line that
>> talks about
>>
>>    $SU -l postgres -c "$PGENGINE/postmarter -p ...
>>
>>  and add in there strace, like:
>>
>>    $SU -l postgres -c "/usr/bin/strace $PGENGINE/postmarter -p ...
>>
>> and then try to do /etc/init.d/pgsql-xs start
>
> I'm not familiar with network settings so my XS running on a virtual machine
> doesn't seem to be connected to the internet for 'yum install strace' to
> work. And I don't know how to transfer the strace tar file even if I have it
> downloaded on the host machine where the vm is running.  When you said "look
> for the line that talks about..." ... which file were you referring to?
>
>>
>> I am rather curious as to what the problem is and would like to find
>> the root cause. If it's all too much, and you'd rather reinstall and
>> see if it's better, it's also a valid approach.
>
> Unfortunately, the reinstall didn't help =(
>
>>
>> cheers,
>>
>>
>> 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
>
>
> _______________________________________________
> Server-devel mailing list
> Server-devel at lists.laptop.org
> http://lists.laptop.org/listinfo/server-devel
>
>


More information about the Server-devel mailing list