[Server-devel] Moodle/Ejabberd group config

2009-10-13 Thread Dave Bauer
I am trying to test out the Moodle/Ejabberd course/group configuration
following 
http://wiki.laptop.org/go/XS_Techniques_and_Configuration#Segregating_presence_by_course_groups

I turned on the presence service on moodle, restarted everything,
created some courses.

ejabberdctl srg-list-groups

returns online Online and I can confirm I can still see everyone in
the neighborhood even though they are seperated into different
courses.

Where should I look to debug this?

-- 
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] Moodle/Ejabberd group config

2009-10-13 Thread Martin Langhoff
On Tue, Oct 13, 2009 at 5:22 PM, Dave Bauer d...@solutiongrove.com wrote:
 I am trying to test out the Moodle/Ejabberd course/group configuration
 following 
 http://wiki.laptop.org/go/XS_Techniques_and_Configuration#Segregating_presence_by_course_groups

 I turned on the presence service on moodle, restarted everything,
 created some courses.

Good!

 ejabberdctl srg-list-groups

 returns online Online and I can confirm I can still see everyone in
 the neighborhood even though they are seperated into different
 courses.

- Did you create courses and assign users as teachers or students in them?

- After ~10 minutes ejabberdctl srg-list-groups still lists only Online?
   - Recheck that you got the setting on moodle admin correct
   - look at /var/log/moodle/cron.log -- it is fairly verbose, but it
will talk of creating / destroying the SRGs in ejabberd


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] Moodle/Ejabberd group config

2009-10-13 Thread Dave Bauer
On Tue, Oct 13, 2009 at 11:30 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
 On Tue, Oct 13, 2009 at 5:22 PM, Dave Bauer d...@solutiongrove.com wrote:
 I am trying to test out the Moodle/Ejabberd course/group configuration
 following 
 http://wiki.laptop.org/go/XS_Techniques_and_Configuration#Segregating_presence_by_course_groups

 I turned on the presence service on moodle, restarted everything,
 created some courses.

 Good!

 ejabberdctl srg-list-groups

 returns online Online and I can confirm I can still see everyone in
 the neighborhood even though they are seperated into different
 courses.

 - Did you create courses and assign users as teachers or students in them?


Yes

 - After ~10 minutes ejabberdctl srg-list-groups still lists only Online?
   - Recheck that you got the setting on moodle admin correct

Yes

   - look at /var/log/moodle/cron.log -- it is fairly verbose, but it
 will talk of creating / destroying the SRGs in ejabberd

Thanks, I'll check that out.

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] Moodle/Ejabberd group config

2009-10-13 Thread Dave Bauer
On Tue, Oct 13, 2009 at 11:38 AM, Dave Bauer d...@solutiongrove.com wrote:
 On Tue, Oct 13, 2009 at 11:30 AM, Martin Langhoff
 martin.langh...@gmail.com wrote:
 On Tue, Oct 13, 2009 at 5:22 PM, Dave Bauer d...@solutiongrove.com wrote:
 I am trying to test out the Moodle/Ejabberd course/group configuration
 following 
 http://wiki.laptop.org/go/XS_Techniques_and_Configuration#Segregating_presence_by_course_groups

 I turned on the presence service on moodle, restarted everything,
 created some courses.

 Good!

 ejabberdctl srg-list-groups

 returns online Online and I can confirm I can still see everyone in
 the neighborhood even though they are seperated into different
 courses.

 - Did you create courses and assign users as teachers or students in them?


 Yes

 - After ~10 minutes ejabberdctl srg-list-groups still lists only Online?
   - Recheck that you got the setting on moodle admin correct

 Yes

   - look at /var/log/moodle/cron.log -- it is fairly verbose, but it
 will talk of creating / destroying the SRGs in ejabberd

 Thanks, I'll check that out.



I tracked this down. In moodle/web/auth/olpcxs/auth.php where
schoolserver is set as the hostname. I changed it to use
php_uname('n') and it is working now. I'll submit a patch if you think
this is workable. It coincides with the registration patches to allow
other server names.

Dave

 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




-- 
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] Moodle/Ejabberd group config

2009-10-13 Thread Martin Langhoff
On Tue, Oct 13, 2009 at 5:58 PM, Dave Bauer d...@solutiongrove.com wrote:
 I tracked this down. In moodle/web/auth/olpcxs/auth.php where
 schoolserver is set as the hostname. I changed it to use
 php_uname('n') and it is working now. I'll submit a patch if you think
 this is workable. It coincides with the registration patches to allow
 other server names.

Why was it failing? What was $XS_FQDN?



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] Moodle/Ejabberd group config

2009-10-13 Thread Dave Bauer
On Tue, Oct 13, 2009 at 12:35 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 On Tue, Oct 13, 2009 at 5:58 PM, Dave Bauer d...@solutiongrove.com wrote:
 I tracked this down. In moodle/web/auth/olpcxs/auth.php where
 schoolserver is set as the hostname. I changed it to use
 php_uname('n') and it is working now. I'll submit a patch if you think
 this is workable. It coincides with the registration patches to allow
 other server names.

 Why was it failing? What was $XS_FQDN?

It was concatenating 'schoolserver' . $XS_FQDN where our XS is not
called schoolserver.

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] Moodle/Ejabberd group config

2009-10-13 Thread Martin Langhoff
On Tue, Oct 13, 2009 at 6:37 PM, Dave Bauer d...@solutiongrove.com wrote:
 It was concatenating 'schoolserver' . $XS_FQDN where our XS is not
 called schoolserver.

Arggg. This won't be the only thing broken then, several bits on
the client side hardcode 'schoolserver'...

Play with the domain name as you want, but if you won't let the
hostname be schoolserver, lots of things go wrong. And I can't help
you.



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