For the past two or so months I have been struggling with database problems. Out of the blue the database locks up and a systemctl restart mariadb
will not do. It’ll do nothing. Also a reboot
will not help as the mariadb service cannot properly shut down. All I can do is a power cycle to reboot my database server.
I have exactly the same problem. Were you able to solve the problem?
I am currently making do with “kill -9 ” and start mariadb manually.
Debian 12
MariaDb 10.11.6-0+deb12u1
Apache mod_php / PHP 8.3.6
Nextcloud 28.0.5
The problem occurred after the upgrade to Debian12/PHP8.3/Nextcloud28.
The “show processlist;” when the last error occurs:
MariaDB [(none)]> show processlist;
+------+------+-----------+----------+---------+------+-----------------+------------------------------------------------------------------------------------------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+------+------+-----------+----------+---------+------+-----------------+------------------------------------------------------------------------------------------------------+----------+
| 3699 | nc | localhost | nc | Query | 7783 | Update | INSERT INTO `oc_calendarobjects_props` (`calendarid`, `calendartype`, `objectid`, `name`, `parameter | 0.000 |
| 3725 | nc | localhost | nc | Query | 7660 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3727 | nc | localhost | nc | Query | 7645 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3768 | nc | localhost | nc | Query | 7494 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3773 | nc | localhost | nc | Query | 7476 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3790 | nc | localhost | nc | Query | 7360 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3802 | nc | localhost | nc | Query | 7285 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3827 | nc | localhost | nc | Query | 7194 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3832 | nc | localhost | nc | Query | 7176 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3840 | nc | localhost | nc | Query | 7139 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3858 | nc | localhost | nc | Query | 7135 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3859 | nc | localhost | nc | Query | 7134 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3874 | nc | localhost | nc | Query | 7128 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 3875 | nc | localhost | nc | Query | 7127 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4059 | nc | localhost | nc | Query | 7080 | init for update | DELETE FROM `oc_calendarobjects_props` WHERE (`objectid` = '42402') AND (`calendarid` = '80') | 0.000 |
| 4066 | nc | localhost | nc | Query | 7060 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4087 | nc | localhost | nc | Query | 7014 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4104 | nc | localhost | nc | Query | 6968 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4111 | nc | localhost | nc | Query | 6965 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4112 | nc | localhost | nc | Query | 6965 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4188 | nc | localhost | nc | Query | 6935 | init for update | DELETE FROM `oc_calendarobjects_props` WHERE (`objectid` = '42403') AND (`calendarid` = '80') | 0.000 |
| 4190 | nc | localhost | nc | Query | 6925 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4208 | nc | localhost | nc | Query | 6894 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4210 | nc | localhost | nc | Query | 6893 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4212 | nc | localhost | nc | Query | 6876 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4287 | nc | localhost | nc | Query | 6833 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4315 | nc | localhost | nc | Query | 6760 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4320 | nc | localhost | nc | Query | 6732 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4341 | nc | localhost | nc | Query | 6601 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4344 | nc | localhost | nc | Query | 6576 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4346 | nc | localhost | nc | Query | 6565 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4358 | nc | localhost | nc | Query | 6460 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4373 | nc | localhost | nc | Query | 6276 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4380 | nc | localhost | nc | Query | 6205 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4386 | nc | localhost | nc | Query | 6145 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4442 | nc | localhost | nc | Query | 5983 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4444 | nc | localhost | nc | Query | 5976 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4470 | nc | localhost | nc | Query | 5845 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4472 | nc | localhost | nc | Query | 5845 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4501 | nc | localhost | nc | Query | 5485 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4503 | nc | localhost | nc | Query | 5472 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4546 | nc | localhost | nc | Query | 5166 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4550 | nc | localhost | nc | Query | 5125 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4554 | nc | localhost | nc | Query | 5100 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4593 | nc | localhost | nc | Query | 4800 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4595 | nc | localhost | nc | Query | 4765 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4651 | nc | localhost | nc | Query | 4460 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4655 | nc | localhost | nc | Query | 4405 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4670 | nc | localhost | nc | Query | 4320 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4697 | nc | localhost | nc | Query | 4160 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4717 | nc | localhost | nc | Query | 4045 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4732 | nc | localhost | nc | Query | 3951 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4753 | nc | localhost | nc | Query | 3860 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4780 | nc | localhost | nc | Query | 3685 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4818 | nc | localhost | nc | Query | 3559 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4843 | nc | localhost | nc | Query | 3325 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4864 | nc | localhost | nc | Query | 3302 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4865 | nc | localhost | nc | Query | 3302 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4886 | nc | localhost | nc | Query | 3298 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4887 | nc | localhost | nc | Query | 3298 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4955 | nc | localhost | nc | Query | 3157 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 4956 | nc | localhost | nc | Query | 3157 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5005 | nc | localhost | nc | Query | 3121 | init for update | DELETE FROM `oc_calendarobjects_props` WHERE (`objectid` = '42404') AND (`calendarid` = '56') | 0.000 |
| 5025 | nc | localhost | nc | Query | 2997 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5030 | nc | localhost | nc | Query | 2965 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5055 | nc | localhost | nc | Query | 2856 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5111 | nc | localhost | nc | Query | 2697 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5116 | nc | localhost | nc | Query | 2670 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5140 | nc | localhost | nc | Query | 2605 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5149 | nc | localhost | nc | Query | 2556 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5155 | nc | localhost | nc | Query | 2516 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5174 | nc | localhost | nc | Query | 2503 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5175 | nc | localhost | nc | Query | 2503 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5219 | nc | localhost | nc | Query | 2488 | init for update | DELETE FROM `oc_calendarobjects_props` WHERE (`objectid` = '42327') AND (`calendarid` = '56') | 0.000 |
| 5265 | nc | localhost | nc | Query | 2429 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5266 | nc | localhost | nc | Query | 2429 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5324 | nc | localhost | nc | Query | 2397 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5371 | nc | localhost | nc | Query | 2245 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5383 | nc | localhost | nc | Query | 2129 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5387 | nc | localhost | nc | Query | 2120 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5391 | nc | localhost | nc | Query | 2072 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5406 | nc | localhost | nc | Query | 1885 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5412 | nc | localhost | nc | Query | 1829 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5425 | nc | localhost | nc | Query | 1770 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5451 | nc | localhost | nc | Query | 1525 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5465 | nc | localhost | nc | Query | 1306 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5474 | nc | localhost | nc | Query | 1165 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5492 | nc | localhost | nc | Query | 805 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5501 | nc | localhost | nc | Query | 688 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5539 | nc | localhost | nc | Query | 445 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5576 | nc | localhost | nc | Query | 108 | init for update | DELETE FROM `oc_calendarobjects_props` WHERE (`objectid` = '42405') AND (`calendarid` = '22') | 0.000 |
| 5577 | nc | localhost | nc | Query | 85 | Statistics | SELECT `c`.`id`, `c`.`calendardata`, `c`.`componenttype`, `c`.`uid`, `c`.`uri` FROM `oc_calendarobje | 0.000 |
| 5584 | root | localhost | NULL | Query | 0 | starting | show processlist | 0.000 |
+------+------+-----------+----------+---------+------+-----------------+------------------------------------------------------------------------------------------------------+----------+
The first “hanging” query is always different (UPDATE or INSERT oc_filecache, oc_calendarobjects_props, etc)