Re: [Server-devel] Backup and Recovery

2009-11-11 Thread Martin Langhoff
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 interaction, but the contents of the document will fail to be loaded in the Activity

Re: [Server-devel] Backup and Recovery

2009-11-11 Thread Hamilton Chua
Martin, Thanks so much. Yes these are the files that I get on restore from my tests. This suggests that we may need to update our XS too. I'm going to grab the patch from http://bugs.sugarlabs.org/ticket/1098 and test it out on SoaS. I'll keep you posted on results. Thanks again for working

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-10 Thread Martin Langhoff
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-sample.tar.bz2 Note that the xoj files don't look like that at all. I think you've tarred

Re: [Server-devel] Backup and Recovery

2009-11-03 Thread Hamilton Chua
Martin, Thanks for the confirmation. I am in the process of debugging. The only change that made it get that far was to the journalentrybundle.py file. Adding the get_bundle_id def (it just returns None btw) allowed it to go a step further and unzip the backup file. However, please see the new

Re: [Server-devel] Backup and Recovery

2009-11-02 Thread Martin Langhoff
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) Browse

Re: [Server-devel] Backup and Recovery

2009-11-01 Thread Hamilton Chua
Martin, Thanks so much for the replies. I have found the problem. I was creating the spins based on the strawberry release. It seems there were a few changes in the journalentrybundle python script since then that allows restore to work. I have backported the changes to the strawberry release

Re: [Server-devel] Backup and Recovery

2009-10-29 Thread Hamilton Chua
Martin, After turning on verbose debugging in the logs and tailing them during an attempted restore. I noticed a series of errors that ended with AttributeError: JournalEntryBundle object has no attribute 'get_bundle_id' I don't believe it's browse as it seems to be doing the right thing. I

Re: [Server-devel] Backup and Recovery

2009-10-27 Thread Martin Langhoff
On Mon, Oct 26, 2009 at 10:27 PM, Caroline Meeks carol...@solutiongrove.com wrote: Backup is now working for us but when I try to recover files by clicking on Hi Caroline! You are a bit of a moving target, I don't know what XS you are using, or what Sugar you are using. And which ds-backup you

Re: [Server-devel] Backup and Recovery

2009-10-27 Thread Martin Langhoff
On Tue, Oct 27, 2009 at 3:31 PM, Hamilton Chua hamilton.c...@gmail.com wrote: I see that it is a journal entry with a data file and a metadata directory. I can unzip the data file to get to the backed up files and it has the correct metadata. That sounds right. I think the problem is that

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

Re: [Server-devel] Backup and Recovery

2009-10-27 Thread Martin Langhoff
On Tue, Oct 27, 2009 at 5:05 PM, Hamilton Chua hamilton.c...@gmail.com wrote: The metadata for the journal is application/vnd.olpc-journal-entry as per its metadata. I'll do a packet capture as you suggested and I'll check the apache server logs too for clues. Then you can probably skip the