Hi there,
last week we faced some issue where we had many people writing an exam like 400-500 people.
Due to misconfiguration our database and php couldnt handle all connections. So they started being stuck. We killed the connection and rebooted everything.
Ilias is working again but we now have a following errors occuring.
ilDatabaseException thrown with message "An undefined Database Exception occured. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1580203' for key 'PRIMARY' QUERY: INSERT INTO obj_stat_tmp SELECT * FROM obj_stat_log WHERE tstamp < '1625592324'"
Stacktrace:
#16 ilDatabaseException in /var/www/html/ilias/Services/Database/classes/PDO/class.ilDBPdo.php:510
#15 ilDBPdo:query in /var/www/html/ilias/Services/Tracking/classes/class.ilChangeEvent.php:400
#14 ilChangeEvent:{closure} in /var/www/html/ilias/Services/Database/classes/Atom/class.ilAtomQueryBase.php:340
#13 ilAtomQueryBase:runQueries in /var/www/html/ilias/Services/Database/classes/Atom/class.ilAtomQueryLock.php:42
#12 ilAtomQueryLock:runWithLocks in /var/www/html/ilias/Services/Database/classes/Atom/class.ilAtomQueryLock.php:31
#11 ilAtomQueryLock:run in /var/www/html/ilias/Services/Tracking/classes/class.ilChangeEvent.php:412
#10 ilChangeEvent:_syncObjectStats in /var/www/html/ilias/Services/Tracking/classes/class.ilChangeEvent.php:360
#9 ilChangeEvent:_recordObjStats in /var/www/html/ilias/Services/Tracking/classes/class.ilChangeEvent.php:192
#8 ilChangeEvent:_recordReadEvent in /var/www/html/ilias/Services/Tracking/classes/class.ilLearningProgress.php:49
#7 ilLearningProgress:_tracProgress in /var/www/html/ilias/Modules/Course/classes/class.ilObjCourseGUI.php:151
#6 ilObjCourseGUI:viewObject in /var/www/html/ilias/Modules/Course/classes/class.ilObjCourseGUI.php:2727
#5 ilObjCourseGUI:executeCommand in /var/www/html/ilias/Services/UICore/classes/class.ilCtrl.php:203
#4 ilCtrl:forwardCommand in /var/www/html/ilias/Services/Repository/classes/class.ilRepositoryGUI.php:374
#3 ilRepositoryGUI:show in /var/www/html/ilias/Services/Repository/classes/class.ilRepositoryGUI.php:336
#2 ilRepositoryGUI:executeCommand in /var/www/html/ilias/Services/UICore/classes/class.ilCtrl.php:203
#1 ilCtrl:forwardCommand in /var/www/html/ilias/Services/UICore/classes/class.ilCtrl.php:164
#0 ilCtrl:callBaseClass in /var/www/html/ilias/ilias.php:20
We started to look at these errors. We decided to remove the objects where the the error occured.
Problem is it keeps happening again, is there any way to fix this issue beside recreated every object in the ilias?
Attached there are some logs.
Maybe anyone has an idea?
Best regards,
Matthias