Unable to set a community hub

Unable to set a community hub

Eduardo Domínguez Vázquez發表於
Number of replies: 4
Hi folks,

I've been following the steps on http://docs.moodle.org/en/admin/mnet/index and I was able to connect two moodles in a peer to peer network ("serverA" 1.9.7 and "serverB" 1.9.8). Great!!

Later, I try to set a community hub but "server B" is not working as I understand the community hub does:

- Peers: I set "Register all hosts" and the only one site listed is "All Hosts" (All its services are set as published and subscribed).
- On "Server A" I add "Server B" as a peer (All its services are set as published and subscribed).

This should be enough but this is not working until I add "server A" as a peer in "server B" (I don't need to set any subscribed o published flags, they are set on "All Hosts" services).

But I understand It's the same as having a peer to peer network.

Now I don't know if this is a "server A" problem or a "server B" problem or may be I don't understand the community hub concept.

Do you know where to find any community hub to test if "server A" can connect to it?

Thanks.
評比平均分數: -
In reply to Eduardo Domínguez Vázquez

Re: Unable to set a community hub

Eduardo Domínguez Vázquez發表於
Oooops!! I forgot the error message...

"You do not have permission to begin a remote session."

The URL is:

http://localhost/serverB/auth/mnet/land.php?token=4a428b89d3d20f76bb9645b9c1f77d895918fca5&idp=http://localhost/serverA&wantsurl=

so this means "server B" (community hub) is denying me access from "serverA"
In reply to Eduardo Domínguez Vázquez

Re: Unable to set a community hub

Helen Foster發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Hi Eduardo,

I just tried copying and pasting your error message "You do not have permission to begin a remote session." into the moodle.org search box (at the top right of every page on moodle.org) and got lots of results. Hopefully they can help you. Please post to let us know how you get on.
In reply to Helen Foster

Re: Unable to set a community hub

Eduardo Domínguez Vázquez發表於
Hi Helen,

I've been surfing for a couple of days on google, moodle.org, tracker.moodle.org... and I followed some of the hints I've found:

- Clear mnet tables on database (mysql).
- Configure a community hub on a clean new installation.
- Triple check the wwwroot values
- ...

"Server A" can connect to an other Mahara server I'm testing (I can transfer views from Mahara to Moodle and Outcomes from moodle to Mahara through the plugins) and "server A" can connect to "Server B" in a peer to peer configuration but not if "Server B" is configured as a "community hub".

I don't know if the steps in http://docs.moodle.org/en/admin/mnet/index are correct or if somebody is missing some other step, but I can't make it work.

I've tested today two moodles with no mahara plugin, no luck.

More clues: in "server B" I can see in the "Network Servers" block "All Hosts" when I click this link I get a 404 error on the URL:

http://localhost//localhost/moodle&wantsurl=

I'm sure this URL is not valid, so I'll continue investigating this error.
In reply to Helen Foster

Re: Unable to set a community hub

Eduardo Domínguez Vázquez發表於
I've been looking into the land.php file -> confirm_mnet_session and the firsts lines block the access if the host is not configured locally, so I presume I didn't understand how the community hub really works.

A Community hub is not an open hub where I can connect my site with no more actions from the community hub administrator, he always has to add the satellite site (peer), am I wrong?

This is not what I can read in the peers menu:

"You can choose to register all hosts that try to connect to you automatically. This means that a record will appear in your hosts list for any Moodle site that connects to you and requests your public key."

So what I can see is that if I set "Register all Hosts" in "server B" and later I add "server B" as a peer in "server A" (the process gets the public key and I configure the services) then in "server B" there is no record for "server A" in the mnet_host table. Is this the problem?