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

Unique key violation (quiz_sections table) when editing some quizzes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.3
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      As we are approaching final exams I took a look at the postgres logs today and ran across a number of errors. One in particluar looked exactly like MDL-57228. Regrettably I do not have Debugging on on our production server.

      Here waas error:

      < 2020-11-30 10:31:51.665 EST > ERROR: duplicate key value violates unique constraint "mdl_quizsect_quifir_uix"
      < 2020-11-30 10:31:51.665 EST > DETAIL: Key (quizid, firstslot)=(48332, 1) already exists.
      < 2020-11-30 10:31:51.665 EST > STATEMENT: INSERT INTO mdl_quiz_sections (heading,quizid,firstslot,shufflequestions) VALUES($1,$2,$3,$4) RETURNING id

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              katcher Eric Katchan
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: