Forum Problems Installing LAMS: 502 error


 
You may request notification for 502 error.
Search: 

1: 502 error
03/22/07 07:24 PM
[ Reply | Forward ]
Can anyone help me with this error (Failed to fetch user from 3rd Party)......seems to an Apache problem in that it's not reading the sql dB....

Trying to set this up to give a demo next week and I have looked at all the obvious.

The main issue stems, I believe from the Lams2 Activity settings which will not validate - error on page. Presumably that means that the database is not being recognised.

Am I missing something?

Any assistance gratefully received

Posted by graham hughes

2: Re: 502 error
In response to 1 03/22/07 07:53 PM
[ Reply | Forward ]
Graham,

* Can you go into the integration screen on the LAMS side (login as sysadmin in LAMS and go use the Sys Admin). Check that the User Information URL is correct. See this screendump for the screen I'm referring to.

* Turn on debugging in LAMS, try accessing LAMS again then then look in the lams.log in the LAMS log directory (jboss-4.0.2/server/default/log) and look for a URL like the one in the User Information URL field. It should be the same except the %blah% bits will have been replaced with real values. Then copy this URL into a browser and test it there. You should get some comma separated data back.

Then can you post the LAMS logs and the Apache logs?

Fiona

Posted by Fiona Malikoff

4: Re: Re: 502 error
In response to 2 03/23/07 12:08 AM
[ Reply | Forward ]
I think I hve done the debugging and log collection as requested....

Posted by graham hughes

Attachments:
5: Re: Re: Re: 502 error
In response to 4 03/23/07 12:19 AM
[ Reply | Forward ]
Sorry ignore the first attachment - the zip file contains all logs you asked for (Ithink)

Posted by graham hughes

6: Re: Re: Re: Re: 502 error
In response to 5 03/23/07 01:07 AM
[ Reply | Forward ]
Graham,

What's the address that you use to access Moodle normally?

(1) http://yourservername/moodle/

or

(2) http://yourservername/

If it is (2) then you need to change the User Information URL (in LAMS) to from "http://localhost/moodle/mod/lamstwo/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%"
to "http://localhost/mod/lamstwo/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%"

ie remove the "moodle" bit out of the path.

Fiona

Posted by Fiona Malikoff

7: Re: Re: Re: Re: Re: 502 error
In response to 6 03/23/07 05:52 PM
[ Reply | Forward ]
That worked, well done Fiona and thanks for your help

Posted by graham hughes

3: Re: 502 error
In response to 1 03/22/07 08:00 PM
[ Reply | Forward ]
You mentioned in http://lamscommunity.org/dotlrn/clubs/technicalcommunity/forums/message-view?message%5fid=399201 that the 'validate' function in the module config page failed... as well as what Fiona mentioned, it might also be worth checking the server id and key, both in your module configuration page in Moodle, and the integration screen in LAMS. If they don't match then the 'validate' button will fail, and there'll be no communication between Moodle/LAMS as Moodle won't be using the right id/key to authenticate with LAMS.

Posted by Jun-Dir Liew

Reply to first post on this page
Back to Problems Installing LAMS