diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index 06de2c8f40..dc1113ed67 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -136,7 +136,9 @@ App::get('/v1/health/db') } } - if (!empty($failures)) { + // Only throw error if ALL databases failed (no successful pings) + // This allows partial failures in environments where not all DBs are ready + if (!empty($failures) && empty($output)) { throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures)); }