Forums | Mahara Community

Support /
Networking Woes - "Unknown error occurred"


Howard Miller's profile picture
Posts: 191

09 August 2010, 6:03

Adding xmlrpc auth to a Moodle site. Can't get it working. Here's what I do know:

1. Moodle correctly setup the Mahara peer and got the key with no issues.

2. When I attempt to set up the Mahara => Moodle connection the 'Add an authority' page gives me a very helpful "An unknown error occurred while processing this form".

3. I turned up debugging full but nothing is logged whatsoever for this error

4. I replaced the URL for the Moodle site with its IP address. This time I get an error: "a8 (auth/xmlrpc/lib.php:846) Error retrieving public key, failed with error code 500: The remote site sent us a key that is valid for http://moodle.someplace.ac.uk instead of their hostname (http://192.168.255.15)", which makes complete sense.

So, using the IP address I can hit the Moodle server but it doesn't like the key (logical) but with the proper URL it fails with the mysterious error (no logs, no nothing). 

I'm pretty sure my DNS works although I had to add the setting in /etc/hosts for the Moodle machine as I can't access the internal DNS properly (don't ask!!!). Will Mahara/PHP resolve that properly - not sure how to check. 

Any thoughts appreciated. 

 

EDIT:

$config->version = 2009111016;
$config->release = '1.2.6testing';

$config->version = 2009111016;

$config->release = '1.2.6testing';

anonymous profile picture
Account deleted
Posts: 2

17 March 2011, 8:26

FIXED: Just delete the key in Moodle and it automatically generates a new one. I created the key using http url and then switched to accessing via https url and updated the config. So recreating the key accessing moodle via https fixed it.

 

Did you manage to fix this? I have the same problem. I have both Moodle and Mahara on the same server, a valid digital certificate and I am using https in both configs. Any http traffic is redirected to https by .htaccess file.

"An error occurred while retrieving the public key from the remote server.
Please ensure that the Application and WWW Root fields are correct, and that networking is enabled on the remote host.
Error retrieving public key, failed with error code 500: The remote site sent us a key that is valid for http://mysite.ac.uk/mvle instead of their hostname (https://mysite.ac.uk/mvle)"

This appears to say the public key is for http and not https url.

2 results