Re: [Server-devel] Fresh install of XS 0.6 -- Moodle is disabled at the moment.
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! [r...@schoolserver ~]# service pgsql-xs initdb [FAILED] [r...@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. [r...@schoolserver ~]# rm -rf /library/pgsql-xs/data-8.3/* [r...@schoolserver ~]# service pgsql-xs initdb [FAILED] [r...@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 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.langh...@gmail.comwrote: On Thu, Dec 3, 2009 at 1:15 AM, Ben T benjt...@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? [r...@schoolserver ~]# rpm -qi xs-pkgs Name : xs-pkgs Version : 0.10.1.g2a97d89 Release : 1 (...and a lot more info) [r...@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... [r...@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 21 ) | tee initdb.log [r...@schoolserver ~]# rm -rf /library/pgsql-xs [r...@schoolserver ~]# ( bash -x /etc/init.d/pgsql-xs initdb 21 ) | 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.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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] XS + CFEngine? / Web CP?
Hi Mike! thanks for your interest! Brief reply as I am dealing with some RL things that are keeping me away from computers. We definitely need a config mgmt scheme. We need one that is pull-based, however, where each XS (configuration client) requests updates from the configuration server. - pull scales much much better - many (most!) XSs will be behind NAT and weird network setups that the deployment sometimes does not control (sp in the case of satellite connections) - so proto must be something super-standard that is always allowed through: HTTP - it must also work for XSs without internet -- by carrying the same config messages on a usb stick My preferred approach is to use the techniques outlined in http://www.infrastructures.org/ -- something like a much-simplified isconf (taking advantge of the fact that we are in an rpm'd world, and we have good storage engines like git) with a strong focus on atomicity. cfengine is, afaik, a push-based framework (if you use it as the documentation suggests) -- some of the tools in cfengine are useful however. Some people have mentioned puppet but I haven't had a chance to explore it. Most of these tools are designed and used mainly in a controlled server room. We have the opposite use case -- our servers may very well lose power in the middle of a config update. ;-) Do you think cfengine can be used in a pure pull model, using http or text files (+rpms or whatever files are needed) in a mountpoint? cheers, m On Sat, Dec 5, 2009 at 7:38 PM, Mike Dawson mikeofmanches...@gmail.com wrote: Hi All, Greetz from Kabul. We have a very exciting upcoming deployment to Kandahar coming up and hopefully many more deployments :) There are two main things that caught my eye for trying to integrate into XS (and I'm willing to put in development time / expertise as well :) ): 1. Adopting cfengine as part of the package so that one can easily set a master policy and have all the school servers across the country follow. I use this in our office at the moment and have been thinking about using this to make the deployment easier to manage. This way we can actively push out updates to the clients and it gives us a toolkit to say what to update, when etc. (e.g. can manage the OS image updates, activity updates, etc) 2. Trying to a little bit deskill / make easier the installation of school servers. We have made a pure wireless deployment system using Freifunk / mesh networking between routers to form a wireless backbone. That way just bang the box on the all and all should be well. I'm wondering what it would take to make a web control panel kind of interface to the school server. This would make it easier to checkin on the school server remotely (e.g. GPRS / VPN link stuff), and generally increase the pool of people who would then be 'administrators'. I have made some cron job based tools for doing that before. This would be non resident and run only when changes have been made to the config that require it to be run. SME Server had a nice model for this. 3. If possible / our development time allows I would love to put in Nagios so that we can get some accurate reporting of uptime of routers in the classroom etc. If we had that then I could make some standard OS images for the type of hardware that we have plus a setup wizard that would make it a point click, boot matter to install a school server. For those without connectivity I think we could make a key based system so that if the 'roaming update netbook' comes onto the school server network on a reserved address that it could respect this as it's cfengine master and then follow the orders. What are the requirements for this to become part of the main XS build? That really is the sustainability that we need... Thanks/Regards, -Mike ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel -- 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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] [IAEP] Sharing EToys projects
On Mon, Dec 7, 2009 at 12:31 AM, Gerald Ardito gerald.ard...@gmail.com wrote: I am working with 140 5th grade students who are using XOs (mostly) and netbooks with SOAS. About 50 of them are using Etoys to create projects. I am trying to find a way to share them with their teachers and each other. When I try to upload them to a Moodle course and them download them, the downloaded files can't be read by EToys. If you are using the Moodle included in XS 0.5.2 or 0.6, I added the etoys mimetypes so this would work: http://dev.laptop.org/git/users/martin/moodle.git/commit/?h=mdl19-xsid=c4a2a76328b5ff0ee8d4289445f41b42ffd46e6d 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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Fresh install of XS 0.6 -- Moodle is disabled at the moment.
This was on VirtualBox. I'm going to try VMware and see if I run into the same problem. -Ben On Wed, Dec 9, 2009 at 10:05 AM, Sameer Verma sve...@sfsu.edu wrote: On Wed, Dec 9, 2009 at 1:33 AM, Ben T benjt...@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! [r...@schoolserver ~]# service pgsql-xs initdb [FAILED] [r...@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. [r...@schoolserver ~]# rm -rf /library/pgsql-xs/data-8.3/* [r...@schoolserver ~]# service pgsql-xs initdb [FAILED] [r...@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.langh...@gmail.com wrote: On Thu, Dec 3, 2009 at 1:15 AM, Ben T benjt...@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? [r...@schoolserver ~]# rpm -qi xs-pkgs Name : xs-pkgs Version : 0.10.1.g2a97d89 Release : 1 (...and a lot more info) [r...@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... [r...@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 21 ) | tee initdb.log [r...@schoolserver ~]# rm -rf /library/pgsql-xs [r...@schoolserver ~]# ( bash -x /etc/init.d/pgsql-xs initdb 21 ) | 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.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting