# \[NEED HELP\] Database corrupted

**URL:** <https://forums.plex.tv/t/need-help-database-corrupted/800034>\
**Category:** Plex Media Server\
**Tags:** server-docker, server-unraid\
**Created:** [July 8, 2022, 5:19pm UTC](https://forums.plex.tv/t/need-help-database-corrupted/800034 "2022-07-08T17:19:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Aurian](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/paul_aurian/32/235281_2.png) [@Paul\_Aurian](https://forums.plex.tv/u/Paul_Aurian)\
**Post date:** [July 8, 2022, 5:19pm UTC](https://forums.plex.tv/t/need-help-database-corrupted/800034/1 "2022-07-08T17:19:38Z")

</div>

Hello guys !

I am scratching my head because since an unknown time, I can no longer research any movie or tv show in both Plex for TV and Plex for Windows.  
And the PLEX Docker no longer add new downloaded content.

I have a database corruption apparently : How can I fix it

```auto
Jul 08, 2022 18:49:40.100 [0x148eca1c4b38] ERROR - [DatabaseFixups] SQLITE3:0x80000001, 11, database corruption at line 81887 of [1b256d97b5]
Jul 08, 2022 18:49:40.100 [0x148eca1c4b38] ERROR - [DatabaseFixups] SQLITE3:0x80000001, 11, statement aborts at 11: [SELECT idx, start_block, leaves_end_block, end_block, root FROM 'main'.'fts4_metadata_titles_icu_segdir' WHERE level = ? ORDER BY idx ASC] database disk image is malformed
Jul 08, 2022 18:49:40.100 [0x148eca1c4b38] ERROR - [DatabaseFixups] SQLITE3:0x80000001, 11, statement aborts at 163: [update metadata_items set extra_data=? where metadata_type=? and library_section_id=? and id=?] database disk image is malformed
Jul 08, 2022 18:49:40.100 [0x148eca1c4b38] ERROR - [DatabaseFixups] Exception inside transaction (inside=1) (/data/jenkins/server/3533312223/Library/MetadataCollection.cpp:481): sqlite3_statement_backend::loadOne: database disk image is malformed
Jul 08, 2022 18:49:40.100 [0x148eca1c4b38] ERROR - [DatabaseFixups] Fixup 29DatabaseFixupsSyncCollections threw an exception: sqlite3_statement_backend::loadOne: database disk image is malformed

```

[Plex Media Server Logs\_2022-07-08\_19-22-15.zip](https://forums.plex.tv/uploads/short-url/hrw8tUuhjQQco9bVHwcIC66W9Pq.zip) (1.3 MB)

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [July 8, 2022, 5:39pm UTC](https://forums.plex.tv/t/need-help-database-corrupted/800034/2 "2022-07-08T17:39:11Z")

</div>

> [@Paul\_Aurian](#):
>
> I have a database corruption apparently : How can I fix it

[Plex Documentation](https://support.plex.tv/articles/) → [Repair a Corrupted Database](https://support.plex.tv/articles/repair-a-corrupted-database/)

If repair fails, try [Restore a Database Backed Up via ‘Scheduled Tasks’](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/).

If neither repair nor restore works, then delete the database and recreate your libraries, shares, etc (mentioned in the “Repair…” support document).

---

<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:** [October 6, 2022, 5:39pm UTC](https://forums.plex.tv/t/need-help-database-corrupted/800034/3 "2022-10-06T17:39:38Z")

</div>

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