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

On "Trying to restore user xxxx from backup file will cause conflict" error, allow site admin to modify "Allow admin conflict resolution" setting and continue

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      A common problem encountered when restoring courses with user data from different sites is a conflict in the credentials of the "admin" user between the two sites. The error commonly presents as:

      "Trying to restore user admin from backup file will cause conflict"

      There is no obvious action to take on this page other than "cancel." The options to reassign the other role names are distracting, as generally there is nothing wrong with the current role assignments and the problem lies elsewhere.

      The workaround is provided here:

      https://docs.moodle.org/en/Backup_and_restore_FAQ#Restore_stops_with_the_message_.22Trying_to_restore_user_xxxx_from_backup_file_will_cause_conflict.22

      This involves a change to the admin setting "Allow admin conflict resolution". However, if a restore has already been started, switching to another browser window and making this adjustment will not allow the restore to proceed. Clicking "cancel" to restart the restore process leaves unusable "restore in progress" courses on the site. (see MDL-30177).

      It would be more usable to allow the user (if they have appropriate permissions) to adjust the "Allow admin conflict resolution" setting and continue the restore. Alternatively, a user might be able to enable conflict resolution for this restore task only. At minimum, a more helpful error message should be provided, e.g.

      'Trying to restore user admin from backup file will cause conflict, because the account details differ between the source site where the backup was made and the current site. Change the account details so both sites match, or enable "Allow admin conflict resolution" in the site administration settings.'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                emdalton1 Elizabeth Dalton
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: