Moodle SSO - cURL Errors

Moodle SSO - cURL Errors

by Graham Paull -
Number of replies: 2

Hi all,

I have been trying to get 2 Moodles to talk to each other, I would like a teacher to log into Moodle A and then be able to click a link and be logged into Moodle B, however, I have been getting the following error: 

cURL request for "http://school.domain.com" failed with: couldn't connect to host (7)
line 1267 of /lib/filelib.php: call to debugging()
line 70 of /mnet/peer.php: call to download_file_content()
line 91 of /admin/mnet/peers.php: call to mnet_peer->bootstrap()

Request for http://school.domain.com failed with curl error 7
line 105 of /mnet/lib.php: call to debugging()
line 90 of /mnet/peer.php: call to mnet_get_public_key()
line 91 of /admin/mnet/peers.php: call to mnet_peer->bootstrap()

Request for http://school.domain.com returned empty response
line 134 of /mnet/lib.php: call to debugging()
line 90 of /mnet/peer.php: call to mnet_get_public_key()
line 91 of /admin/mnet/peers.php: call to mnet_peer->bootstrap()

Any help on this would be great.

Moodle 2.3
CentOS - MySQL - PHP

Thanks.

Average of ratings: -
In reply to Graham Paull

Re: Moodle SSO - cURL Errors

by Graham Paull -

Revisiting this issue, has anybody got any ideas ?

 

Thanks.

In reply to Graham Paull

Re: Moodle SSO - cURL Errors

by Ken Task -
Picture of Particularly helpful Moodlers

Do you have all the php extensions needed and openssl installed?  As root user from terminal:

php -m

openssl version

Are the two moodle instances you are trying to mnet on the same host? or on a different host?  Have you set up both instances with peer settings:

http://docs.moodle.org/24/en/MNet

What do you get when using command line curl for information:

from MoodleB

curl -I http://someserver/moodleA

from Moodle A

curl -I http://someserver/MoodleB

And since this is on CentOS ... have you looked at any logs?  apache error log, secure log, messages log?

What do you get using:

http://moodleA/mnet/publickey.php

http://moodleB/ment/publickey.php

'spirit of sharing', Ken