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