Re: [Server-devel] ds-backup.py backup_url server check

2009-05-11 Thread Dave Bauer
On Mon, May 4, 2009 at 3:55 PM, Daniel Drake d...@laptop.org wrote:

 2009/5/1 Dave Bauer d...@solutiongrove.com:
  OK. If anyone else is interested, here is Browse-101 for 0.82
  including the fix for http://dev.laptop.org/ticket/8857
  http://dev.laptop.org/~dsd/py-activities/Browse-102.xohttp://dev.laptop.org/%7Edsd/py-activities/Browse-102.xo
 
 
  and I tried browse-103 from activities.sugarlabs.org and neither one
  contains the magic cookie code that I can find. Specifically I looked for
  import sqlite3 in webactivity.py.

 It's there in my Browse-102. Look harder :)


Thank you everyone! I have browse 102 on my XO and it automagically logs
into the schoolserver.

Now I am ready to actually make things work.
Dave


 Daniel




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] ds-backup.py backup_url server check

2009-05-04 Thread Daniel Drake
2009/5/1 Dave Bauer d...@solutiongrove.com:
 OK. If anyone else is interested, here is Browse-101 for 0.82
 including the fix for http://dev.laptop.org/ticket/8857
 http://dev.laptop.org/~dsd/py-activities/Browse-102.xo;

 and I tried browse-103 from activities.sugarlabs.org and neither one
 contains the magic cookie code that I can find. Specifically I looked for
 import sqlite3 in webactivity.py.

It's there in my Browse-102. Look harder :)

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


Re: [Server-devel] ds-backup.py backup_url server check

2009-05-01 Thread Dave Bauer
On Tue, Apr 28, 2009 at 3:39 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Tue, Apr 28, 2009 at 9:01 PM, Dave Bauer d...@solutiongrove.com
 wrote:
  Thanks for the tips. I am testing with my XO. What version of browse.xo
 do I
  need that supports the magic cookies? Do I need to upgrade my XO software
 or
  download certain new files?

 No prob. You want Browse-101 or newer, that's all.

 I searched and found a link to browse-101


OK. If anyone else is interested, here is Browse-101 for 0.82
including the fix for http://dev.laptop.org/ticket/8857
http://dev.laptop.org/~dsd/py-activities/Browse-102.xohttp://dev.laptop.org/%7Edsd/py-activities/Browse-102.xo


and I tried browse-103 from activities.sugarlabs.org and neither one
contains the magic cookie code that I can find. Specifically I looked for
import sqlite3 in webactivity.py.

Is there a certain release or URL for the browse-101 that I should be using
to test?

Thanks
Dave




 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




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] ds-backup.py backup_url server check

2009-05-01 Thread Martin Langhoff
On Fri, May 1, 2009 at 5:19 PM, Dave Bauer d...@solutiongrove.com wrote:
 OK. If anyone else is interested, here is Browse-101 for 0.82
 including the fix for http://dev.laptop.org/ticket/8857
 http://dev.laptop.org/~dsd/py-activities/Browse-102.xo;

That's Daniel's release. Look for a release issued by Simon Schampijer.

 and I tried browse-103 from activities.sugarlabs.org and neither one
 contains the magic cookie code that I can find. Specifically I looked for
 import sqlite3 in webactivity.py.

Weird. But the numbers are misleading (one of the serious drawbacks in
the linear numbering scheme we have :-/  )

 Is there a certain release or URL for the browse-101 that I should be using
 to test?

I think it depends on the release you want to run it on. For the SoaS
series, grab at least 104 I think. For XOs running 8.2, grab 101.

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] ds-backup.py backup_url server check

2009-04-24 Thread Martin Langhoff
On Thu, Apr 23, 2009 at 10:58 PM, Dave Bauer d...@solutiongrove.com wrote:
 I don't see anything on the XS that responds on this URL. Should this
 respond or do I have the wrong version of this script or I am confused?
 If something should respond on this URL, is it part of Moodle, ds-backup
 server or something else?

rpm -ql ds-backup-server should list the files you're after :-)

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] ds-backup.py backup_url server check

2009-04-24 Thread Martin Langhoff
On Fri, Apr 24, 2009 at 5:05 PM, Dave Bauer d...@solutiongrove.com wrote:
 I looked but I don't see anything that responds to
 http://schoolserver/backup/1

Ummm!

# rpm -ql ds-backup-server
/etc/cron.d/ds-backup-server.conf
/etc/httpd/conf.d/050-ds-backup.conf  === Start reading here
/etc/incron.d/ds-backup.conf
/usr/bin/ds-cleanup.py
/usr/bin/ds-cleanup.sh
/usr/bin/ds-postprocess.py
/usr/share/doc/ds-backup-server-0.8.1
/usr/share/doc/ds-backup-server-0.8.1/AUTHORS
/usr/share/doc/ds-backup-server-0.8.1/COPYING
/usr/share/doc/ds-backup-server-0.8.1/README
/var/lib/ds-backup/completion
/var/lib/ds-backup/recentclients
/var/www/ds-backup/backup-available.py
/var/www/ds-backup/ds-restore.php

 Upon further research, i added a print e.code into ds-backup.py I see I am
 getting a 403 unauthorized response from the schoolserver. This is on a
 registered client that can get into moodle using the browse.xo magic cookie.
 I am not clear on how authentication is supposed to work with the ds-backup
 code.

I get the impression that you're experimenting with a custom setup --
Maybe it's a good idea to get a conventional XS + XO setup in
parallel, so you can see how it works when it works, and then you can
compare it with your setup.

Either way -- enable debug on that config file, restart apache and the
apache logs will tell us what's happening.

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] ds-backup.py backup_url server check

2009-04-23 Thread Carol Farlow Lerche
When the client references schoolserver, it depends on client
configuration where and if it finds it.  Places that can affect this lookup
process are the configuration designating what is your DNS server, the
configuration of your resolver (e.g. does it supply a default domain if the
requested name is not fully qualified.  So if your local domain is
configured to be mydom.com, schoolserver.mydom.com might be the actual
name that is looked up.  Finally if you have an /etc/hosts file you can
supply a local name for an arbitrary IP address, so you could have a line
there that gave 192.0.2.1 schoolserver

If your schoolserver is not named schoolserver in your same domain, just
add an /etc/host entry.

On Thu, Apr 23, 2009 at 1:58 PM, Dave Bauer d...@solutiongrove.com wrote:

 Hi,

 I have updated my XS to the lastest code and I have the ds-backup server
 code on there.
 I have ds-backup-client on my client (slightly modified SoaS).

 Now I am investigating how this works and I am reviewing ds-backup.py to
 see why my backups are not working.

 I am looking around line 114 and I see this

backup_url = 'http://schoolserver/backup/1'

 I see that the serial number from the client is appended to this.

 I don't see anything on the XS that responds on this URL. Should this
 respond or do I have the wrong version of this script or I am confused?
 If something should respond on this URL, is it part of Moodle, ds-backup
 server or something else?

 Thanks!
 Dave

 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

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




-- 
I don't consider him a particularly reliable source of information.

-- Secretary of State Hillary Clinton, at a House Foreign Affairs Committee
meeting, on former Vice President Dick Cheney.
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] ds-backup.py backup_url server check

2009-04-23 Thread Dave Bauer
On Thu, Apr 23, 2009 at 5:52 PM, Carol Farlow Lerche c...@msbit.com wrote:

 When the client references schoolserver, it depends on client
 configuration where and if it finds it.  Places that can affect this lookup
 process are the configuration designating what is your DNS server, the
 configuration of your resolver (e.g. does it supply a default domain if the
 requested name is not fully qualified.  So if your local domain is
 configured to be mydom.com, schoolserver.mydom.com might be the actual
 name that is looked up.  Finally if you have an /etc/hosts file you can
 supply a local name for an arbitrary IP address, so you could have a line
 there that gave 192.0.2.1 schoolserver

 If your schoolserver is not named schoolserver in your same domain, just
 add an /etc/host entry.


Hi, yes i can connect to the XS at http://schoolserver, ping schoolserver
etc. It does look like its configured correctly. The SoaS is getting a DHCP
address from the XS.

Thanks

Dave



 On Thu, Apr 23, 2009 at 1:58 PM, Dave Bauer d...@solutiongrove.comwrote:

 Hi,

 I have updated my XS to the lastest code and I have the ds-backup server
 code on there.
 I have ds-backup-client on my client (slightly modified SoaS).

 Now I am investigating how this works and I am reviewing ds-backup.py to
 see why my backups are not working.

 I am looking around line 114 and I see this

backup_url = 'http://schoolserver/backup/1'

 I see that the serial number from the client is appended to this.

 I don't see anything on the XS that responds on this URL. Should this
 respond or do I have the wrong version of this script or I am confused?
 If something should respond on this URL, is it part of Moodle, ds-backup
 server or something else?

 Thanks!
 Dave

 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

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




 --
 I don't consider him a particularly reliable source of information.

 -- Secretary of State Hillary Clinton, at a House Foreign Affairs Committee
 meeting, on former Vice President Dick Cheney.




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] ds-backup.py backup_url server check

2009-04-23 Thread Carol Farlow Lerche
Check the web server error log on the XS, it might have more diagnostic
info.

On Thu, Apr 23, 2009 at 7:05 PM, Dave Bauer d...@solutiongrove.com wrote:



 On Thu, Apr 23, 2009 at 6:44 PM, Dave Bauer d...@solutiongrove.comwrote:



 On Thu, Apr 23, 2009 at 5:52 PM, Carol Farlow Lerche c...@msbit.comwrote:

 When the client references schoolserver, it depends on client
 configuration where and if it finds it.  Places that can affect this lookup
 process are the configuration designating what is your DNS server, the
 configuration of your resolver (e.g. does it supply a default domain if the
 requested name is not fully qualified.  So if your local domain is
 configured to be mydom.com, schoolserver.mydom.com might be the actual
 name that is looked up.  Finally if you have an /etc/hosts file you can
 supply a local name for an arbitrary IP address, so you could have a line
 there that gave 192.0.2.1 schoolserver

 If your schoolserver is not named schoolserver in your same domain,
 just add an /etc/host entry.


 Hi, yes i can connect to the XS at http://schoolserver, ping schoolserver
 etc. It does look like its configured correctly. The SoaS is getting a DHCP
 address from the XS.



 I put print e.code in the HTTPError handler in check_server_availble and
 the error code is 403 for Unauthorized. I can connect to Moodle with the
 magic cookie in Browse so I am not sure what is expected for authentication
 for the backup.

 Dave



 Thanks

 Dave



 On Thu, Apr 23, 2009 at 1:58 PM, Dave Bauer d...@solutiongrove.comwrote:

 Hi,

 I have updated my XS to the lastest code and I have the ds-backup server
 code on there.
 I have ds-backup-client on my client (slightly modified SoaS).

 Now I am investigating how this works and I am reviewing ds-backup.py to
 see why my backups are not working.

 I am looking around line 114 and I see this

backup_url = 'http://schoolserver/backup/1'

 I see that the serial number from the client is appended to this.

 I don't see anything on the XS that responds on this URL. Should this
 respond or do I have the wrong version of this script or I am confused?
 If something should respond on this URL, is it part of Moodle, ds-backup
 server or something else?

 Thanks!
 Dave

 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

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




 --
 I don't consider him a particularly reliable source of information.

 -- Secretary of State Hillary Clinton, at a House Foreign Affairs
 Committee meeting, on former Vice President Dick Cheney.




 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com




 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

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




-- 
I don't consider him a particularly reliable source of information.

-- Secretary of State Hillary Clinton, at a House Foreign Affairs Committee
meeting, on former Vice President Dick Cheney.
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel