Forums | Mahara Community

Mahara/Moodle integration /
Multiple Moodle Server with same public key integrate with mahara


anonymous profile picture
Account deleted
Posts: 2

28 February 2012, 20:12

Hi all,

can anyone here help me in this problems. I have moodle application running on 3 different server and connect to Load Balancer (LB) and 1 also have 1 Mahara application running on 1 different server. The problem is, the 3 moodle servers share the same public key. For example the server name is elearn1.utm.my, elearn2.utm.my and elearn3.utm.my. When i do setting at xmlrpc and add the moodle public key for the 1st server its ok but when i want to add another xmlrpc with the same public key it's said "Error retrieving public key, failed with error code 500: The remote site sent us a key that is valid for http://elearn2.utm.my/11122 instead of their hostname (http://elearn1.utm.my/11122)" 

Please help me in this matter. Tq

Piers Harding's profile picture
Posts: 11

01 March 2012, 0:15

Hi -

Are the 3 Moodle servers behind a Load Balancer because they are logically one server?  If they are logically the same server then they should all resolve to the same name, and share the same certificate eg: elearn.utm.my - but I maybe misunderstanding how that is supposed to work for you.

For MNet in Mahara, it will check the domain name against the common name in the certificate used for encryption, and if this does not match the sending host, then it will be rejected, which is what you are seeing.

So, as far as I understand it if you have 3 truly separate Moodle systems (separate DB instance etc.) then they must each have their own MNet certificate generated, or if it is a 3 machine Moodle cluster sharing a database (and therefore sharing the certificate) they must all use the same domain name.

Cheers,

Piers Harding.

anonymous profile picture
Account deleted
Posts: 2

01 March 2012, 1:32

Hi Harding,

Tq for your response. Yes our moodle servers were behind the load balancer. The 3 servers are elearn1, elearn2 and elearn3 and use same domain name elearning.utm.my. The problem is when i configure xmlrpc and put http://elearning.utm.my in WWWroot field and use the public key for elearn2 (it's same key using by another moodle servers) i got this error message 404: Incorrect WWWRoot or Application: file not found. Can u help me in this matter? Tq

Kristina Hoeppner's profile picture
Posts: 4863

07 March 2012, 0:43

Hello Subha,

I talked to Piers and he said there may be something wrong with the name resolution on your cluster. Without actually having access to your setup and being able to see what is going on directly, debugging things may be very difficult.

Maybe you can talk to your IT guys and they sort out why each server is different though they are supposed to have the same name?

Cheers

Kristina

4 results