Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53685

create External User via sync_users.php failed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.9.5
    • Fix Version/s: None
    • Component/s: Authentication, MNet
    • Labels:
    • Affected Branches:
      MOODLE_29_STABLE

      Description

      The sync User Script (auth/db/cli/sync_users.php) create User with a wrong mnesthostid, every time with the ID = 1.
      It must manual changed on database, to the correct mnethostid.

      On mdl_config is the Value (4) for mnet_localhost_id and on mdl_mnet_host the primary Key ID (4).

      We host many moodle instances and all have a different mnesthostid. This failure is new with Moodle 2.9.5, not in the earlier version 2.9.3

      Default exception handler: Nicht existierender Nutzer {$a} kann nicht aktualisiert werden Debug:
      Error code: auth_dbusernotexist
      * line 481 of /lib/setuplib.php: moodle_exception thrown
      * line 549 of /auth/db/auth.php: call to print_error()
      * line 371 of /auth/db/auth.php: call to auth_plugin_db->update_user_record()
      * line 94 of /auth/db/cli/sync_users.php: call to auth_plugin_db->sync_users()
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pliersch Patrick Liersch
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: