Re: [Server-devel] XO Registration Failed with XS

2010-06-17 Thread Hamilton Chua
Hi Ganesh, I wrote this down a while back when I was figuring out how to get SoaS to register and backup with an XS, hope this helps you. The registration process begins when an XO laptop user clicks on the avatar and then clicks Register from the drop down menu. This action executes *

Re: [Server-devel] question about ds_version in dsbackuplib.php

2010-02-11 Thread Hamilton Chua
Hello Martin, Things got suddenly busy and I was not able to keep track of this. How much work is needed to get XS to support the new DS format that Blueberry uses. Let me know if there's anything I can do to help. Best, Hamilton On Wed, 2010-01-27 at 12:40 -0500, Martin Langhoff wrote: On

Re: [Server-devel] question about ds_version in dsbackuplib.php

2010-01-27 Thread Hamilton Chua
$version; }; On Wed, Jan 27, 2010 at 11:46 PM, Martin Langhoff martin.langh...@gmail.com wrote: ds-backup does the right thing for v1 and v2. Anything different than that is an unknown format. So yes, you are correct :-) cheers, m On Wed, Jan 27, 2010 at 9:06 AM, Hamilton Chua hamilton.c

[Server-devel] question about ds_version in dsbackuplib.php

2010-01-27 Thread Hamilton Chua
Hi Martin. I just wanted to ask what the significance is of the version file in the datastore. There is a function ds_version in dsbackuplib.php which checks the version number. It seems that if the version is greater than 2 it will always return the message Datastore is corrupt, or has unknown

Re: [Server-devel] We need: examples of XS hardware in use --

2010-01-12 Thread Hamilton Chua
Hello Martin, Happy New Year ! We run our XS inside virtual machines. I have XS inside virtualbox on my Lenovo T61 laptop Santa Rosa Core 2 DUO 2.0 Ghz 4GB DDR2 120GB HDD while Solutiongrove runs a couple of XS installations inside VMWare ESXi (http://www.vmware.com/products/esxi/). I'll

Re: [Server-devel] Backup and Recovery

2009-11-11 Thread Hamilton Chua
on this. Best, Hamilton On Tue, 2009-11-10 at 14:03 +0100, Martin Langhoff wrote: On Fri, Nov 6, 2009 at 1:41 PM, Hamilton Chua hamilton.c...@gmail.com wrote: Please allow me, you can download a sample of the downloaded backup journal from http://www.solutiongrove.com/backup-journal

Re: [Server-devel] Backup and Recovery

2009-11-11 Thread Hamilton Chua
Thanks Martin. On Wed, 2009-11-11 at 11:43 +0100, Martin Langhoff wrote: On Wed, Nov 11, 2009 at 11:33 AM, Hamilton Chua hamilton.c...@gmail.com wrote: I'm going to grab the patch from http://bugs.sugarlabs.org/ticket/1098 and test it out on SoaS. It will work better in the Journal

Re: [Server-devel] Backup and Recovery

2009-11-03 Thread Hamilton Chua
wrote: On Mon, Nov 2, 2009 at 4:43 AM, Hamilton Chua hamilton.c...@gmail.com wrote: I have backported the changes to the strawberry release and restore seems to be working now. Good to hear you've narrowed it down. I'll probably have to apply similar patches on the OLPC F11 Sugar :-) 4

Re: [Server-devel] Backup and Recovery

2009-11-01 Thread Hamilton Chua
of expecting the Activity+Backup file to be replaced by the restored data in the Journal. Thanks again. Best, Hamilton On Fri, 2009-10-30 at 10:43 +0100, Martin Langhoff wrote: On Fri, Oct 30, 2009 at 1:08 AM, Hamilton Chua hamilton.c...@gmail.com wrote: After turning on verbose debugging

Re: [Server-devel] Backup and Recovery

2009-10-29 Thread Hamilton Chua
that the activity and activity_id files are empty and the mime_type says it is application/vnd.olpc-journal-entry. Does this sound right ? Thanks, Hamilton On Tue, 2009-10-27 at 17:27 +0100, Martin Langhoff wrote: On Tue, Oct 27, 2009 at 5:05 PM, Hamilton Chua hamilton.c...@gmail.com

Re: [Server-devel] Backup and Recovery

2009-10-27 Thread Hamilton Chua
Hi Martin, We are using XS v 06d5, Sugar 0.84 and the ds-backup rpm from http://dev.laptop.org/~martin/public_rpms/joyride/ds-backup-client-0.8.1-1.olpc3.noarch.rpm All modifications are in the latest patches in http://dev.sugarlabs.org/ticket/1124 I'm in the process of debugging the problem.

Re: [Server-devel] Backup and Recovery

2009-10-27 Thread Hamilton Chua
as a backup file that should be restored (or unzipped). Can I get a sample of the metadata directory of a downloaded backup file ? Thanks in advance, Hamilton On Tue, 2009-10-27 at 19:29 +0800, Hamilton Chua wrote: Hi Martin, We are using XS v 06d5, Sugar 0.84 and the ds-backup rpm from http

Re: [Server-devel] Backup and Recovery

2009-10-27 Thread Hamilton Chua
Hi Martin, Two options there: moodle isn't serving it with the right mime-type (application/vnd.olpc-journal-entry) or something is going amiss in the Browse.xo-Journal handling of the file. If you can do a packet capture of when you download the file, you should be able to see the

[Server-devel] datastore is corrupt message after aliasing

2009-10-13 Thread Hamilton Chua
Hi Martin, We are testing the process involved in replacing a lost stick. In moodle we use the alias feature to associate the old account (lost stick) with a new one (new stick). We are seeing a problem after aliasing. When you visit the backup tab we get the error message Datastore is

Re: [Server-devel] timestamps on backups

2009-09-17 Thread Hamilton Chua
York which is probably the timezone PHP is using. On Wed, 2009-09-16 at 15:05 -0700, Tom Mitchell wrote: On Wed, Sep 16, 2009 at 5:37 AM, Martin Langhoff martin.langh...@gmail.com wrote: On Wed, Sep 16, 2009 at 2:28 PM, Hamilton Chua hamilton.c...@gmail.com wrote: I'm not sure if anybody has

Re: [Server-devel] timestamps on backups

2009-09-17 Thread Hamilton Chua
Hi Martin, My responses inline ... - Can you confirm date --utc is correct on the XS and on the involved XOs? Yes, date--utc on both XS and XO's are the same if not close to each other, the difference being a few seconds. - If you look at the datastore-timestamp directories - are the

Re: [Server-devel] timestamps on backups

2009-09-17 Thread Hamilton Chua
Actually - time() is doiing the right thing. It was the use of mktime() that was bogus. Replace mktime() with gmmtime(), the 3 times it appears in dsbackuplib.php and the problem is gone. Thanks Martin :-) thanks for the debugging! You're welcome.

[Server-devel] timestamps on backups

2009-09-16 Thread Hamilton Chua
Hello, I'm not sure if anybody has noticed this yet but after doing a backup, it seems the datestamps on the backup page are wrong. For instance, after a recent backup the backup page in moodle says that the last backup was 4 hours ago even though monitoring the cron logs show that it has just

Re: [Server-devel] [PATCH] create_user: fix handling of parameters - fixes empty authorized_keys

2009-09-15 Thread Hamilton Chua
Yay! Thanks Martin ! :-) On Tue, 2009-09-15 at 12:08 +0200, Martin Langhoff wrote: We need doublequotes for interpolation. Single quotes look more symmetrical in if [ $a == 'x' ] constructs but we want the left side to be interpolated and the right side to be taken literally. ---

Re: [Server-devel] [Sugar-devel] Backup and Restore for Sugar on a Stick

2009-08-08 Thread Hamilton Chua
Hello Tomeu, The modifications are intended for SoaS only but I'm programming them in such a way that they should not break if Sugar is running on SoaS. Although I already have patches in the form of diffs, they were not created using 'git format-patch. I've read the code review procedures and

Re: [Server-devel] [Sugar-devel] Backup and Restore for Sugar on a Stick

2009-08-08 Thread Hamilton Chua
but I'm programming them in such a way that they should not break if Sugar is running on SoaS. I'm confused, did you meant to say not break if _not_ running on SoaS? Haha, yes sorry. I meant that it should not break when running in an OLPC Laptop :-)

Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store

2009-05-11 Thread Hamilton Chua
backup ui. Best, Hamilton On Thu, May 7, 2009 at 8:11 AM, Hamilton Chua hamilton.c...@gmail.com wrote: Martin, Thanks, sorry I don't have a lot of activities to backup yet on my test SoaS. I'll give this a go today and report back the results here. Best, Hamilton On Wed, 2009-05-06

Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store

2009-05-06 Thread Hamilton Chua
Martin, Thanks, sorry I don't have a lot of activities to backup yet on my test SoaS. I'll give this a go today and report back the results here. Best, Hamilton On Wed, 2009-05-06 at 19:23 +0200, Martin Langhoff wrote: On Tue, May 5, 2009 at 4:52 PM, Martin Langhoff

Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store

2009-05-05 Thread Hamilton Chua
Sure thing. It's on its way to your inbox. Thanks !!! ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel

Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store

2009-04-27 Thread Hamilton Chua
, Hamilton On Fri, 2009-04-24 at 08:49 +0200, Martin Langhoff wrote: On Fri, Apr 24, 2009 at 1:58 AM, Hamilton Chua hamilton.c...@gmail.com wrote: I'm using SoaS, I have modified schoolserver.py to register with my XS and keep the generated serial and uuid in gconf. I have also modified

[Server-devel] thoughts on registering SoaS with an XS and moodle integration

2009-03-12 Thread Hamilton Chua
Hello, I would like to ask what the plan is for allowing Sugar running on hardware other than an XO to register with an XS. I had a quick look at /usr/bin/registration-server in the XS and schoolserver.py in a Sugar installation and I was able to trick the XS into registering an SoaS by