Hello! we have a a problem with Moodle 3.5.1+, web server apache + NGNIX, database mariadb 5.5.56! Could you please help us???
Processing assignment submission 915893 ...
Done
Processing assignment submission 915889 ...
Done
Processing assignment submission 915881 ...
Done
Processing assignment submission 915897 ...
Done
Processing assignment submission 915904 ...
Done
Processing assignment submission 915871 ...
Done
Done processing 338 assignment submissions
... used 3996 dbqueries
... used 61.464467048645 seconds
Scheduled task complete: Фоновая обработка для модуля задания (mod_assign\task\cron_task)
Execute adhoc task: core_course\task\course_delete_modules
... started 09:57:15. Current memory use 22.1Мбайт.
Exception ignored in shutdown function Closure::__invoke: Ошибка записи в базу данных
Exception ignored in shutdown function tool_log\log\manager::dispose: Ошибка записи в базу данных
Moodle 3.5.1+? That's over two years behind on updates. Can you update to 3.5.14+? The problem may have been resolved.
What version of PHP is this? PHP info shows this.
It looks like the issue occurs with one of the logstore plugins. Which logstores are enabled? E.g.:
These logstore plugin versions:
are not 3.5.1.
In Moodle 3.5.x the logstore plugin versions are 2018051400.
In Moodle 3.8.x the logstore plugin versions are 2019111800 (like in your screenshot).
Has the site been upgraded? Or have changes been made to the core code?
If the site has been upgraded, does the error still appear the same? What if debugging is enabled?
SEE that problem we have at moodle 3.8.2 , PHP 7.2.33:
Processing assignment submission 915893 ...
Done
Processing assignment submission 915889 ...
Done
Processing assignment submission 915881 ...
Done
Processing assignment submission 915897 ...
Done
Processing assignment submission 915904 ...
Done
Processing assignment submission 915871 ...
Done
Done processing 338 assignment submissions
... used 3996 dbqueries
... used 61.464467048645 seconds
Scheduled task complete: Фоновая обработка для модуля задания (mod_assign\task\cron_task)
Execute adhoc task: core_course\task\course_delete_modules
... started 09:57:15. Current memory use 22.1Мбайт.
Exception ignored in shutdown function Closure::__invoke: Ошибка записи в базу данных
Exception ignored in shutdown function tool_log\log\manager::dispose: Ошибка записи в базу данных
Have you tried enabling debugging (Администрирование ▸ Разработка ▸ Отладка, Отладочные сообщения: РАЗРАБОТЧИК, Отображать отладочные сообщения: Да)? Then run the cron and see if the "Exception ignored in shutdown function" message appears with more detail?
"Do you think that updating will settle our problem?" – I don't know but when asking for help it's best to have the latest version so that you have all of the fixes, it's better for us and it's better for you.
I do not know if it is the same problem i have but I get some notifications saying me this:
Exception ignored in shutdown function core\lock\mysql_lock_factory::auto_release
What does it mean?
I have moodle 3.10 upgraded 2 weeks ago.
Exception ignored in shutdown function core\lock\mysql_lock_factory::auto_release: Error reading from database
FWIW, the issue for us was that our MySQL wait_timeout setting needed to be increased. That stopped the errors for us.