# Database Crashed

**URL:** <https://help.nextcloud.com/t/database-crashed/140861>\
**Category:** ℹ️ Support\
**Tags:** database\
**Created:** [June 20, 2022, 5:35am UTC](https://help.nextcloud.com/t/database-crashed/140861 "2022-06-20T05:35:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [June 20, 2022, 8:05am UTC](https://help.nextcloud.com/t/database-crashed/140861/4 "2022-06-20T08:05:33Z")

</div>

Did you try to repair the tables? The `oc_file_locks` can be emptied, that is just for locking files during they are changed. If everything runs through your database instead of a dedicated cache, it can create an important load and lead to locked files:

> [@File is locked - how to unlock](https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883):
>
> You can’t access files because they are locked and you find such errors in your logfile: {"reqId":"0DijSqEkfOg2iyh9VD8J","remoteAddr":"xx.xx.xx.xx","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 423 \\\"path\\\/file.extension\\\" is locked\",\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\FileLocked\",\"Code\":0,\"Trace\":\"#0 Manually disable locking state: put Nextcloud in maintenance mode: edit config/config.php and change this line: 'maintenance' =\> tr…

Could be that it is too much for your database and a redis cache could solve your problem.

---

_[View the full topic](https://help.nextcloud.com/t/database-crashed/140861)._
