Adding peers

Adding peers

על ידי Ramon Loureiro בתאריך
מספר תגובות: 4
Hi,
I have two machines and I'm trying to set the MNET features...
Only one of the machines works fine "adding hosts" (the other one -lets say B- doesn't get the other's public key...)

----------
There was a problem retrieving the public key.
Maybe the host does not allow Moodle Networking or the key is invalid.
------------------

But machine B is generating ok the keys (when I delete it, it generates another)

How can I debug the error?
Does machine A use a call to B so that I can check some error-logfile in B?

Thanks in advance!

ramon
ממוצע דרוגים: -
בתגובה ל: Ramon Loureiro

Re: Adding peers

על ידי Dean Stringer בתאריך
Take extra care to enter the correct URL of the remote peer, I have had this problem before when missing a section of the path. You may have entered the domain or hostname but perhaps not the full path to the Moodle instance under that domain?
בתגובה ל: Ramon Loureiro

Re: Adding peers

על ידי Howard Miller בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers
Regrettably there isn't a lot of debugging in the mnet code at the moment. We need to fix this.

Is there anything unusual about your configuration? What web servers are you running on each machine, for example? Is either machine behind a firewall or a proxy - mnet cannot handle that at the moment.
בתגובה ל: Howard Miller

Re: Adding peers

על ידי Guy Thomas בתאריך
תמונה של Core developers תמונה של Plugin developers
I have hacked mnet to work with proxy servers:

http://tracker.moodle.org/browse/MDL-15125

Please vote for this ticket - I would like it committed as a permanent feature so I don't have to keep applying the hack on upgrades!

You can download the hack directly from:

http://tracker.moodle.org/secure/attachment/14158/moodle_networking_via_proxy_hack.zip

* Note you will need to get a tracker account to download this hack.

http://tracker.moodle.org
בתגובה ל: Guy Thomas

Re: Adding peers

על ידי Howard Miller בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers
Please see: http://tracker.moodle.org/browse/MDL-14624

It's in Moodle 2.0.

The reason being that it also requires an interface change to allow certain domain and ip ranges to be excluded from the proxy (also in 2.0). It was felt that this was all a bit much for 1.9.

I've closed your report as a duplicate, but I'd certainly appreciate any testing of the 2.0 fix.

EDIT:
Mmm.... something good came out of this. I've spotted a problem with my fixes עצוב