KQMATH/moodle-mod_capquiz

Students get an «error writing to database»

Closed this issue · 1 comments

It happens often that the students get an error about moodle failing to write to the database. This seems to occur when a new attempt is started, and presumably written to the DB. This is probably a performance issue which could be resolved by reducing the number of DB calls and/or tune the server configuration.
However, the immediate problem which should be addressed is to make sure the students get a more sensible error message with the option to reattempt rather than starting from scratch. Hopefully there is an exception which can be caught within CAPQuiz.

The bug seems to occur randomly when many students use the system. Thus it cannot be deterministacally reproduced

This is probably due to overloading the database as a result of other performance issues. We close it for now, pending further testing with Moodle 3.9.