Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6511

Re: Restore Failed - Error Writing to the Database

$
0
0
by Dwight Hawley.  

Hi Ken,

Thanks for the followup.

A bit of context.  These are backups created in order to reuse that course in the next term. So the backups are created, then immediately restored as new courses. I am not at all certain this is the best way of going about this, but this is what they do and it had been working without fail. The only difference I can point to is we upgraded from 2.5 to 2.7 and then moved the server from a hosted environment to a private server at the beginning of the term.

Backups range from 8 to 12 MB in size and I haven't, nor will I assume those on campus have, any clue as to question bank origins.

Each comes back with the error below, the only differences appear to be in the number of seconds it ran - 25-80 or so


Error writing to database

More information about this error

Debug info: Duplicate entry '6467' for key 'mdl_qtypmultopti_que_uix'
INSERT INTO mdl_qtype_multichoice_options (layout,single,shuffleanswers,correctfeedback,correctfeedbackformat,partiallycorrectfeedback,partiallycorrectfeedbackformat,incorrectfeedback,incorrectfeedbackformat,answernumbering,shownumcorrect,questionid) VALUES(?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '0',
1 => '1',
2 => '1',
3 => '',
4 => '1',
5 => '',
6 => '1',
7 => '',
8 => '1',
9 => 'abc',
10 => '0',
11 => 6467,
)]
Error code: dmlwriteexception



 Stack trace is same as well.


I'll try restore minus quizzes and then the other steps, which do indeed appear daunting but will work with the sysadmin to try and complete them.

One other question.  I ran across a single mention of using course import somewhere in issues along this vein and after reading up on documentation and postings I am just not seeing clear sign of when to use import and when to use restore. When re purposing a course, is one a better route than the other? If not, what purpose does import serve?


Thanks again for your lifeline tossed into the murky depths!


--Dwight


Viewing all articles
Browse latest Browse all 6511

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>