Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0


 
Search: 

24: Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0
In response to 23 05/06/11 12:59 PM
[ Reply | Forward ]
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:
25: Re: Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0
In response to 24 05/06/11 09:28 PM
[ Reply | Forward ]
Hi Afroze,

I think the error is here:


2011-05-06 22:36:32,901 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.integration.service.IntegrationService - http://fatiedu.sma:8080/moodle/mod/lamslesson/userinfo.php?ts=1304706992900&un=fatiedu&hs=28dd88676daf61419cba19b8b535238a02306a37
2011-05-06 22:36:32,909 [http-0.0.0.0-8080-4:] 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

For some reason when LAMS is calling Moodle to get the user's details, it's getting a 404.

You mentioned before that if you call the URL (http://fatiedu.sma:8080/moodle/mod/lamslesson/userinfo.php?ts=1304706992900&un=fatiedu&hs=28dd88676daf61419cba19b8b535238a02306a37) from your browser you are getting the user data... is this correct?

If so, then are you using a proxy in your network?

Thanks,

Ernie

Posted by Ernie Ghiglione

26: Re: Re: Re: Re: Re: Re: Re: Re: LAMS and Moodle 2.0
In response to 25 05/08/11 12:28 AM
[ Reply | Forward ]
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

27: Re: LAMS and Moodle 2.0
In response to 26 05/08/11 12:54 AM
[ Reply | Forward ]
Great! Glad it's all working. Would love to hear if you have any feedback to improve this.

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum