Exception ignored in shutdown function

Exception ignored in shutdown function

by Кристина Итинсон -
Number of replies: 9

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: Ошибка записи в базу данных

Average of ratings: -
In reply to Кристина Итинсон

Re: Exception ignored in shutdown function

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

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.:

Manage log stores page

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: Exception ignored in shutdown function

by Кристина Итинсон -
1Thank you for such a detailed answer!!!!!Our logstores  are attached
PHP Version 7.2.33
Do you think that updating will settle our problem?
In reply to Кристина Итинсон

Re: Exception ignored in shutdown function

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

These logstore plugin versions:

Cropped image of OP's screenshot of the logstore plugins

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?

In reply to Leon Stringer

Re: Exception ignored in shutdown function

by Кристина Итинсон -
1I am so sorry! It's another moodle! PHP 7.2.9, moodle 3.5.1, here we have that problem, the logstore attached
In reply to Кристина Итинсон

Re: Exception ignored in shutdown function

by Кристина Итинсон -
1FORGET!!! we have many moodles. I am sorry again, so sorry sad
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: Ошибка записи в базу данных

In reply to Кристина Итинсон

Re: Exception ignored in shutdown function

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

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.

In reply to Leon Stringer

Re: Exception ignored in shutdown function

by Ruth Bor -
Hi.
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.
In reply to Ruth Bor

Re: Exception ignored in shutdown function

by Rex Lorenzo -
Has anyone figured this out? We are running Moodle 3.9.8 and getting the same errors:

Exception ignored in shutdown function core\lock\mysql_lock_factory::auto_release: Error reading from database
In reply to Rex Lorenzo

Re: Exception ignored in shutdown function

by Rex Lorenzo -

FWIW, the issue for us was that our MySQL wait_timeout setting needed to be increased. That stopped the errors for us.