Forums | Mahara Community

Mahara/Moodle integration /
Sorry, could not log you in :(


anonymous profile picture
Account deleted
Posts: 48

06 July 2010, 18:21

I haven't done any testing with Mahara 1.2 under windows servers, but I've installed 1.3beta several times with networking - any chance you could try with a 1.3 install to see if that makes any difference?

anonymous profile picture
Account deleted
Posts: 10

12 July 2010, 8:08

Tried 1.3 beta, but still the same result - error log in Mahara debug mode only returns the following warning/error:

[WAR] 82 (E:\rkc_mahara\mahara\api\xmlrpc\client.php:176) Unknown error occured: 7023: [[encryption-invalid]]
Call stack (most recent first):
  * Client->send("http://sectt.reidkerr.ac.uk/moodle") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118
  * AuthXmlrpc->request_user_authorise("48f59bd2933d6e4cf955557ae5e018dee0bf5610", "http://sectt.reidkerr.ac.uk/moodle") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

anonymous profile picture
Account deleted
Posts: 48

12 July 2010, 17:48

That particular error suggests that the keys aren't matching on both servers - did you update the key stored in Moodle after installing a new Mahara site? - you may need to copy/paste the keys manually.

 

anonymous profile picture
Account deleted
Posts: 10

13 July 2010, 6:05

Yes - so just to confirm:

1 - the key in the Mahara host table should be the same as the key in the mdl_mnet_host for the moodle wwwroot record?
2 - the key in the Mahara config table should be the same as the key in the mdl_mnet_host for the mahara wwwroot record?

anonymous profile picture
Account deleted
Posts: 48

13 July 2010, 18:39

Yes, but you shouldn't need to look at the db to check this.

The key in Mahara under Site Administration > Networking should match the key in Moodle under Admin > Networking > peers and the new peer you've set up. My guess is that the key here is wrong - this would happen if you set up networking then re-installed your Mahara site. but didn't update the key.

The Key in Moodle under Admin > Networking > settings should match the key in Mahara for the xmlrpc auth under the new insitution you have created In Mahara, admin > Institutions - "edit" the institution, select xmlrpc and check the Moodle key is correct

anonymous profile picture
Account deleted
Posts: 10

14 July 2010, 4:34

No, these keys definitely match up - not sure if it's any more help, but the errors generated by the previous test installation differ from the error log I posted earlier re the Mahara 1.3.0beta installation

Installation:
PHP 5.2.6
libxml 2.6.32
Moodle 1.9.5
Mahara 1.2.4

Error log:
[WAR] 1c (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:956) openssl_sign() [function.openssl-sign]: supplied key param cannot be coerced into a private key
Call stack (most recent first):
  * log_message("openssl_sign() [function.openssl-sign]: supplied k...", 8, true, true, "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 956) at E:\rkc_mahara\mahara\lib\errors.php:446
  * error(2, "openssl_sign() [<a href='function.openssl-sign'>fu...", "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 956, array(size 2)) at Unknown:0
  * openssl_sign("<?xml version="1.0" encoding="utf-8"?>
<methodCall...", "", false) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:956
  * OpenSslRepo->sign_message("<?xml version="1.0" encoding="utf-8"?>
<methodCall...") at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:909
  * xmldsig_envelope("<?xml version="1.0" encoding="utf-8"?>
<methodCall...") at E:\rkc_mahara\mahara\api\xmlrpc\client.php:59
  * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118
  * AuthXmlrpc->request_user_authorise("56206ec8b6901f7f61644c61046bb516ea2983db", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[WAR] 1c (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:977) openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key
Call stack (most recent first):
  * log_message("openssl_open() [function.openssl-open]: unable to ...", 8, true, true, "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 977) at E:\rkc_mahara\mahara\lib\errors.php:446
  * error(2, "openssl_open() [<a href='function.openssl-open'>fu...", "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 977, array(size 4)) at Unknown:0
  * openssl_open("áêÁ¡q÷gÌÐ],Ëy
rÜw¬Öôºò=' í+%j=@#«<ÔnáÊSWTèUþíÃ~a...", "", "5óõx*n%!r~üI\ #ù< ˜Q4Ö¤l…:Õd¨,¤Œ‡Ã1ÏŸŠ©nº4...", false) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:977
  * OpenSslRepo->openssl_open("áêÁ¡q÷gÌÐ],Ëy
rÜw¬Öôºò=' í+%j=@#«<ÔnáÊSWTèUþíÃ~a...", "5óõx*n%!r~üI\ #ù< ˜Q4Ö¤l…:Õd¨,¤Œ‡Ã1ÏŸŠ©nº4...", true) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:702
  * xmlenc_envelope_strip(object(SimpleXMLElement), true) at E:\rkc_mahara\mahara\api\xmlrpc\client.php:114
  * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118
  * AuthXmlrpc->request_user_authorise("56206ec8b6901f7f61644c61046bb516ea2983db", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[WAR] 1c (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:985) Undefined index:  keypair_PEM
Call stack (most recent first):
  * log_message("Undefined index:  keypair_PEM", 8, true, true, "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 985) at E:\rkc_mahara\mahara\lib\errors.php:446
  * error(8, "Undefined index:  keypair_PEM", "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 985, array(size 7)) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:985
  * OpenSslRepo->openssl_open("áêÁ¡q÷gÌÐ],Ëy
rÜw¬Öôºò=' í+%j=@#«<ÔnáÊSWTèUþíÃ~a...", "5óõx*n%!r~üI\ #ù< ˜Q4Ö¤l…:Õd¨,¤Œ‡Ã1ÏŸŠ©nº4...", true) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:702
  * xmlenc_envelope_strip(object(SimpleXMLElement), true) at E:\rkc_mahara\mahara\api\xmlrpc\client.php:114
  * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118
  * AuthXmlrpc->request_user_authorise("56206ec8b6901f7f61644c61046bb516ea2983db", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[WAR] 1c (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:986) openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key
Call stack (most recent first):
  * log_message("openssl_open() [function.openssl-open]: unable to ...", 8, true, true, "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 986) at E:\rkc_mahara\mahara\lib\errors.php:446
  * error(2, "openssl_open() [<a href='function.openssl-open'>fu...", "E:\rkc_mahara\mahara\api\xmlrpc\lib.php", 986, array(size 8)) at Unknown:0
  * openssl_open("áêÁ¡q÷gÌÐ],Ëy
rÜw¬Öôºò=' í+%j=@#«<ÔnáÊSWTèUþíÃ~a...", "", "5óõx*n%!r~üI\ #ù< ˜Q4Ö¤l…:Õd¨,¤Œ‡Ã1ÏŸŠ©nº4...", false) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:986
  * OpenSslRepo->openssl_open("áêÁ¡q÷gÌÐ],Ëy
rÜw¬Öôºò=' í+%j=@#«<ÔnáÊSWTèUþíÃ~a...", "5óõx*n%!r~üI\ #ù< ˜Q4Ö¤l…:Õd¨,¤Œ‡Ã1ÏŸŠ©nº4...", true) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:702
  * xmlenc_envelope_strip(object(SimpleXMLElement), true) at E:\rkc_mahara\mahara\api\xmlrpc\client.php:114
  * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118
  * AuthXmlrpc->request_user_authorise("56206ec8b6901f7f61644c61046bb516ea2983db", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[WAR] 1c (E:\rkc_mahara\mahara\api\xmlrpc\client.php:124) An error occured while decrypting a message sent by http://moodle.reidkerr.ac.uk. Unable to authenticate the user.
Call stack (most recent first):
  * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118
  * AuthXmlrpc->request_user_authorise("56206ec8b6901f7f61644c61046bb516ea2983db", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

 

anonymous profile picture
Account deleted
Posts: 5

25 August 2010, 16:42

I had a similar problem and solved it by setting the wwwroot variable in the config file.

Here's the "discussion" http://mahara.org/interaction/forum/topic.php?id=2178#post9661

anonymous profile picture
Account deleted
Posts: 2

16 September 2010, 7:22

I had this problem earlier this week. I checked my httpd error logs and found an error about the time difference between the two servers was too large. I had NTP enabled on my mahara server but since my Moodle server was new and I didn't set it up, I hadn't checked NTP on it. I enabled NTP on the Moodle Server and when the server times had synchronized I was able to go from my Moodle server to Mahara without a problem.

anonymous profile picture
Account deleted
Posts: 1

23 March 2011, 14:30

I just had this problem and it was related to our (self signed) SSL cert.  I added "curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);" to line 62 on api/xmlrpc/client.php and it started working.

anonymous profile picture
Account deleted
Posts: 1

29 March 2011, 8:37

Thank you!

20 results