This was on VirtualBox. I'm going to try VMware and see if I run into the same problem.<br><br>-Ben<br><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 10:05 AM, Sameer Verma <span dir="ltr"><<a href="mailto:sverma@sfsu.edu">sverma@sfsu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Wed, Dec 9, 2009 at 1:33 AM, Ben T <<a href="mailto:benjtran@gmail.com">benjtran@gmail.com</a>> wrote:<br>
> So tonight I installed the XS 0.6 all over again but this time I didn't<br>
> checkbox anything. The end result was the exact same thing. Moodle is<br>
> disabled. Please see results inline. Thanks!<br>
> [root@schoolserver ~]# service pgsql-xs initdb<br>
> [FAILED]<br>
> [root@schoolserver ~]# cat /library/pgsql-xs/data-8.3/pg_log/initdb.log<br>
> initdb: directory "/library/pgsql-xs/data-8.3" exists but is not empty<br>
> If you want to create a new database system, either remove or empty<br>
> the directory "/library/pgsql-xs/data-8.3" or run initdb<br>
> with an argument other than "/library/pgsql-xs/data-8.3".<br>
> The files belonging to this database system will be owned by user<br>
> "postgres".<br>
> This user must also own the server process.<br>
> The database cluster will be initialized with locale en_US.UTF-8.<br>
> The default database encoding has accordingly been set to UTF8.<br>
> The default text search configuration will be set to "english".<br>
> [root@schoolserver ~]# rm -rf /library/pgsql-xs/data-8.3/*<br>
> [root@schoolserver ~]# service pgsql-xs initdb<br>
> [FAILED]<br>
> [root@schoolserver ~]# cat /library/pgsql-xs/data-8.3/pg_log/initdb.log<br>
> (same as previously)<br>
> copying template1 to template0 ... ok<br>
> copying template1 to postgres ... FATAL: could not write to file<br>
> "base/11511/2838": No space left on device<br>
<br>
<br>
<br>
</div></div>Ben,<br>
<br>
The "No space left on device" shows up again. Is this on a real or a<br>
virtual machine?<br>
<font color="#888888"><br>
Sameer<br>
</font><div><div></div><div class="h5"><br>
<br>
> STATEMENT: CREATE DATABASE postgres;<br>
> child process exited with exit code 1<br>
> initdb: removing contents of data directory "/library/pgsql-xs/data-8.3"<br>
> On Thu, Dec 3, 2009 at 4:20 AM, Martin Langhoff <<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Thu, Dec 3, 2009 at 1:15 AM, Ben T <<a href="mailto:benjtran@gmail.com">benjtran@gmail.com</a>> wrote:<br>
>> > I deleted everything under /library/pgsql-xs/ but 'service pgsql-xs<br>
>> > initdb'<br>
>> > failed. Ended up with an initdb.log file that was the same as running<br>
>> > 'service postgresql initdb.'<br>
>><br>
>> That is completely bizarre. I assume that /library/pgsql-xs exists,<br>
>> and that you can create files there normally if you su to 'postgres',<br>
>> even large files.<br>
>><br>
>> > I already checked for inodes usage yesterday. That's not a problem.<br>
>><br>
>> Thanks.<br>
>><br>
>> > When I installed the XS, I checkbox'd pretty<br>
>> > much everything that was offered (editors, db, web server, etc.) ...<br>
>> > would<br>
>> > that make a difference?<br>
>><br>
>> That may have confused the installer -- all those things are not on<br>
>> the CD -- but it seems like you got your XS installed -- to<br>
>> confirm:are xs-pkgs and xs-config reported as installed by rpm?<br>
><br>
> [root@schoolserver ~]# rpm -qi xs-pkgs<br>
> Name : xs-pkgs<br>
> Version : 0.10.1.g2a97d89<br>
> Release : 1<br>
> (...and a lot more info)<br>
> [root@schoolserver ~]# rpm -qi xs-config<br>
> Name : xs-config<br>
> Version : 0.6.0.16.g3c1e949<br>
> Release : 1<br>
> (...and a lot more info)<br>
><br>
>><br>
>> Further debugging steps...<br>
>><br>
>> - Is selinux enabled perhaps?<br>
>> selinuxenabled && echo I am SELinux, son of HAL, you cannot open<br>
>> the pod bay doors or start Pg...<br>
><br>
> [root@schoolserver ~]# cat /etc/sysconfig/selinux<br>
> SELINUX=disabled<br>
> SELINUXTYPE=targeted<br>
><br>
>><br>
>> - Re-run initdb, looking at what it does:<br>
>> rm -fr /library/pgsql-xs<br>
>> ( bash -x /etc/init.d/pgsql-xs initdb 2>&1 ) | tee initdb.log<br>
><br>
> [root@schoolserver ~]# rm -rf /library/pgsql-xs<br>
> [root@schoolserver ~]# ( bash -x /etc/init.d/pgsql-xs initdb 2>&1 ) | tee<br>
> initdb.log<br>
> (it ended with the following:)<br>
> ......<br>
> [+ '[' color = color ']'<br>
> + echo -en '\033[0;31m'<br>
> + echo -n FAILED<br>
> FAILED+ '[' color = color ']'<br>
> + echo -en '\033[0;39m'<br>
> + echo -n ']'<br>
> ]+ echo -ne '\r'<br>
> + return 1<br>
> + script_result=1<br>
> + exit 1<br>
><br>
>><br>
>><br>
>><br>
>> - Run the init under strace - install strace and then change the line<br>
>> that actually starts Pg to run it under strace. It will get logged to<br>
>> the same pgstartup.log we are getting now. Look for the line that<br>
>> talks about<br>
>><br>
>> $SU -l postgres -c "$PGENGINE/postmarter -p ...<br>
>><br>
>> and add in there strace, like:<br>
>><br>
>> $SU -l postgres -c "/usr/bin/strace $PGENGINE/postmarter -p ...<br>
>><br>
>> and then try to do /etc/init.d/pgsql-xs start<br>
><br>
> I'm not familiar with network settings so my XS running on a virtual machine<br>
> doesn't seem to be connected to the internet for 'yum install strace' to<br>
> work. And I don't know how to transfer the strace tar file even if I have it<br>
> downloaded on the host machine where the vm is running. When you said "look<br>
> for the line that talks about..." ... which file were you referring to?<br>
><br>
>><br>
>> I am rather curious as to what the problem is and would like to find<br>
>> the root cause. If it's all too much, and you'd rather reinstall and<br>
>> see if it's better, it's also a valid approach.<br>
><br>
> Unfortunately, the reinstall didn't help =(<br>
><br>
>><br>
>> cheers,<br>
>><br>
>><br>
>> m<br>
>> --<br>
>> <a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
>> <a href="mailto:martin@laptop.org">martin@laptop.org</a> -- School Server Architect<br>
>> - ask interesting questions<br>
>> - don't get distracted with shiny stuff - working code first<br>
>> - <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Server-devel mailing list<br>
> <a href="mailto:Server-devel@lists.laptop.org">Server-devel@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/server-devel" target="_blank">http://lists.laptop.org/listinfo/server-devel</a><br>
><br>
><br>
</div></div></blockquote></div><br>