diff options
-rw-r--r-- | lib/private/Server.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index bb4e217efa3..84860f8c494 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -730,7 +730,13 @@ class Server extends ServerContainer implements IServerContainer { if ($config->getSystemValueBool('installed', false) && !(defined('PHPUNIT_RUN') && PHPUNIT_RUN)) { if (!$config->getSystemValueBool('log_query')) { - $v = \OC_App::getAppVersions(); + try { + $v = \OC_App::getAppVersions(); + } catch (\Doctrine\DBAL\Exception $e) { + // Database service probably unavailable + // Probably related to https://github.com/nextcloud/server/issues/37424 + return $arrayCacheFactory; + } } else { // If the log_query is enabled, we can not get the app versions // as that does a query, which will be logged and the logging |