I just noticed today in the morning that our Nextcloud instance is not reachable any more.
It is used by about 10 users (concurrently max. 3 I would say) and uses Docker containers for MariaDB, Redis and Nextcloud itself.
I can't tell what was going wrong, but what I noticed is that there were about over a hundred of PHP worker threads running, all seemingly waiting for MariaDB to execute certain SQL queries.
MariaDB itself was creating significant CPU load with the execution of those queries.
The "fix" was simply to restart both the PHP server and MariaDB, but I still wanted to report this as a bug, since it happened one month ago as well.
I tried to capture a bit of debug information.
The first thing I copied was the output of mysqladmin -u root -p -i 1 processlist
mysqladmin -u root -p -i 1 processlist
Enter password:
+-----+---------+------------------+-----------+---------+-------+--------------+------------------------------------------------------------------------------------------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+-----+---------+------------------+-----------+---------+-------+--------------+------------------------------------------------------------------------------------------------------+----------+
| 212 | nextadm | 172.19.0.8:33222 | nextcloud | Query | 62027 | Sending data | SELECT COUNT(*) FROM `oc_calendarobjects` WHERE (`calendarid` = '7') AND (`uid` = '29780378216658282 | 0.000 |
| 234 | nextadm | 172.19.0.8:42142 | nextcloud | Query | 60240 | Sending data | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name | 0.000 |
| 394 | nextadm | 172.19.0.8:36764 | nextcloud | Query | 44281 | Update | INSERT INTO `oc_activity` (`app`, `subject`, `subjectparams`, `message`, `messageparams`, `file`, `l | 0.000 |
| 412 | nextadm | 172.19.0.8:43282 | nextcloud | Query | 44161 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 413 | nextadm | 172.19.0.8:43276 | nextcloud | Query | 44176 | Updating | UPDATE `oc_filecache` SET `mtime` = GREATEST(`mtime`, 1702824045), `etag` = '657f086d3e10a', `size` | 0.000 |
| 414 | nextadm | 172.19.0.8:43292 | nextcloud | Query | 44167 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 415 | nextadm | 172.19.0.8:43298 | nextcloud | Query | 44174 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 416 | nextadm | 172.19.0.8:43308 | nextcloud | Query | 44176 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 417 | nextadm | 172.19.0.8:43324 | nextcloud | Query | 44172 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 418 | nextadm | 172.19.0.8:43330 | nextcloud | Query | 44158 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 419 | nextadm | 172.19.0.8:43340 | nextcloud | Query | 44158 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 420 | nextadm | 172.19.0.8:41668 | nextcloud | Query | 44158 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 421 | nextadm | 172.19.0.8:41674 | nextcloud | Query | 44172 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 425 | nextadm | 172.19.0.8:50232 | nextcloud | Query | 44141 | Statistics | SELECT `s`.*, `f`.`fileid`, `f`.`path`, `f`.`permissions` as `f_permissions`, `f`.`storage`, `f`.`pa | 0.000 |
| 442 | nextadm | 172.19.0.8:33146 | nextcloud | Query | 44120 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 443 | nextadm | 172.19.0.8:33154 | nextcloud | Query | 44108 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 444 | nextadm | 172.19.0.8:33166 | nextcloud | Query | 44120 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 445 | nextadm | 172.19.0.8:33172 | nextcloud | Query | 44109 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 465 | nextadm | 172.19.0.8:59736 | nextcloud | Query | 44081 | Statistics | SELECT `s`.*, `f`.`fileid`, `f`.`path`, `f`.`permissions` as `f_permissions`, `f`.`storage`, `f`.`pa | 0.000 |
| 480 | nextadm | 172.19.0.8:44428 | nextcloud | Query | 44037 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 481 | nextadm | 172.19.0.8:44442 | nextcloud | Query | 44037 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 482 | nextadm | 172.19.0.8:44456 | nextcloud | Query | 44027 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 483 | nextadm | 172.19.0.8:44464 | nextcloud | Query | 44026 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 484 | nextadm | 172.19.0.8:44480 | nextcloud | Query | 44032 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 485 | nextadm | 172.19.0.8:44494 | nextcloud | Query | 44037 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 486 | nextadm | 172.19.0.8:44510 | nextcloud | Query | 44035 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 487 | nextadm | 172.19.0.8:44518 | nextcloud | Query | 44026 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 492 | nextadm | 172.19.0.8:49032 | nextcloud | Query | 44020 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 504 | nextadm | 172.19.0.8:50734 | nextcloud | Query | 42575 | Update | INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permi | 0.000 |
| 517 | nextadm | 172.19.0.8:36380 | nextcloud | Query | 42571 | Statistics | SELECT `s`.*, `f`.`fileid`, `f`.`path`, `f`.`permissions` as `f_permissions`, `f`.`storage`, `f`.`pa | 0.000 |
| 526 | nextadm | 172.19.0.8:47402 | nextcloud | Query | 42541 | Statistics | SELECT `s`.*, `f`.`fileid`, `f`.`path`, `f`.`permissions` as `f_permissions`, `f`.`storage`, `f`.`pa | 0.000 |
| 533 | nextadm | 172.19.0.8:36112 | nextcloud | Query | 41579 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 535 | nextadm | 172.19.0.8:59378 | nextcloud | Query | 41338 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 536 | nextadm | 172.19.0.8:40760 | nextcloud | Query | 41134 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 537 | nextadm | 172.19.0.8:40768 | nextcloud | Query | 41133 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 538 | nextadm | 172.19.0.8:40778 | nextcloud | Query | 41131 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 539 | nextadm | 172.19.0.8:40794 | nextcloud | Query | 41130 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 540 | nextadm | 172.19.0.8:40810 | nextcloud | Query | 41128 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 541 | nextadm | 172.19.0.8:40822 | nextcloud | Query | 41127 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 542 | nextadm | 172.19.0.8:37852 | nextcloud | Query | 41117 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 544 | nextadm | 172.19.0.8:50022 | nextcloud | Query | 41098 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 547 | nextadm | 172.19.0.8:56428 | nextcloud | Query | 41014 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 548 | nextadm | 172.19.0.8:36222 | nextcloud | Query | 41009 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 549 | nextadm | 172.19.0.8:36234 | nextcloud | Query | 41007 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 550 | nextadm | 172.19.0.8:36250 | nextcloud | Query | 41006 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 551 | nextadm | 172.19.0.8:54990 | nextcloud | Query | 41005 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 552 | nextadm | 172.19.0.8:54998 | nextcloud | Query | 41004 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 553 | nextadm | 172.19.0.8:55004 | nextcloud | Query | 41003 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 554 | nextadm | 172.19.0.8:40436 | nextcloud | Query | 40991 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 555 | nextadm | 172.19.0.8:57428 | nextcloud | Query | 40974 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 556 | nextadm | 172.19.0.8:57442 | nextcloud | Query | 40966 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 557 | nextadm | 172.19.0.8:35898 | nextcloud | Query | 40965 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 558 | nextadm | 172.19.0.8:35912 | nextcloud | Query | 40964 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 559 | nextadm | 172.19.0.8:35920 | nextcloud | Query | 40962 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 560 | nextadm | 172.19.0.8:35924 | nextcloud | Query | 40961 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 561 | nextadm | 172.19.0.8:35934 | nextcloud | Query | 40960 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 562 | nextadm | 172.19.0.8:35948 | nextcloud | Query | 40959 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 563 | nextadm | 172.19.0.8:35960 | nextcloud | Query | 40958 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 564 | nextadm | 172.19.0.8:54368 | nextcloud | Query | 40955 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 565 | nextadm | 172.19.0.8:54378 | nextcloud | Query | 40952 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 566 | nextadm | 172.19.0.8:49922 | nextcloud | Query | 40915 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 568 | nextadm | 172.19.0.8:60282 | nextcloud | Query | 40856 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 569 | nextadm | 172.19.0.8:60292 | nextcloud | Query | 40856 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 570 | nextadm | 172.19.0.8:43224 | nextcloud | Query | 40853 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 571 | nextadm | 172.19.0.8:43234 | nextcloud | Query | 40853 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 572 | nextadm | 172.19.0.8:43242 | nextcloud | Query | 40851 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 573 | nextadm | 172.19.0.8:43248 | nextcloud | Query | 40850 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 574 | nextadm | 172.19.0.8:43264 | nextcloud | Query | 40848 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 575 | nextadm | 172.19.0.8:43268 | nextcloud | Query | 40847 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 576 | nextadm | 172.19.0.8:50402 | nextcloud | Query | 40791 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 577 | nextadm | 172.19.0.8:58896 | nextcloud | Query | 40729 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 578 | nextadm | 172.19.0.8:47052 | nextcloud | Query | 40665 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 579 | nextadm | 172.19.0.8:47188 | nextcloud | Query | 40605 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 580 | nextadm | 172.19.0.8:47314 | nextcloud | Query | 40542 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 581 | nextadm | 172.19.0.8:44202 | nextcloud | Query | 40481 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 588 | nextadm | 172.19.0.8:37748 | nextcloud | Query | 40418 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 589 | nextadm | 172.19.0.8:39852 | nextcloud | Query | 40356 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 590 | nextadm | 172.19.0.8:39760 | nextcloud | Query | 40295 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 591 | nextadm | 172.19.0.8:47856 | nextcloud | Query | 40233 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 593 | nextadm | 172.19.0.8:47032 | nextcloud | Query | 40218 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 31) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 594 | nextadm | 172.19.0.8:55482 | nextcloud | Query | 40171 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 595 | nextadm | 172.19.0.8:60646 | nextcloud | Query | 40108 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 596 | nextadm | 172.19.0.8:59714 | nextcloud | Query | 40070 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 597 | nextadm | 172.19.0.8:33882 | nextcloud | Query | 40046 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 598 | nextadm | 172.19.0.8:59828 | nextcloud | Query | 40027 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 606 | nextadm | 172.19.0.8:59898 | nextcloud | Query | 40027 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 607 | nextadm | 172.19.0.8:49924 | nextcloud | Query | 39985 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 608 | nextadm | 172.19.0.8:49932 | nextcloud | Query | 39976 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 609 | nextadm | 172.19.0.8:59806 | nextcloud | Query | 39950 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 610 | nextadm | 172.19.0.8:57178 | nextcloud | Query | 39933 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 611 | nextadm | 172.19.0.8:46904 | nextcloud | Query | 39923 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 612 | nextadm | 172.19.0.8:55638 | nextcloud | Query | 39882 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 613 | nextadm | 172.19.0.8:45936 | nextcloud | Query | 39861 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 616 | nextadm | 172.19.0.8:56374 | nextcloud | Query | 39799 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 617 | nextadm | 172.19.0.8:44066 | nextcloud | Query | 39735 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 618 | nextadm | 172.19.0.8:34464 | nextcloud | Query | 39674 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 619 | nextadm | 172.19.0.8:34480 | nextcloud | Query | 39675 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 620 | nextadm | 172.19.0.8:51222 | nextcloud | Query | 39613 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 621 | nextadm | 172.19.0.8:50032 | nextcloud | Query | 39551 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 622 | nextadm | 172.19.0.8:50046 | nextcloud | Query | 39549 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 623 | nextadm | 172.19.0.8:43332 | nextcloud | Query | 39489 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 624 | nextadm | 172.19.0.8:41440 | nextcloud | Query | 39427 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 2) AND (`path_hash` IN ('9d96bab0f8958719e389dd | 0.000 |
| 625 | nextadm | 172.19.0.8:41448 | nextcloud | Query | 39426 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 626 | nextadm | 172.19.0.8:38028 | nextcloud | Query | 39365 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 627 | nextadm | 172.19.0.8:59884 | nextcloud | Query | 39302 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 628 | nextadm | 172.19.0.8:48200 | nextcloud | Query | 39241 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 631 | nextadm | 172.19.0.8:55150 | nextcloud | Query | 39179 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 632 | nextadm | 172.19.0.8:40124 | nextcloud | Query | 39152 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 633 | nextadm | 172.19.0.8:43582 | nextcloud | Query | 39116 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 636 | nextadm | 172.19.0.8:49502 | nextcloud | Query | 39055 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 640 | nextadm | 172.19.0.8:58540 | nextcloud | Query | 38993 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 641 | nextadm | 172.19.0.8:51592 | nextcloud | Query | 38931 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 642 | nextadm | 172.19.0.8:58718 | nextcloud | Query | 38869 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 643 | nextadm | 172.19.0.8:36838 | nextcloud | Query | 38805 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 645 | nextadm | 172.19.0.8:34506 | nextcloud | Query | 38745 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 646 | nextadm | 172.19.0.8:40476 | nextcloud | Query | 38683 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 649 | nextadm | 172.19.0.8:57530 | nextcloud | Query | 38621 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 650 | nextadm | 172.19.0.8:60544 | nextcloud | Query | 38559 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 651 | nextadm | 172.19.0.8:54100 | nextcloud | Query | 38496 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 652 | nextadm | 172.19.0.8:35352 | nextcloud | Query | 38435 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 653 | nextadm | 172.19.0.8:54900 | nextcloud | Query | 38373 | Statistics | SELECT `path` FROM `oc_filecache` WHERE (`storage` = 43) AND (`path_hash` IN ('9d96bab0f8958719e389d | 0.000 |
| 672 | root | localhost | | Query | 0 | starting | show processlist | 0.000 |
+-----+---------+------------------+-----------+---------+-------+--------------+------------------------------------------------------------------------------------------------------+----------+
Of course, I needed to strip certain parts of the logs for privacy reasons, I hope it can still be valuable information for debugging what is going on.
If there are some critical logs missing, that would be helpful, feel free to tell me.
I will add this when this issue occurs the next time.
At first I thought this issue might be related to this one, but my oc_filecache table is roundabout 900mb large, which sounds reasonable for an instance of 1.53TB of storage size.
Steps to reproduce
Unfortunately, I can't tell how to reproduce.
Expected behavior
Nextcloud should not get stuck (i.e. actually return something when I try to request the page, not just timeout).
Installation method
None
Nextcloud Server version
26
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Fails du to the following patch (and issue): https://github.com/nextcloud/groupfolders/issues/2559#issuecomment-1807372455
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- groupfolders
- INVALID_HASH
- lib/Versions/GroupVersionsExpireManager.php
Raw output
==========
Array
(
[groupfolders] => Array
(
[INVALID_HASH] => Array
(
[lib/Versions/GroupVersionsExpireManager.php] => Array
(
[expected] => 3875bed12bb76cc339a59c778ffcdcf80d886220b37bd9b03a2c3fbd158b727072444cebc2d4a026582e72717e3ccb7a0b52b0f715cffa7f78c3104ca569141e
[current] => d73d8ae6cb15ab7f9d3861ffd0d28a77f8d7fe329f20190f501429d23ce6dcc7b178a393944f8c9d05df86ed736a7f8c2c1b0287706ae0e3e39527c844f9cc72
)
)
)
)
⚠️ This issue respects the following points: ⚠️
Bug description
I just noticed today in the morning that our Nextcloud instance is not reachable any more. It is used by about 10 users (concurrently max. 3 I would say) and uses Docker containers for MariaDB, Redis and Nextcloud itself. I can't tell what was going wrong, but what I noticed is that there were about over a hundred of PHP worker threads running, all seemingly waiting for MariaDB to execute certain SQL queries.
MariaDB itself was creating significant CPU load with the execution of those queries.
The "fix" was simply to restart both the PHP server and MariaDB, but I still wanted to report this as a bug, since it happened one month ago as well.
I tried to capture a bit of debug information. The first thing I copied was the output of
mysqladmin -u root -p -i 1 processlist
The next is the output of
SHOW ENGINE INNODB STATUS
: https://pastebin.com/7muWuFiHOf course, I needed to strip certain parts of the logs for privacy reasons, I hope it can still be valuable information for debugging what is going on. If there are some critical logs missing, that would be helpful, feel free to tell me. I will add this when this issue occurs the next time.
At first I thought this issue might be related to this one, but my
oc_filecache
table is roundabout 900mb large, which sounds reasonable for an instance of 1.53TB of storage size.Steps to reproduce
Unfortunately, I can't tell how to reproduce.
Expected behavior
Nextcloud should not get stuck (i.e. actually return something when I try to request the page, not just timeout).
Installation method
None
Nextcloud Server version
26
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Webserver is Caddy 2.1.1 with hundreds of error messages like this indicating an upstream error: