# Plex will not update library after DB restore

**URL:** <https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543>\
**Category:** Plex Media Server\
**Tags:** server-windows\
**Created:** [April 28, 2021, 1:59pm UTC](https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543 "2021-04-28T13:59:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![burkes\_dan](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@burkes\_dan](https://forums.plex.tv/u/burkes_dan)\
**Post date:** [April 28, 2021, 1:59pm UTC](https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543/1 "2021-04-28T13:59:49Z")

</div>

Hi Everyone -

I recently had a raid array crash and needed to be rebuilt. I have restored my plex DB from a previous back up, however I cannot get the library to update now that the restore has been made. Any suggestions? I’ve tried renaming the media folders and then back which is still not forcing an update. Logs are attached.

Any suggestions are greatly appreciated as I do not want to go the nuclear route and do a clean library import. [Plex Media Server Logs\_2021-04-28\_09-10-29.zip](https://forums.plex.tv/uploads/short-url/mVzouC8mOo1s0PgtHejBzGPTAGq.zip) (644.5 KB)

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 28, 2021, 2:07pm UTC](https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543/2 "2021-04-28T14:07:20Z")

</div>

Even your backup is already damaged.

```auto
Apr 28, 2021 09:10:15.351 [20024] ERROR - SQLITE3:0xc5a29e67, 11, database corruption at line 64757 of [bf8c1b2b7a]
Apr 28, 2021 09:10:15.351 [20024] ERROR - SQLITE3:0xc5a29e67, 11, database corruption at line 64798 of [bf8c1b2b7a]
Apr 28, 2021 09:10:15.351 [20024] ERROR - SQLITE3:0xc5a29e67, 11, statement aborts at 7: [select directories.id as 'directories_id', directories.library_section_id as 'directories_library_section_id', directories.parent_directory_id as 'directories_parent_directory_id', dire
Apr 28, 2021 09:10:15.351 [20024] WARN - Caught exception while scanning Music: sqlite3_statement_backend::loadOne: database disk image is malformed

```

Load your backup again and perform the repair procedure on it.

> **[Repair a Corrupt Database | Plex Support](https://support.plex.tv/articles/201100678-repair-a-corrupt-database/)**
>
> Though rare, it is possible for your main Plex Media Server database to become corrupted. For instance, it might happen...

After doing so, start the plex server and let it sit for a few minutes.

---

<div class="post-metadata">

**Author:** ![burkes\_dan](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@burkes\_dan](https://forums.plex.tv/u/burkes_dan)\
**Post date:** [April 28, 2021, 10:50pm UTC](https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543/3 "2021-04-28T22:50:07Z")

</div>

I tried that, I am now getting Error: near line 1225931: no such collation sequence: icu\_root.

Anything I can do, or is it toast?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 29, 2021, 9:52am UTC](https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543/4 "2021-04-29T09:52:14Z")

</div>

Apparently you also updated your server version.  
Could you downgrade your server to the software version from which this DB backup was made?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 29, 2021, 10:09am UTC](https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543/5 "2021-04-29T10:09:06Z")

</div>

If you don’t mind me looking at it, could you zip up the DB,  
upload it to e.g. GDrive and send me the download link per PM?

---

<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:** [July 28, 2021, 10:09am UTC](https://forums.plex.tv/t/plex-will-not-update-library-after-db-restore/712543/6 "2021-07-28T10:09:51Z")

</div>

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