Forum Problems Installing LAMS: Re-installing Lams


 
You may request notification for Re-installing Lams.
Search: 

1: Re-installing Lams
09/28/10 09:28 AM
[ Reply | Forward ]
I have been trying to integrate lams with moodle.1.9.9 and am loosing the will to live. I just cannot get moodle to validate. I want to start afresh.

What do I need to do to clean up my system (Debian Linux) to remove all traces of lams?

Any sugestions greatfully received.

Posted by Steve Squires

2: Re: Re-installing Lams
In response to 1 09/28/10 09:33 AM
[ Reply | Forward ]
Hi Steve,

Is it really that bad?

What are the error messages that you are getting? If you post them here, we will be able to help.

Did you install LAMS on debian using the .deb package? If so, just do:

# apt-get remove lams2

and that should do.

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Re-installing Lams
In response to 2 09/28/10 09:42 AM
[ Reply | Forward ]
Thanks for such a quick reply.

The message I get when trying to validate in moodle is:

HTTP Error: Unsupported HTTP response status 404 /mod/lamstwo/userinfo.php (soap_client->response has contents of the response)

I have tried apt-get remove and re-install but it made no difference. Lams is available on 8080, moodle uses 80 (via Apache2). Could there be a conflict between Apache2 and Apache TomCat?

I think I'm loosing it after 3 days struggling with this.

Posted by Steve Squires

4: Re: Re: Re: Re-installing Lams
In response to 3 09/28/10 10:29 AM
[ Reply | Forward ]
Hi Steve,

What version of Moodle are you using?

Also, have you installed the lamstwo module according to the Moodle version that you are running? (Note that there's one version for Moodle 1.6.x and Moodle 1.7.x and *another* for Moodle 1.8+).

Moodle 2 is not yet supported (see here).

I don't think the issue is Apache and Tomcat/JBoss though.

Thanks

Ernie

Posted by Ernie Ghiglione

5: Re: Re: Re: Re: Re-installing Lams
In response to 4 09/29/10 04:16 AM
[ Reply | Forward ]
I am using 1.9.9 (build 20100922) of moodle and I did follow the instructions for 1.8+

During my attempts to re-install I noticed that when I went to the moodle>administration>notifications there was no output (showing setting up module tables). This is why I thought I should remove all trace and start again.

Also, when I check mysql I note that there is a "lams" database but no "lamstwo" database. Is this OK?

If there are any logs I can provide please let me know. Thank you for your interest.

Posted by Steve Squires

6: Re: Re-installing Lams
In response to 1 10/04/10 04:24 AM
[ Reply | Forward ]
Lams was OK it was the Moodle module which I needed to remove and re-install. Now Lams is available to add as an Activity in Moodle.

But, when I click "Open Authoring" I get: "HTTP Status 502 - Login Failed - failed to fetch user info from the third party server".

Clicking "Add a new lesson" results in a pink box with "Call to LAMS failed: received an HTTP status of 400 Bad Request. Please check the configurations settings and/or contact your system administrator." Yet returning to validation I get "These settings are valid".

I'm begining to doubt my own sanity, anyone got any clues please?

Posted by Steve Squires

7: Re: Re: Re-installing Lams
In response to 6 10/04/10 04:36 AM
[ Reply | Forward ]
Hi Steve,

The problem here is the URL you entered in the "User information URL" on the LAMS Side (see here).

Thanks,

Ernie

Posted by Ernie Ghiglione

8: Re: Re: Re: Re-installing Lams
In response to 7 10/04/10 09:21 AM
[ Reply | Forward ]
Thanks Ernie but I have tried both URL's and get the same result.

I have since tried entering: "http://192.9.200.84/mod/lamstwo/userinfo.php" directly into a browser window and get: "Notice: Undefined index: ts in /moodleroot/www/moodle/mod/lamstwo/userinfo.php on line 23

Notice: Undefined index: un in /moodleroot/www/moodle/mod/lamstwo/userinfo.php on line 23

Notice: Undefined index: hs in /moodleroot/www/moodle/mod/lamstwo/userinfo.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /moodleroot/www/moodle/mod/lamstwo/userinfo.php:23) in /moodleroot/www/moodle/mod/lamstwo/userinfo.php on line 26"

I have also found that I don't have a lamstwo database in mysql despite the moodle>administration>notification telling me all tables were created.

Thank you for your interest.

Posted by Steve Squires

9: Re: Re: Re: Re: Re-installing Lams
In response to 8 10/05/10 06:50 AM
[ Reply | Forward ]
I've given up on trying to fix this and am doing a complete remove and install.

Posted by Steve Squires

10: Re: Re: Re: Re: Re-installing Lams
In response to 8 10/05/10 03:33 PM
[ Reply | Forward ]
Steve,

Is your Moodle and LAMS server able to "see each other"? Are they on the same network? You can test this by pinging from one server to another one.

I believe one of your server might be on an internal (behind a NAT) network therefore LAMS won't be able to reach and get the user details it requires.

Given these issues, which you aren't the first one to have, I believe we need to revisit the integrations.

For one, simplify the configuration settings. So you would only need to set up a password on both sides and let the server exchange all the rest of the configuration details.

Two, the "User Information URL" if you are behind a NAT, it won't work at all. So pass users details on each request might be the other option. Is a bit tedious and might take a slight performance hit, but it shouldn't be that hard though.

As we are embarking on Moodle 2 integration, I'll take these into account and see if they can be implemented too.

Thanks,

Ernie

Posted by Ernie Ghiglione

11: Re: Re: Re: Re: Re: Re-installing Lams
In response to 10 10/06/10 01:20 AM
[ Reply | Forward ]
Ernie,

Thanks again for the interest.

Both Moodle and LAMS were on the same machine! There was no firewall and Moodle said the settings were valid.

I am currently rebuilding the machine, from OS (Debian, Lenny) up and will try afreash.

Regards, Steve.

Posted by Steve Squires

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