Forum Problems Installing LAMS: Moodle LAMS validation failed


 
You may request notification for Moodle LAMS validation failed.
Search: 

1: Moodle LAMS validation failed
04/06/13 11:46 PM
[ Reply | Forward ]
Hi, I have been reviewing the forums about similar issues, but have been unable to find a solution.

My config is:

Moodle 2.3.4, Lams 2.4, Moodle Plugin version used 20120322.

Servers: Ubuntu 12.04LTS

LAMS Server URL: http://xxx.xx.xx.92:8080/lams/

Moodle Server URL: http://xxx.xx.xx.131/


I am confident that my settings are correct between moodle and lams as I have cut and pasted them between systems as well as typed manually as per the demo video tutorial. The lams integration profile for the sever is enabled.

I check the mod/lamslesson/validate.js script when activated on moodle and the settings are correctly picked up and sent to the lams server.

However, after a delay I get a validation failed: please check that the settings you have entered match with the settings in LAMS. It would appear to be timing out, but I can happly get to the lams via a browser from each machine and there are no firewalls active.

Can anyone suggest any log files which may provide info on whats going wrong? Any thoughts would be appreciated.

Thanks in advance.

Posted by Neil Kingham

2: Re: Moodle LAMS validation failed
In response to 1 04/08/13 10:09 AM
[ Reply | Forward ]
Hi Neil,

Yeah, this can be a tricky one.

First, check the LAMS web logs to see if there was a moodle call to it at all.

The log files are in this folder: jboss-5.1/server/default/log

Check for the localhost_access_log.2013-MM-DD.log file (see proper date) and ran a "tail -f" for this file.

If you don't see anything, then LAMS is not getting a call from Moodle.

Then you can check on the Moodle server if you can make calls from it to LAMS. On the command line see if you can do a

wget http://xxx.xx.xx.92:8080/lams/


Let me know how you go.

Cheers,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Moodle LAMS validation failed
In response to 2 04/09/13 04:40 AM
[ Reply | Forward ]
Hi and Thanks for repsonding.

So I attempted a validate settings from the moodle Lamslesson module from within moodle and a wget from the command line of the moodle box.

When I look at the log "/var/log/jboss/localhost_access_log.2013-04-09.log" for today this is what it has.

Log starts:

xxx.xxx.xxx.xxx - - [09/Apr/2013:20:09:37 +1000] "GET /lams/index.do HTTP/1.1" 200 8025 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MAAU)"
xxx.xxx.xxx.xxx - - [09/Apr/2013:20:09:48 +1000] "POST /lams/j_security_check HTTP/1.1" 302 - "http://xxx.xxx.xxx.xxx:8080/lams/index.do" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MAAU)"
xxx.xxx.xxx.xxx - nkingham [09/Apr/2013:20:09:48 +1000] "GET /lams/index.do HTTP/1.1" 200 6058 "http://xxx.xxx.xxx.xxx:8080/lams/index.do" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MAAU)"
xxx.xxx.xxx.xxx - nkingham [09/Apr/2013:20:09:48 +1000] "GET /lams/loadVars.jsp HTTP/1.1" 200 1622 "http://xxx.xxx.xxx.xxx:8080/lams/index.do" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MAAU)"
xxx.xxx.xxx.xxx - - [09/Apr/2013:20:21:59 +1000] "GET /lams/ HTTP/1.1" 200 8025 "-" "Wget/1.13.4 (linux-gnu)"

Log stops.


The wget from the moodle box displays the following result:

UAT:~$ wget http://xxx.xxx.xxx.xxx:8080/lams/
--2013-04-09 20:19:31-- http://xxx.xxx.xxx.xxx:8080/lams/
Resolving proxy... xxx.xxx.xxx.xxx
Connecting to proxy|xxx.xxx.xxx.xxx|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 8025 (7.8K) [text/html]
index.html: Permission denied



Thoughts? Thanks again.

Kind regards

Neil Kingham

Posted by Neil Kingham

4: Re: Re: Re: Moodle LAMS validation failed
In response to 3 05/16/13 12:39 AM
[ Reply | Forward ]
Its been a little over a month looking at this problems and haven't had any replies, so I guess I'll reply to myself in the remote chance anyone else is having similar issues and this may be of use to them.

I am using moodle 2.3.4, Lams 2.4 and Lamslesson plugin 20120322.

Since I last posted I had assumed that my errors were related to the current configs of the existing servers. So today I have rebuilt them on brand new Ubuntu 12.04.2 servers.

And there is NO change in the behaviour of the problem. I can verify by tracing data that /mod/lamslesson/lib.php functions 'lamslesson_verify' followed by 'lamslesson_http_call' issue a call to the lams server's ip of "http://xxx.xxx.xxx.xxx:8080/lams//services/xml/LessonManager?method=verify&serverId=moodle&datetime=May+16%2C2013+4%3A33+pm&hashValue=c11dcf74782bd6b94e0427594a477126a42ef082".

There are no firewalls and port 8080 on the lams server is being listened to by a java (jboss) but lams apparently doesn't acknowledge it in its logs. And yet I can send a raw wget to the same ip and port and lams logs it appropriately.

Very frustrating - Ernie, if you monitor this, thoughts would be appreciated - otherwise I will keep talking to myself if anything new comes up.

NeilK

Posted by Neil Kingham

5: Re: Re: Re: Moodle LAMS validation failed
In response to 3 05/16/13 05:41 AM
[ Reply | Forward ]
Hi Neil,

Sorry, I didn't see your response from a month ago! My apologies.

Glad that you posted again!

I imagine that your UAT server is your Moodle server? If so, given the results on the logs, it seems that you have a proxy server involved.

So we need to figure out how to configure a proxy in Moodle. So when Moodle makes calls to LAMS, it goes thru the proxy as well.

I did a quick search on this and this is what I found:

http://www.hosting.com/support/moodle/configure-proxy-settings-for-a-moodle-site

Can you configure your proxy settings within Moodle and see how you go?

Thanks,

Ernie

Posted by Ernie Ghiglione

6: Re: Re: Re: Re: Moodle LAMS validation failed
In response to 5 05/21/13 10:32 PM
[ Reply | Forward ]
Hi Enrie,

Thanks for your thoughts. When I got to check our moodle server today, the proxy had been configured in moodle, but I needed to add a local bypass for the lams server. I had configured local bypass at the linux network level, but moodle obviously does its own thing with proxy's.

So having done a little testing, it seems to be validating.

Thankyou for all your assistance.

Posted by Neil Kingham

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