nextcloud/server · error · OCA\DAV\Exception\ServerMaintenanceMode
System is in maintenance mode.
Error message
System is in maintenance mode.
What it means
Error "System is in maintenance mode." thrown in nextcloud/server.
Source
Thrown at apps/dav/lib/Connector/Sabre/MaintenancePlugin.php:61
*
* @param \Sabre\DAV\Server $server
* @return void
*/
#[\Override]
public function initialize(\Sabre\DAV\Server $server) {
$this->server = $server;
$this->server->on('beforeMethod:*', [$this, 'checkMaintenanceMode'], 1);
}
/**
* This method is called before any HTTP method and returns http status code 503
* in case the system is in maintenance mode.
*
* @throws ServiceUnavailable
*/
public function checkMaintenanceMode(): bool {
if ($this->config->getSystemValueBool('maintenance')) {
throw new ServerMaintenanceMode($this->l10n->t('System is in maintenance mode.'));
}
if (Util::needUpgrade()) {
throw new ServerMaintenanceMode($this->l10n->t('Upgrade needed'));
}
return true;
}
}
View on GitHub (pinned to ecdeb153ff)
When it happens
Trigger: Thrown at apps/dav/lib/Connector/Sabre/MaintenancePlugin.php:61 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nextcloud/server@ecdeb153ff (2026-08-17).
Data as JSON: /api/errors/e42c6bd8af4e9839.
Report an issue: GitHub.