# Database corruption reported

**URL:** <https://forums.plex.tv/t/database-corruption-reported/752188>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [October 21, 2021, 4:42pm UTC](https://forums.plex.tv/t/database-corruption-reported/752188 "2021-10-21T16:42:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MyDogArcher](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MyDogArcher](https://forums.plex.tv/u/MyDogArcher)\
**Post date:** [October 21, 2021, 4:42pm UTC](https://forums.plex.tv/t/database-corruption-reported/752188/1 "2021-10-21T16:42:15Z")

</div>

Server Version#: 1.24.5.5160  
Running on a Debian 11 Linux system  
Player Version#:

The last two backup attempts reported a corrupted database was detected and the backup failed. The log file reported the following:

Oct 21, 2021 01:03:07.561 [0xb2bacd90] DEBUG - Activity: registered new activity c5529ffa-b06e-4296-805f-7ef869bc5ca9 - “Butler tasks”  
Oct 21, 2021 01:03:07.562 [0xb2bacd90] DEBUG - [Database backup/com.plexapp.plugins.library.db] Activity: registered new activity 1b46da5d-464c-4ab2-8bf8-a662a2b31b78 - “Database”  
Oct 21, 2021 01:03:18.936 [0xb2bacd90] ERROR - [Database backup/com.plexapp.plugins.library.db] The database failed its integrity check, not backing up.  
Oct 21, 2021 01:03:18.936 [0xb2bacd90] DEBUG - [Database backup/com.plexapp.plugins.library.db] Push: Sending notification tv.plex.notification.admin.database.corrupted to 1 users.  
Oct 21, 2021 01:03:18.936 [0xb2bacd90] DEBUG - [Database backup/com.plexapp.plugins.library.db] HTTP requesting POST [https://notifications.plex.tv/api/v1/notifications](https://notifications.plex.tv/api/v1/notifications)  
Oct 21, 2021 01:03:19.330 [0xb2bacd90] DEBUG - [Database backup/com.plexapp.plugins.library.db] HTTP/2.0 (0.4s) 201 response from POST [https://notifications.plex.tv/api/v1/notifications](https://notifications.plex.tv/api/v1/notifications)  
Oct 21, 2021 01:03:19.330 [0xb2bacd90] DEBUG - [Database backup/com.plexapp.plugins.library.db] Activity: Ended activity 1b46da5d-464c-4ab2-8bf8-a662a2b31b78.

Subsequent database backup operations involving [Database backup/com.plexapp.plugins.library.blobs.db] completed successfully.

There have been no changes to plugins on this system for a long time.

Any ideas on how to debug this and fix it?

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [October 21, 2021, 4:49pm UTC](https://forums.plex.tv/t/database-corruption-reported/752188/2 "2021-10-21T16:49:08Z")

</div>

do you have previous backups before the corruption?

> **[Restore a Database Backed Up via 'Scheduled Tasks' | Plex Support](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/)**
>
> One of the many Scheduled Tasks that a Plex Media Server performs is to make regular backups of the core...

> **[Repair a Corrupted Database | Plex Support](https://support.plex.tv/articles/repair-a-corrupted-database/)**
>
> Note: This article is for Plex Media Server version 1.23.2 and newer. If using an earlier version, see . Though...

---

<div class="post-metadata">

**Author:** ![MyDogArcher](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MyDogArcher](https://forums.plex.tv/u/MyDogArcher)\
**Post date:** [October 21, 2021, 6:19pm UTC](https://forums.plex.tv/t/database-corruption-reported/752188/3 "2021-10-21T18:19:25Z")

</div>

Thank you for the quick reply - went back to most recent successful backup and restored - will await results of next backup.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 19, 2022, 6:19pm UTC](https://forums.plex.tv/t/database-corruption-reported/752188/4 "2022-01-19T18:19:49Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
