|
2:
Re: LAMS and Moodle 2.0
|
In response to 1
|
05/27/10 02:52 AM |
|
Hi Ralf,
I've only seen a preview of Moodle 2.0.
My discussions with Martin Dougiamas are that the LAMS module is not going to be included by default in Moodle 2. Although that's not really anything new as the module that was included upto version 1.9 is the LAMS version 1 integration module for Moodle.
So I suspect that for Moodle 2, we would need to download the LAMS2-Moodle module and install it separately from the default Moodle installation (and as we currently do with LAMS2-Moodle module in version 1.6+).
The LAMS Course Format only worked with LAMS version 1. It didn't work with LAMS v2.
As for support for Moodle 2, we will continue to support it and upgrade the LAMS2-Moodle module with whatever it is needed once it comes out.
Thanks,
Ernie
Posted by Ernie Ghiglione
|
|
|
|
4:
Re: LAMS and Moodle 2.0
|
In response to 1
|
06/13/10 10:52 AM |
|
Good evening
please how can I get LAMS module for moodle to integrate with each other ?
Thank in advance for your assistance
Posted by zuheir khlaif
|
|
|
|
|
|
|
9:
Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0
|
In response to 8
|
06/14/10 11:47 AM |
|
when I integrate moodle with Lams , I try to add new lesson a message appear :
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.alaws2006.com Port 80
how can I solve it ?
Posted by zuheir khlaif
|
|
|
|
11:
Re: Re: LAMS and Moodle 2.0
|
In response to 10
|
09/12/10 06:07 AM |
|
Hi Alex,
LAMS will be integrated with Moodle 2. It's on the plans. However, I haven't been able to get to it yet.
I'm hoping to give you a further update on this during the next month.
If any one is able to help with this, please let me know.
Thanks,
Ernie
Posted by Ernie Ghiglione
|
|
|
|
13:
Re: Re: Re: Re: LAMS and Moodle 2.0
|
In response to 12
|
09/20/10 05:26 PM |
|
Hi Alex,
> can help you to accelerate this process?
It would be helpful if someone can let us know what are the main architectural changes in Moodle 2.0.
LAMS has all the "hooks" to do the integration... and these hooks are the same we use for Moodle, Blackboard, .LRN, Sakai, MS SharePoint, etc. So we would need to know how the new Moodle2 modules are built and then identify where we (from Moodle) make use of these LAMS hooks.
I'll be looking at Moodle 2 by the end of this week, so I'll keep you posted on my findings.
Thanks,
Ernie
Posted by Ernie Ghiglione
|
|
|
|
|
16:
Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0
|
In response to 15
|
09/28/10 09:48 AM |
|
Hi Alex,
Yes, installed Moodle 2 (RC 1 http://is.gd/fxNjA) from scratch even compiling Apache and PHP from source. Attached you can find the instructions -pdf document.
It looks quite nice. I really like the new interface a lot cleaner.
When trying to install the lamstwo module, it simply failed and said it couldn't install because it needs to be upgraded. However, it doesn't tell what needs to be upgraded (which it will be really nice for us).
Nevertheless, I download a the NEWMODULE.ZIP (http://tracker.moodle.org/browse/CONTRIB-1385) that Moodle has as example for tool developers, so I'll be using that to compare to our current module and do changes accordingly.
Thanks,
Ernie
Posted by Ernie Ghiglione
|
Attachments:
|
|
|
|
18:
Re: LAMS and Moodle 2.0
|
In response to 1
|
10/05/10 03:37 PM |
|
Fellas,
As we are getting closer to implement a Moodle 2 integration, and given that we have had some issues with configuring integrations properly in the past, I have started to think about ways to easy up the burden in configuration.
Here are some initial thoughs on how the integrations can be improved a bit. If you have any other suggestions, please share them here.
Thanks,
Ernie
Posted by Ernie Ghiglione
|
|
|
|
20:
Re: Re: LAMS and Moodle 2.0
|
In response to 19
|
05/04/11 04:37 AM |
|
Greetings,
I want to introduce myself to this forum; I am a Science/Math teacher at a local secondary school. Having worked with Moodle 2.0 for a while, I am exploring LAMS to incorporate some exciting new designs to complement my current moodle lessons.
Needless to say that I am new with LAMS-Moodle(2.0) integration; and I would appreciate your assistance in getting the integration to work. Oh, I know that this integration is currently being worked on and, I have already done some exploring of the site provided by Ernie Ghiglione (thanks Ernie!).
In a nutshell, I am unable to validate the connectivity for integration while setting up the LAMS module; or start adding a LAMS lesson to a Moodle course. Please note that it is important for me to have seperate Moodle and LMS servers in order to meet organizational requirements.
Although this is a 'tech' forum, please forgive me for the detail of information provided. For future reference let me know if there was a way for me to have included such details seperately; even though I tried to put the following logs in the "Attach ?" part of this post.
My testing LAN setup has 2 virtualbox instances one for Moodle 2.0 and one for LAMS.
1. Moodle 2.0 on a recent release of Ubuntu for my moodle instance. (fatiedu.sma)
2. LAMS 2.3.4 and openfire installed using provided binary deb packages, on a different host but same release of Ubuntu (lamsedu.sma).
3. Both of the above virtual servers are on a virtualbox-internal network I have not installed firewall for this LAN interface.
Here are the open ports on fatiedu.sma (Moodle 2.0) and lamsedu.sma (LAMS/Openfire) respectively
root@fatiedu:~# nmap -v -sT 192.168.0.0/24
Starting Nmap 5.21 ( http://nmap.org ) at 2011-05-04 13:31 GST
Initiating ARP Ping Scan at 13:31
... removed entries for non-existent host ips on the network 192.168.0.0/24
Initiating Connect Scan at 13:31
Scanning 192.168.0.16 [1000 ports]
Discovered open port 8080/tcp on 192.168.0.16
Discovered open port 22/tcp on 192.168.0.16
Completed Connect Scan at 13:31, 0.26s elapsed (1000 total ports)
Nmap scan report for 192.168.0.16
Host is up (0.0048s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
22/tcp open ssh
8080/tcp open http-proxy
... removed entries for non-existent host ips on the network 192.168.0.0/24
Completed Connect Scan at 13:31, 1.22s elapsed (1000 total ports)
Nmap scan report for lamsedu.sma (192.168.0.26)
Host is up (0.0017s latency).
Not shown: 984 closed ports
PORT STATE SERVICE
22/tcp open ssh
1098/tcp open unknown
1099/tcp open unknown
4444/tcp open krb524
4445/tcp open unknown
5222/tcp open unknown
5269/tcp open unknown
7070/tcp open realserver
7443/tcp open unknown
7777/tcp open unknown
8009/tcp open ajp13
8080/tcp open http-proxy
8083/tcp open unknown
8093/tcp open unknown
9090/tcp open zeus-admin
9091/tcp open unknown
..
Here are the integration entries as shown the mysql database on fatiedu.sma (Moodle 2.0) and lamsedu.sma (LAMS/Openfire) respectively
mysql> SELECT * FROM `moodle`.`mdl_config` WHERE ( `id` LIKE '%lamslesson%' OR `name` LIKE '%lamslesson%' OR `value` LIKE '%lamslesson%' );
+-----+--------------------------+-------------------------------+
| id | name | value |
+-----+--------------------------+-------------------------------+
| 584 | lamslesson_serverurl | http://lamsedu.sma:8080/lams/ |
| 585 | lamslesson_serverid | Moodle |
| 586 | lamslesson_serverkey | Moodle |
| 587 | lamslesson_requestsource | Moodle |
+-----+--------------------------+-------------------------------+
4 rows in set (0.01 sec)
mysql> use lams;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> use lams;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from lams_ext_server_org_map;
+-----+----------+-----------+------------+------------+--------+---------------------------------------------------------------------------------------------------+---------------------------------+-------------------------------+----------+-------+
| sid | serverid | serverkey | servername | serverdesc | prefix | userinfo_url | server_url | timeout_url | disabled | orgid |
+-----+----------+-----------+------------+------------+--------+---------------------------------------------------------------------------------------------------+---------------------------------+-------------------------------+----------+-------+
| 1 | Moodle | Moodle | Moodle | Moodle | mdl | http://fatiedu.sma:8080/moodle/mod/lamslesson/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash% | http://fatiedu.sma:8080/moodle/ | http://lamsedu.sma:8080/lams/ | | 7 |
+-----+----------+-----------+------------+------------+--------+---------------------------------------------------------------------------------------------------+---------------------------------+-------------------------------+----------+-------+
1 row in set (0.00 sec)
Excerpt of lamsedu.sma:/usr/share/jboss-4.0.2/server/default/log/lams.log
....
2011-05-04 13:55:39,230 [http-0.0.0.0-8080-8:] DEBUG org.lamsfoundation.lams.webservice.xml.LearningDesignRepositoryServlet - request.getCharacterEncoding is empty, parsing username and courseName as 8859_1 to UTF-8...
2011-05-04 13:55:39,242 [http-0.0.0.0-8080-8:] DEBUG org.lamsfoundation.lams.integration.service.IntegrationService - http://fatiedu.sma:8080/moodle/mod/lamslesson/userinfo.php?ts=1304502939242&un=fatiedu&hs=41f2f8eed0b37f802af6e3b4709dd24623483661
2011-05-04 13:55:39,248 [http-0.0.0.0-8080-8:] ERROR org.lamsfoundation.lams.webservice.xml.LearningDesignRepositoryServlet - can not retreive user information
org.lamsfoundation.lams.integration.UserInfoFetchException: Fail to fetch user data from external server:Moodle - Unexpected return HTTP Status:404
at org.lamsfoundation.lams.integration.service.IntegrationService.getUserDataFromExtServer(IntegrationService.java:336)
at org.lamsfoundation.lams.integration.service.IntegrationService.createExtUserUseridMap(IntegrationService.java:298)
at org.lamsfoundation.lams.integration.service.IntegrationService.getExtUserUseridMap(IntegrationService.java:169)
at org.lamsfoundation.lams.integration.service.IntegrationService$$FastClassByCGLIB$$24924e31.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
Excerpt of fatiedu.sma:/var/log/apache2/error.log
[Wed May 04 13:55:39 2011] [error] [client 192.168.56.1] Default exception handler: Call to LAMS failed: received an HTTP status of 400 Bad Request. Please check the configurations settings and/or contact your system administrator. Debug: \n* line 429 of /lib/setuplib.php: moodle_exception thrown\n* line 307 of /mod/lamslesson/lib.php: call to print_error()\n* line 152 of /mod/lamslesson/mod_form.php: call to lamslesson_get_sequences_rest()\n* line 152 of /lib/formslib.php: call to mod_lamslesson_mod_form->definition()\n* line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()\n* line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()\n, referer: http://fatiedu.sma:8080/moodle/course/view.php?id=7
Posted by Afroze Fatima Abidi
|
Attachments:
|
|
|
21:
Re: Re: Re: LAMS and Moodle 2.0
|
In response to 20
|
05/05/11 11:05 PM |
|
Hi Afroze,
Sorry for this late reply...
You can see that both LAMS and Moodle can "see" each other. However, when LAMS is trying to get the user info from your server, it's getting a 404:
org.lamsfoundation.lams.integration.UserInfoFetchException: Fail to fetch user data from external server:Moodle - Unexpected return HTTP Status:404
The issue here is the User Information URL you have set up (most likely).
So you can follow how we have set this up in our server, here's the URL we use for our demo server:
http://moodle.lamscommunity.org/moodle2/mod/lamslesson/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%
See pic:
Is your Moodle server running on port 8080?
Thanks,
Ernie
Posted by Ernie Ghiglione
|
|
|
22:
Re: Re: Re: Re: LAMS and Moodle 2.0
|
In response to 21
|
05/06/11 04:45 AM |
|
Hi Ernie, Thanks for your response, your assistance is appreciated.
1. My LAMS setup for integrations is identical (besides the server and moodle2 part) to the link you have in the dem0 -
http://fatiedu.sma:8080/moodle/mod/lamslesson/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%
http://moodle.lamscommunity.org/moodle2/mod/lamslesson/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%
2. I am required to put moodle and lams on seperate server virtual/ip for keeping the server, database etc. isolated. Can you confirm that your demo has moodle and lms on seperate server/ip instances as well. Please note that my setup works fine 'if and when' I put both moodle and lams on the same server/ip.
3. I have made sure to remove .htaccess from moodle web/date folders, ports 8080 are open on both servers and there is no firewall on this 192.168.0/ network
4. tail -f /usr/share/jboss-4.0.2/server/default/log/localhost_access_log.2011-05-06.log
192.168.0.26 - - [06/May/2011:13:47:56 +0400] "GET /moodle/mod/lamslesson/userinfo.php?ts=1304675276943&un=fatiedu&hs=ceb3a00f660d23572d179243b0754089c520062b HTTP/1.1" 404 1055
192.168.0.16 - - [06/May/2011:13:47:56 +0400] "GET /lams//services/xml/LearningDesignRepository?serverId=moodle&datetime=May+06%2C2011+1%3A47+pm&hashValue=efe9794c684ff696037558b2854d305de058d864&username=fatiedu&courseId=7&courseName=Unit-5+Atomic+Physics+12%2F2010&mode=2&country=AE&lang=en HTTP/1.0" 400 1068
Note 192.168.0.16 (fatiedu.sma) is Moodle server; and 192.168.0.16 (lamsedu.sma) is LAMS server
Interestingly the first 'GET' log has valid URL, and I get valid data back appending it to moodle; however when I do the same for second 'GET' to LMS it resluts in the following error -- (how did you attach the graphics, well, here is the text)
HTTP Status 400 - can not retreive user information
type Status report
message can not retreive user information
description The request sent by the client was syntactically incorrect (can not retreive user information).
Apache Tomcat/5.5.9
Let me know if you have any suggestions, and thanks again for your help. I will put the moodle and lms on the same server in the meantime to get it going for prototyping my lesson plans.
I am impressed with LMS have big plans to use it in my lesson designs. I intend to get familiar with LMS pretty fast and will pitch in with assisting on your project as well.
Regards,
Posted by Afroze Fatima Abidi
|
|
|
23:
Re: Re: Re: Re: Re: LAMS and Moodle 2.0
|
In response to 22
|
05/06/11 08:26 AM |
|
Hi Afroze,
1. My LAMS setup for integrations is identical (besides the server and moodle2 part) to the link you have in the dem0 -
http://fatiedu.sma:8080/moodle/mod/lamslesson/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%
Hmmm... so you are running your moodle server on port 8080?
2. I am required to put moodle and lams on seperate server virtual/ip for keeping the server, database etc. isolated.
No, your are not. You can keep them in separate boxes, IPs and even countries if you like. The only thing, of course, is that both servers should be able to make ports (in and out) on their respective ports.
So if you are running moodle on port 80, then your LAMS server should be allowed to make outgoing calls on port 80. And if LAMS runs on port 8080, then your Moodle server should be allowed to call out on that port.
3. I have made sure to remove .htaccess from moodle web/date folders, ports 8080 are open on both servers and there is no firewall on this 192.168.0/ network
I don't think this is a network issue as you are getting a response... either a 404 or a 400, but a response.
192.168.0.26 - - [06/May/2011:13:47:56 +0400] "GET /moodle/mod/lamslesson/userinfo.php?ts=1304675276943&un=fatiedu&hs=ceb3a00f660d23572d179243b0754089c520062b HTTP/1.1" 404 1055
Ok, so this call is made from LAMS to Moodle to retrieve the user's information. Moodle is returning a 404? So maybe this page does not exist? Can you confirm that the path for your moodle server is correct?
Interestingly the first 'GET' log has valid URL, and I get valid data back appending it to moodle
Are you saying that Moodle is indeed returning the user info?
however when I do the same for second 'GET' to LMS it resluts in the following error -- (how did you attach the graphics, well, here is the text)
HTTP Status 400 - can not retreive user information
type Status report
message can not retreive user information
description The request sent by the client was syntactically incorrect (can not retreive user information).
Apache Tomcat/5.5.9
RIght, so it's when Moodle is requesting data from LAMS that you are getting the error.
/lams//services/xml/LearningDesignRepository?serverId=moodle&datetime=May+06%2C2011+1%3A47+pm&hashValue=efe9794c684ff696037558b2854d305de058d864&username=fatiedu&courseId=7&courseName=Unit-5+Atomic+Physics+12%2F2010&mode=2&country=AE
I think there are parameter missing. Let me double check with the integration specs to see why this is happening. I'll get back to you shortly.
Thanks,
Ernie
Posted by Ernie Ghiglione
|
|
|
24:
Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0
|
In response to 23
|
05/06/11 12:59 PM |
|
Hi Ernie;
Thanks for your response,
I looked at the 'integration specs'
"Every time a LMS user attempts to access LAMS, LAMS will check to see if the user exists in its database. If the user has not been created in LAMS, LAMS will make a call to the external application to retrieve user information and create the user on the fly. Therefore you will need to set up a user information servlet on the LMS side that will return user information to LAMS"
OK, so a corresponding user will need to be created in LAMS, may be on a fly by an 'information servlet'. I am not sure if I have to set up that or if it is a part of integration that is already in place.
I am attaching some details/observations along with lams.log on this.
Thanks for your help. Let me know if I can do more chasing into this.
Regards,
Posted by Afroze Fatima Abidi
|
Attachments:
|
|
|
|
26:
Re: Re: Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0
|
In response to 25
|
05/08/11 12:28 AM |
|
Hi Ernie;
I should have used nslookup or host commands instead of ping to confirm network connectivity . There was a problem with reverse lookup between the moodle and lams hosts.
Installed dnsmasq, reworked /etc/hosts, cleaned caches, used nslookup and dig to confirm connectivity -- problem resolved. I am starting to work on my lesson prototypes as I post this message.
Appreciate your help and thanks for pointing me in the right direction.
Regards,
Posted by Afroze Fatima Abidi
|
|
|