Forum Problems Installing LAMS: Call to LAMS failed error


 
You may request notification for Call to LAMS failed error.
Search: 

1: Call to LAMS failed error
08/31/09 12:56 AM
[ Reply | Forward ]
I keep getting the following error when attempting to validate the basic URL used to access the LAMS server:

Call to LAMS failed: received no response or connection was refused. Please check that you have the correct LAMS server URL and that it is online.

Posted by Aureliano Nava

2: Re: Call to LAMS failed error
In response to 1 08/31/09 01:05 AM
[ Reply | Forward ]
It seems that Moodle cannot connect to the LAMS server. Note that this is a server (Moodle) to server (LAMS) call.

Perhaps you can check if from your Moodle server you can make http calls to LAMS?

If you are in linux unix, you can do

telnet {your-lams-server-ip-here} {port-in-which-lams-is-running}

So if the ip for my LAMS server is: 137.111.246.78 and is running on port 8080, then I would go:

telnet 137.111.246.78 8080

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Call to LAMS failed error
In response to 2 08/31/09 11:38 AM
[ Reply | Forward ]
Ernie,

Thank you for responding. I have installed LAMS on my laptop running Vista. I assume this is now acting as the LAMS Server? Additionally, I can open the LAMS Author. The problem is at the Moodle end (on a different server located on Bluehost provider) where I'm getting the LAMS failed error.

When I attempt to open LAMS Author from Moodle server I get:

http://98.154.99.120:8080/lams/LoginRequest?uid=anava&method=author&ts=August+31%2C2009+11%3A46+am&sid=sysadmin&hash=01f0c942ebe0af3699a5428237c4c5b1fc39c873&courseid=2&courseName=USH+8%2F2009&country=US&lang=en&customCSV=anava%2C2%2C2%2Csysadmin&requestSrc=moodle¬ifyCloseURL=http%3A//www.mylausd.com/znani/mod/lamstwo/view.php%3Fid%3D5

The 98.154.99.120 is the internet ip address of my LAN router. In my LAN, my laptop has an assigned address of 192.168.1.102.

Further, when I attempt to add a new lesson from Moodle, I get:

Call to LAMS failed: received no response or connection was refused. Please check that you have the correct LAMS server URL and that it is online.

How do I check from your Moodle server you can make http calls to LAMS?

...too many question...I appreciate your help.

Posted by Aureliano Nava

4: Re: Re: Re: Call to LAMS failed error
In response to 3 08/31/09 04:29 PM
[ Reply | Forward ]
Hi Aureliano,

Yes, once you installed LAMS you are running a LAMS server in your laptop.

Now if your laptops is behind a router, then you would need to ensure that your router forwards calls on the desire port to the 192.168.1.102 address. So this can be a bit tricky, but it's doable. Check in your router's manual for a feature call port forwarding (or just google it :-).

If you just want to test how Moodle and LAMS play together, have a look at the Moodle - LAMS demo site. You can sign up for an account there and see how it all works.

Animations on some of this features are available here:

  1. Authoring and Preview
  2. Enactment/Runtime and Monitoring
  3. Using Moodle Tool outputs for Branching
  4. Achieving interoperability using Export and Import

Let us know if you need any further help.

Thanks,

Ernie

Posted by Ernie Ghiglione

5: Re: Call to LAMS failed error
In response to 1 12/21/09 07:50 PM
[ Reply | Forward ]
Out of curiosity, did you get this resolved? I've got a similar setup. LAMS is running on a local server in my office (Linux Ubuntu Server). MOODLE is running on a BlueHost server.

Independent, both run fine. However, the integration is where I hit a bump. MOODLE is not able to verify the LAMS settings and I am not able to "Add a Lesson" from LAMS. I get an "Call to LAMS failed: received no response or connection was refused. Please check that you have the correct LAMS server URL and that it is online." error. However, I am able to launch LAMS authoring from within LAMS and LAMS creates the appropriate group as 2.3.3 has been designed to do.

I get the same behavior when I try to access this independent of the network the LAMS server is physically located on to ensure it's not a "HOSTS file" issue.

I am wondering if its an issue with my firewall blocking the call from BlueHost. However, port 8080 is opened on my firewall and routes to the LAMS server.

Posted by Eric Evans

6: Re: Re: Call to LAMS failed error
In response to 5 01/02/10 06:41 PM
[ Reply | Forward ]
Hi Eric,

I'm not so sure if you have been able to fix this or not. But what I would suggest is to have a look at the Moodle and LAMS logs to see if you can find where the error might be occurring.

For instance, once you have configured your LAMS and Moodle server to "see" each other, then you should be able to add a LAMS lesson in Moodle. So when you get to add the LAMSv2 activity in Moodle, are you able to click on the "Open Author" button and get the LAMS Authoring window?

If you do get an error, have a look at the LAMS logs to see if LAMS did in fact get a call from the Moodle server.

Let me know how that goes.

Thanks,

Ernie

Posted by Ernie Ghiglione

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