ERROR 3 - or - auto_add_remote_users?

ERROR 3 - or - auto_add_remote_users?

by Vjekoslav Hlede -
Number of replies: 4

Hello,

I'm trying to network three Moodle 2.0 sites and one Moodle community hub. Two Moodle 2.0 sites and the Community Hub are sub-domains on the same server and 3rd Moodle 2.0 site is on an independent website.

The hub works fine smile, but I have issues with roaming. Users can not roam from one Moodle site to another. When I try to roam a user, I receive this message:


Ooops! Your MNET communication has failed! Here's that error message to pass on to your administrator: XML Parse error in payload: syntax error At line number: 1 Which reads: ERROR 3:

3:XML Parse error in payload: syntax error At line number: 1 Which reads:

Stack trace:
  • line 321 of /lib/setuplib.php: moodle_exception thrown
  • line 238 of /auth/mnet/auth.php: call to print_error()
  • line 39 of /auth/mnet/land.php: call to auth_plugin_mnet->confirm_mnet_session()

Do you know what can cause it?

I suspect that it may be caused by the non-activated 'auto_add_remote_users' option.
The SSO Access Control page* states that 'Auto-add users' is part of the Moodle Networking Authentication plugin.
However if I go to that plugin (Admin > Plugins > Authentication) there is no option to enable auto_add_remote_users.

Please check the attached picture.

*SSO Access Control page is available:
  • Home 〉Site administration 〉Networking 〉SSO Access Control
  • http://<moodle>/admin/mnet/access_control.php

Did anybody have the same issue? How did you fix it?

Any suggestion is more that welcome!

Best regards,

Vjeko

Attachment moodle_networking_issue.png
Average of ratings: -
In reply to Vjekoslav Hlede

Re: ERROR 3 - or - auto_add_remote_users?

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

Hi Vjeko,

the setting "auto_add_remote_users" has been removed by Penny Leach in February, see MDL-21327 for details. Shortly said, this setting should be ignored now and users always automatically created.

I am not able to reproduce you problem, though. I am getting the same warning "Auto-add users is disabled" (which is apparently obsoleted as the setting should be ignored now) but I am able to roam with no problem.

  • Are you using very recent versions of Moodle 2.0?
  • Are they fresh installs or upgrades from 1.9?
Average of ratings:Useful (1)
In reply to David Mudrák

Re: ERROR 3 - or - auto_add_remote_users?

by Vjekoslav Hlede -

Hello David,

Thanks a lot for help smile

>> Are you using very recent versions of Moodle 2.0?

Yes, I downloaded the Moodle 2.0 .zip file from http://download.moodle.org/ 5 days ago and for two new installations I made yesterday, I downloaded .tgz version from the same webpage.

>> Are they fresh installs or upgrades from 1.9?

Those are fresh installations.

Testing. I made two new installations without a hub just to check Moodle Networking.

This is the summary of what I did (and results):

I installed new:

I checked:

  • Admin > Server > Environment: cURL and openDDL are installed.

And after that I did:

  • Site administration > Server > Session Handling: Cookie prefix = ‘avma’ for the avma.veted.net Moodle installation and ‘aaha’ for the aaha.veted.net installation
  • Site administration > Advanced features: Networking = ON.
  • Site administration > Networking > Manage peers: http://avma.veted.net and http://aaha.veted.net/ are added
  • Site administration > Networking > Manage peers > Services: Publish and Subscribe services are activated for SSO (Identity Provider) & SSO (Service Provider)
  • Site administration > Users > Permissions > Define roles: For Authenticated user - Roam to a remote Moodle = Allow
  • The Network servers block is added to both homepages.
  • An user created at the http://avma.veted.net/ moodle installation (no role – just Admin > Users > Accounts > Add a new user)

I tested it in different browsers (IE, Firefox, Opera, Safari) + tested with another user account on the same computer.

Error. Always the same error when I want to roam a user:

  • Ooops! Your MNET communication has failed! Here's that error message to pass on to your administrator: XML Parse error in payload: syntax error At line number: 1 Which reads: ERROR 3:
    3:XML Parse error in payload: syntax error At line number: 1 Which reads:

Link to another network server is in format: http://avma.veted.net/auth/mnet/jump.php?hostid=3, and

URL of the error page is: http://aaha.veted.net/auth/mnet/land.php?token=adc1c17afa1f2c5702a410d005e2d1a26df9a44e&idp=http://avma.veted.net&wantsurl=

Have I done something wrong?

Anny suggestion is more than welcome!

Best regards,

Vjeko

In reply to Vjekoslav Hlede

Re: ERROR 3 - or - auto_add_remote_users?

by Vjekoslav Hlede -
Hi,
I solved the 'XML Parse error in payload: syntax error At line number: 1 Which reads: ERROR 3' problem/challenge.

What have I done? I have recompiled the Apache server without Zend Optimizer (I'm using VPS) and it works now smile smile smile .

Best regards,

Vjeko
In reply to Vjekoslav Hlede

Re: ERROR 3 - or - auto_add_remote_users?

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
Hi Vjekoslav,

great! Yes, there are known problems with PHP accelerators and optimizers in combination with MNet. Good to hear it works now.

Please note the MNet enrolment has been upgraded during the weekend so you may want to update your installation and test it again.

Thanks for letting us know,
David
Average of ratings:Useful (1)