Forums | Mahara Community
Mahara/Moodle integration
/
Moodle SSO stopped working
18 January 2009, 0:10
Hi all,
I am having a problem with a previously working Mahoodle setup after transferring the Mahara instance from an external server to the same machine that Moodle resides on (and upgrading to 1.0.8).
All the certificates have been checked and everything looks OK
When redirected from an authenticated Moodle session we are getting a lot of these pairs of lines in the error log (about 3000+):
[INF] e5 (api/xmlrpc/client.php:138) Remote application has sent us a new public key, referer: http://moodleserver/
[INF] e5 (api/xmlrpc/client.php:152) New key has been imported. Valid until 2009/02/10 06:30:53, referer: http://moodleserver/
[INF] e5 (api/xmlrpc/client.php:138) Remote application has sent us a new public key, referer: http://moodleserver/
[INF] e5 (api/xmlrpc/client.php:152) New key has been imported. Valid until 2009/02/10 06:30:53, referer: http://moodleserver/
[INF] e5 (api/xmlrpc/client.php:138) Remote application has sent us a new public key, referer: http://moodleserver/
[INF] e5 (api/xmlrpc/client.php:152) New key has been imported. Valid until 2009/02/10 06:30:53, referer: http://moodleserver/
Before the whole thing times out:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/mahara/www/htdocs/api/xmlrpc/lib.php on line 554
Has anybody come accross this error ? Could not find anything in forums. Have tried all sorts of things such as deleting and recreating the XMLRPC auth as well as recreating the Moodle side of things.
18 January 2009, 6:34
I'm not sure how, but you seem to have triggered a nasty infinite loop. I can't think of a good reason for this off the top of my head, but you might want to try resetting everything, including the SSL keys, for each end.
To do this, delete the XMLRPC authentication method from Mahara, then go into the database and delete any rows from the host table, and ay entries in the config table with 'openssl' in the name.
Then on the Moodle side, delete the peer record for Mahara, and then delete the SSL key (which you can do from the Networking page).
That should give you a new key in Moodle, and if you hit Mahara's networking page, you should get a new key for Mahara too (you can check in the database, the openssl config entries you deleted will be back).
Then try the set up again. Hopefully this time, you won't get any infinite loops.
05 February 2009, 16:32
Hi Nigel,
Thanks for your reply. I had tried all of these things, but the the problem ended up being some corruption in one of the mnet tables in Moodle (Moodle died when trying to delete the Peer entry). Had to revert thetable to a previous backup.
Just F.Y.I.
Cheers,
Leo