Forums | Mahara Community

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


anonymous profile picture
Account deleted
Posts: 10

07 June 2010, 9:11

Hi,

We’ve installed both Moodle and Mahara on a WAMP server. Both installations run OK separately and the networking configuration , including the generation of the keys (as documented in the support pdf and followed to the word) seems to have been successful.  But we’re having problems linking from  Moodle to Mahara with the following error generated:

Sorry, could not log you in :(

Sorry, we could not log you into Mahara at this time. Please try again shortly, and if the problem persists, contact your administrator

 

The Apache error log doesn’t seem to show any relevant errors.

Thanks in advance for any help.

Ken

anonymous profile picture
Account deleted
Posts: 10

10 June 2010, 9:01

As a follow on to original posting - error messages generated in php logs:

[10-Jun-2010 14:56:27] [WAR] 24 (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:956) openssl_sign() [function.openssl-sign]: supplied key param cannot be coerced into a private key

[10-Jun-2010 14:56:27] Call stack (most recent first):

[10-Jun-2010 14:56:27]   * 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

[10-Jun-2010 14:56:27]   * 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

[10-Jun-2010 14:56:27]   * openssl_sign("<?xml version="1.0" encoding="utf-8"?>

[10-Jun-2010 14:56:27] <methodCall...", "", false) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:956

[10-Jun-2010 14:56:27]   * OpenSslRepo->sign_message("<?xml version="1.0" encoding="utf-8"?>

[10-Jun-2010 14:56:27] <methodCall...") at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:909

[10-Jun-2010 14:56:27]   * xmldsig_envelope("<?xml version="1.0" encoding="utf-8"?>

[10-Jun-2010 14:56:27] <methodCall...") at E:\rkc_mahara\mahara\api\xmlrpc\client.php:59

[10-Jun-2010 14:56:27]   * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118

[10-Jun-2010 14:56:27]   * AuthXmlrpc->request_user_authorise("b88dd156854653f49b438d7e7577f5ba989d2328", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[10-Jun-2010 14:56:27]

[10-Jun-2010 14:56:28] [WAR] 24 (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:977) openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key

[10-Jun-2010 14:56:28] Call stack (most recent first):

[10-Jun-2010 14:56:28]   * 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

[10-Jun-2010 14:56:28]   * 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

[10-Jun-2010 14:56:28]   * openssl_open("wÐ#gk®£l —´³¼ç­rå±

[10-Jun-2010 14:56:28] ‰ˆ±>ú‘)lñ;fÖ‡<5¡™øˆÖ¿ÛEdœ>Ùïl...", false) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:977

[10-Jun-2010 14:56:28]   * OpenSslRepo->openssl_open("wÐ#gk®£l —´³¼ç­rå±

[10-Jun-2010 14:56:28] ‰ˆ±>ú‘)lñ;fÖ‡<5¡™øˆÖ¿ÛEdœ>Ùïl...", true) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:702

[10-Jun-2010 14:56:28]   * xmlenc_envelope_strip(object(SimpleXMLElement), true) at E:\rkc_mahara\mahara\api\xmlrpc\client.php:114

[10-Jun-2010 14:56:28]   * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118

[10-Jun-2010 14:56:28]   * AuthXmlrpc->request_user_authorise("b88dd156854653f49b438d7e7577f5ba989d2328", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[10-Jun-2010 14:56:28]

[10-Jun-2010 14:56:28] [WAR] 24 (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:985) Undefined index:  keypair_PEM

[10-Jun-2010 14:56:28] Call stack (most recent first):

[10-Jun-2010 14:56:28]   * 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

[10-Jun-2010 14:56:28]   * 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

[10-Jun-2010 14:56:28]   * OpenSslRepo->openssl_open("wÐ#gk®£l —´³¼ç­rå±

[10-Jun-2010 14:56:28] ‰ˆ±>ú‘)lñ;fÖ‡<5¡™øˆÖ¿ÛEdœ>Ùïl...", true) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:702

[10-Jun-2010 14:56:28]   * xmlenc_envelope_strip(object(SimpleXMLElement), true) at E:\rkc_mahara\mahara\api\xmlrpc\client.php:114

[10-Jun-2010 14:56:28]   * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118

[10-Jun-2010 14:56:28]   * AuthXmlrpc->request_user_authorise("b88dd156854653f49b438d7e7577f5ba989d2328", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[10-Jun-2010 14:56:28]

[10-Jun-2010 14:56:28] [WAR] 24 (E:\rkc_mahara\mahara\api\xmlrpc\lib.php:986) openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key

[10-Jun-2010 14:56:28] Call stack (most recent first):

[10-Jun-2010 14:56:28]   * 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

[10-Jun-2010 14:56:28]   * 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

[10-Jun-2010 14:56:28]   * openssl_open("wÐ#gk®£l —´³¼ç­rå±

[10-Jun-2010 14:56:28] ‰ˆ±>ú‘)lñ;fÖ‡<5¡™øˆÖ¿ÛEdœ>Ùïl...", false) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:986

[10-Jun-2010 14:56:28]   * OpenSslRepo->openssl_open("wÐ#gk®£l —´³¼ç­rå±

[10-Jun-2010 14:56:28] ‰ˆ±>ú‘)lñ;fÖ‡<5¡™øˆÖ¿ÛEdœ>Ùïl...", true) at E:\rkc_mahara\mahara\api\xmlrpc\lib.php:702

[10-Jun-2010 14:56:28]   * xmlenc_envelope_strip(object(SimpleXMLElement), true) at E:\rkc_mahara\mahara\api\xmlrpc\client.php:114

[10-Jun-2010 14:56:28]   * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118

[10-Jun-2010 14:56:28]   * AuthXmlrpc->request_user_authorise("b88dd156854653f49b438d7e7577f5ba989d2328", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

[10-Jun-2010 14:56:28]

[10-Jun-2010 14:56:28] [WAR] 24 (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.

[10-Jun-2010 14:56:28] Call stack (most recent first):

[10-Jun-2010 14:56:28]   * Client->send("http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\lib.php:118

[10-Jun-2010 14:56:28]   * AuthXmlrpc->request_user_authorise("b88dd156854653f49b438d7e7577f5ba989d2328", "http://moodle.reidkerr.ac.uk") at E:\rkc_mahara\mahara\auth\xmlrpc\land.php:94

Ken

anonymous profile picture
Account deleted
Posts: 48
anonymous profile picture
Account deleted
Posts: 8

23 June 2010, 23:48

Dan,

But how do you fix this if you are on shared hosting?

Thanks,

Kylie

anonymous profile picture
Account deleted
Posts: 48

24 June 2010, 4:46

log a support ticket with the helpdesk of your shared host saying something like:

The version of libxml running under PHP on my account is buggy and preventing me from running the applications I require (Moodle and Mahara) - is it possible for you to modify the libxml version you are running or move my account to a server that supports the use of libxml correctly? - More information on the specific issues I am experiencing is available here:  http://docs.moodle.org/en/Backup_FAQ#Restoring_a_course_results_in_broken_HTML_tags._What_can_I_do.3F

If they aren't willing to fix their servers, then you will need to find another webhost.

good luck!

anonymous profile picture
Account deleted
Posts: 8

26 July 2010, 7:51

Hi Dan

Part of their reply was:

Based on the bug report you gave us the versions do not match. Your bug is for libxml version 2.7.1 and php 5.10 but we run php 5.2.13 and libxml version 2.7.6 so the bug may not be the same but we'll look into it.

Any more suggestions, I am getting desperate to get this to work!!

Thanks

Kylie

anonymous profile picture
Account deleted
Posts: 48

27 July 2010, 16:59

Hi Kylie,

Not sure then sorry! - might be a bug there somewhere that is causing a problem - it's really hard to trace with shared hosting providers as they usually don't have support staff that are able to help trace this stuff down (especially if you're asking for free support) - the  amount you are paying for your hosting doesn't justify enough $$ for someone to be able to help with this sort of thing. So you either need to find a host that other people reccomend as working or live without MNET

anonymous profile picture
Account deleted
Posts: 10

05 July 2010, 5:42

Hi Dan,

Thanks for your response - don't think it's the libxml bug that's causing our problem in this case as we're getting the same error with both the following configurations on Windows servers:

Installation 1:
PHP 5.2.6
libxml 2.6.32
Moodle 1.9.5
Mahara 1.2.4

Installation 2:
PHP 5.3.0
libxml 2.7.3
Moodle 1.9.8
Mahara 1.2.4

K

anonymous profile picture
Account deleted
Posts: 48

05 July 2010, 18:25

Have you checked to make sure that keys have been generated - windows servers have this issue:

http://docs.moodle.org/en/Moodle_Network_FAQ#Moodle_doesn.27t_generate_any_keys_on_the_networking_pages

And I'm not sure if I've pushed through the fix to allow a manual path to be added to the config in Mahara 1.2 - it may only be in Mahara 1.3

 

 

anonymous profile picture
Account deleted
Posts: 10

06 July 2010, 10:15

Yes, keys generated OK in both Moodle and Mahara - path to openssl.cnf also set up in config file.

20 results