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

    • Icon: Improvement Improvement
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.6
    • Backup
    • None
    • MOODLE_36_STABLE

      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.'

            Unassigned Unassigned
            emdalton1 Elizabeth Dalton
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.