Forum Problems Installing LAMS: Re: Moodle LAMS validation failed


 
Search: 

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