Forum Problems Installing LAMS: From LamsOne to LamsTwo in Moodle


 
You may request notification for From LamsOne to LamsTwo in Moodle.
Search: 

1: From LamsOne to LamsTwo in Moodle
03/16/07 12:36 PM
[ Reply | Forward ]
Hi

I'm trying to integrate LAMS 2.0 in a Moodle 1.7.1+ server.

The Moodle LAMS module is lams, I should use lamstwo!

"The Moodle LAMS Module (see Downloads). For LAMS v 2.0 you must use the "lamstwo" module, not the "lams" module used for LAMS 1.0.2."

But, how do we substitute the "lams" module with the "lamstwo" module?

I did all the steps:

1. Unzip the file
Ok.
2. Move the lamstwo directory to moodle/mod/
Ok.
3. Move the lamstwo.php file to moodle/lang/en_utf8/
Ok. My server is in Portuguese ... is this a problem?
4. Login as admin and go to admin, LAMS tables will be created automatically.
Ok, I think. Login where? In Moodle os LAMS? I did it in Moodle.
5. Go to modules and click settings for LAMS2 module and put the proper values in (as shown below)
Not Ok, in the Modules the LAMS entry it is still for the lams(one) module. I can change manualy from lams.php to lamstwo.php but ... that does not change the LAMS setting.

Should I remove (how?) the lams module first?

Posted by Pedro Quaresma

2: Re: From LamsOne to LamsTwo in Moodle
In response to 1 03/16/07 08:55 PM
[ Reply | Forward ]
Pedro

Step 4 - Login as admin. You did the right thing by logging into Moodle.

As far as I can see, you have put the files in the correct place.

The server being in Portuguese shouldn't be a problem - although you will only get LAMS in English - we don't have a translation for the lams2 module.

You do NOT need to remove the lams module to make this work - we purposely did it so you could run both. So if you had a 1.0.x LAMS installation you could leave that running till you have LAMS 2.0 up and running, while you are training your staff in the new version, etc.

You don't need to change the names of the php files.

I'd say the problem is that Moodle hasn't recognised that there is a new directory there. I'm not much good with Moodle - sometimes I have to delete the lamstwo directory (in the mod directory) and copy it back in again, and then go to the admin section in Moodle a few times before Moodle picks up the new directory.

I don't have a clue about why this is the case.

Can anyone who runs a Moodle site help here? Moodle should just pick up the new module - can you suggest a particular page in the Moodle that triggers it to look for new modules?

Fiona

Posted by Fiona Malikoff

3: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 2 03/17/07 01:04 PM
[ Reply | Forward ]
I'm already trying to do that (look for an answer in the Moodle comunity), If I find it, a good answer I mean, I will post it here.

Posted by Pedro Quaresma

4: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 3 03/17/07 05:46 PM
[ Reply | Forward ]
Unfortunately the smart answer was the one given by you, it didn't work but it is supposed to work.

The dumb answer was the one I took, mangling with the database and PHP files directly, it worked, don ask me why, don't even ask what exactly I did because I can not say... :(

At least now it is done, I already have the LAMS v2 module in Moodle.

But now I have:
----------------------------------------
Add a new LAMS v2 to the task 2

Sequence

The directory structure below contains the sequences you can create a
lesson for.

Select one and click on the next button to continue.

soapenv:Server.userException: java.rmi.RemoteException: Fail to fetch
user data from
external server:moodle - Unexpected return HTTP Status:404; nested
exception is:
org.lamsfoundation.lams.integration.UserInfoFetchException: Fail to
fetch user data from
external server:moodle - Unexpected return HTTP Status:404
-----------------------------------------

Do I have to create a special user in LAMS to link with Moodle? Should the Moodle user be also a LAMS user?

When I do the integration of LAMS v2 module in Moodle I ask for validation and it is done with sucess.

Posted by Pedro Quaresma

5: Re: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 4 03/19/07 06:33 AM
[ Reply | Forward ]
You don't need to create any special users - the LAMS users will be created automatically when the Moodle module calls LAMS, based on the user's details in Moodle.

Make sure you have configured all the urls and stuff both ends - the Moodle end (screendump) and the LAMS end (screendump) .

I half suspect that the User Information URL on the LAMS end might be wrong. This is the call that gets the user's details from Moodle, so that the user can be set up in LAMS.

Fiona

Posted by Fiona Malikoff

6: Re: Re: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 5 03/19/07 11:44 AM
[ Reply | Forward ]
I still have the following message in Moodle

soapenv:Server.userException: java.rmi.RemoteException: Fail to fetch user data from external server:moodler - Unexpected return HTTP Status:401; nested exception is: org.lamsfoundation.lams.integration.UserInfoFetchException: Fail to fetch user data from external server:moodler - Unexpected return HTTP Status:401

When I browse the info in the lams server I can see:

17:41:03,427 DEBUG [IntegrationService] http://hilbert.mat.uc.pt/Moodle/mod/lamstwo/userinfo.php?un=moodle&ts=1174326063427&hs=d262adf069b87600b0e94a28ac851b96bb5ebee3
17:41:03,430 DEBUG [LearningDesignRepositorySoapBindingImpl] Fail to fetch user data from external server:moodler - Unexpected return HTTP Status:401
org.lamsfoundation.lams.integration.UserInfoFetchException: Fail to fetch user data from external server:moodler - Unexpected return HTTP Status:401

And if I use the URL showned above


http://hilbert.mat.uc.pt/Moodle/mod/lamstwo/userinfo.php?un=moodle&ts=1174326063427&hs=d262adf069b87600b0e94a28ac851b96bb5ebee3

I get

,Pedro,Quaresma,,Coimbra,,,PT,,,,pedro@mat.uc.pt,PT,pt_utf8

Can you see what is missing? It seems that lots of info is missing.

Thanks

Posted by Pedro Quaresma

7: Re: Re: Re: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 6 03/19/07 06:22 PM
[ Reply | Forward ]
Hi Pedro,

The missing fields are not a problem, not all the fields are available in moodle.

Could you please attach the lams and apache logs.

Thanks
Anthony

Posted by Anthony Sukkar

8: Re: Re: Re: Re: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 7 03/20/07 07:50 AM
[ Reply | Forward ]
In attachment three files (at least I will try :)

lams.log(-enviar)

(Apache-)error.log

(Apache-)access.log

I restarted the apache and Jboss so I only include the relevant part of the three files.

In the error.log it appears

[Tue Mar 20 13:38:29 2007] [error] [client 193.137.103.182] File does not exist: /var/www/lams

Maybe that's the problem. If that's the case how can I solve it?

Thanks for all the support :)

Posted by Pedro Quaresma

Attachments:
9: Re: Re: Re: Re: Re: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 8 03/20/07 07:51 AM
[ Reply | Forward ]
the remaining attachments

Posted by Pedro Quaresma

Attachments:
10: Re: Re: Re: Re: Re: Re: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 9 03/20/07 07:53 AM
[ Reply | Forward ]
anothe attachment

Posted by Pedro Quaresma

Attachments:
11: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: From LamsOne to LamsTwo in Moodle
In response to 10 03/20/07 09:12 AM
[ Reply | Forward ]
Ok, I already solved the problem ...

I had the Moodle web page protected with an .htaccess/.htpasswd scheme (it is an experimental server for the moment), and that scheme was preventing the connection lams->moodle.

Now it is working :)

I will do my access control in a more machine-oriented way allowing the full access to a given set of machines.

Thank you all for all the help you gave to me.

Posted by Pedro Quaresma

12: Re: From LamsOne to LamsTwo in Moodle
In response to 1 03/22/07 07:28 PM
[ Reply | Forward ]
I had the same problem and it was not until I clicked on the Administration link on the Moodle page that the lamstwo tables installed themselves. Then the lams2 activity appears and you can set it up, unless like me you get a validation problem.

Posted by graham hughes

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