Re: [Server-devel] unregister soas

2009-10-27 Thread Martin Langhoff
On Tue, Oct 27, 2009 at 2:30 AM, David Leeming
da...@leeming-consulting.com wrote:
 I don't have access to the XO used as admin in 0.5.2 before upgrading. I
 want to restore Moodle and all the ejabberd data to fresh install status
 and then start again. Is thispossible? I suppose I can just reinstall 0.6
 fresh. But if there's a way let me know.

You are on 0.6, right? Instructions follow

   service moodle-xs stop
   # drop the moodle database, rm the uploaded files (if any)
   sudo -u postgres dropdb moodle-xs
   rm -fr /library/moodle-xs/*

   # indicate to moodle that it should re-init its DB
   touch /etc/moodle/needsupgrade

   service moodle-xs start

Moodle now controls ejabberd so no need to touch ejabberd's database
that at all.

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] unregister soas

2009-10-27 Thread Martin Langhoff
On Tue, Oct 27, 2009 at 9:32 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
   rm -fr /library/moodle-xs/*

Actually, that line should be

rm -fr /var/lib/moodle/*

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] 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 are using, with
which of Hamilton's many versions of the fixup paches (vanilla Sugar
would normally not have backup).

So... I dunno! You probably need to do a bit of debugging yourself to
diagnose the situation.

 them in Moodle they are not showing up in Sugar with the right file type to
 be used again.  They show up as File Activity + Backup and I can't open

That sounds _very_ wrong. Moodle should be serving the backups with a
special mimetype that Sugar recognizes as a Journal Entry Bundle -- so
the Journal unpacks it and imports it (hence showing the right name,
and type).

 For XOs can you download files and use them again on a new XO?

Yes. I hate to say it, but it works for me.


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] Early F11 XS build

2009-10-27 Thread Martin Langhoff
On Mon, Oct 26, 2009 at 10:40 PM, Jerry Vonau jvo...@shaw.ca wrote:
 http://members.shaw.ca/jvonau/pub/mkusbinstall-F11
 http://members.shaw.ca/jvonau/pub/mkusbinstall-F12

Cool. I'll add those to the xs-livecd repo.

 My XO-1 boots using version 0.7.0 iso as the source for mkusbinstall.

Great. I still think that for XO hardware it's saner to ship the built
img. Running anaconda / rpm on the limited RAM is a pretty daunting
exercise.

And we want to control the kernel we use on the XO. Not all the
fedora-updates kernels / initrds work.

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] 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 the journal doesn't recognize it as a zip
 file and does not unzip it.

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 mimetype being sent...



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] 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 mimetype being sent...

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.

Thanks very much for taking the time to look at the issue.

I'll report back as soon as I've found something.

Best,

Hamilton


___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


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 packet capture. The problem is
somewhere between Browse.xo and the Journal.

The Journal should never store a file that gets downloaded by Browse
with application/vnd.olpc-journal-entry; instead it should unpack it
and import it, reading its metadata.

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] minor xs-activation-httphandler bug

2009-10-27 Thread Martin Langhoff
On Fri, Oct 23, 2009 at 8:32 AM, Daniel Drake d...@laptop.org wrote:
 xs-activation-httphandler.py does:

        lease = myoat.get_lease(sn, 300)
        if lease is not None:
            myoat.mark_served_lease(sn)
            resp[lease] = lease

Duh! thanks for the report. Fixed, pushed out.



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