# {SOLVED}Library Scanner not updating server

**URL:** <https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272>\
**Category:** Metadata & Adding Files\
**Tags:** server-mac\
**Created:** [June 13, 2020, 9:14pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272 "2020-06-13T21:14:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![beameup](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/beameup/32/15898_2.png) [@beameup](https://forums.plex.tv/u/beameup)\
**Post date:** [June 13, 2020, 9:14pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/1 "2020-06-13T21:14:48Z")

</div>

Server Version#: 1.19.4.2935  
Player Version#: 4.30.2  
  
It’s a Headless MacMini running Catalina, with 2 external HDD’s attached for media storage.

Since the last server update, when I add any media to my Plex Hdd’s, the Library scanner goes through the motions, I get all the notifications, but then adds nothing.  
When I view it “By Folder” it shows nothing in the folder.  
I’ve done some basic troubleshooting (not in this particular order). Shut everything down, restarted it all, checked drive permissions (no issues), did the “Plex Dance”, removed scanned, replaced and re-scanned. My naming scheme is correct.  
I just tried removing something that was already listed, and putting it back. Same thing happens. It’s no longer listed.  
So before I get my logs ready, just looking for a few more things to try, or find out if there is an issue with this build.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [June 13, 2020, 9:18pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/2 "2020-06-13T21:18:16Z")

</div>

Anything special about those files you have added?

> **[Why is some of my content not found? | Plex Support](https://support.plex.tv/articles/201543057-why-is-some-of-my-content-not-found/)**
>
> Naming and Organization The biggest reason by far for items to not be found during a library scan is due...

---

<div class="post-metadata">

**Author:** ![beameup](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/beameup/32/15898_2.png) [@beameup](https://forums.plex.tv/u/beameup)\
**Post date:** [June 13, 2020, 10:51pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/3 "2020-06-13T22:51:40Z")

</div>

Nothing special. mkv and mp4 file types

Folder=“Movie Name” then file is "Movie Name (Year).mkv  
or  
Folder = “TV Series Name” then "Name - S01E01 - “episode name” .mp4

Same thing I’ve been doing for a few years now.  
I looked through that doc and a couple others.  
I’ll sort through the logs and see what I can find.  
Internet connection keeps dropping this afternoon so bear with me.

---

<div class="post-metadata">

**Author:** ![beameup](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/beameup/32/15898_2.png) [@beameup](https://forums.plex.tv/u/beameup)\
**Post date:** [June 13, 2020, 11:17pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/4 "2020-06-13T23:17:35Z")

</div>

OK these lines in the Media scanner log caught my eye:

```auto
Jun 13, 2020 15:34:44.183 [0x1126a2dc0] ERROR - SQLITE3:0x108d1a918, 11, database corruption at line 64757 of [bf8c1b2b7a]
Jun 13, 2020 15:34:44.183 [0x1126a2dc0] ERROR - SQLITE3:0x108d1a918, 11, database corruption at line 64798 of [bf8c1b2b7a]
Jun 13, 2020 15:34:44.184 [0x1126a2dc0] ERROR - SQLITE3:0x108d1a918, 11, statement aborts at 154: [insert into metadata_items (library_section_id,parent_id,metadata_type,guid,hash,media_item_count,title,title_sort,original_title,studio,rating,audience_rating,rating_count,tagline,su

```

**Mod-Edit:** fixed code tags

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [June 13, 2020, 11:20pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/5 "2020-06-13T23:20:12Z")

</div>

See if you can fix that database corruption (fingers crossed!)

> **[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...

---

<div class="post-metadata">

**Author:** ![beameup](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/beameup/32/15898_2.png) [@beameup](https://forums.plex.tv/u/beameup)\
**Post date:** [June 13, 2020, 11:24pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/6 "2020-06-13T23:24:00Z")

</div>

I’m already on that 🙂  
Is it possible to restore it from a Time Machine backup without any issues?

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [June 13, 2020, 11:30pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/7 "2020-06-13T23:30:51Z")

</div>

It might be safer to use one of the db backups created from Plex’ own scheduled maintenance tasks. The repair should be best as you don’t know if those backups already contain some “seed” of corruption

---

<div class="post-metadata">

**Author:** ![beameup](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/beameup/32/15898_2.png) [@beameup](https://forums.plex.tv/u/beameup)\
**Post date:** [June 13, 2020, 11:35pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/8 "2020-06-13T23:35:20Z")

</div>

Alright. I see the last 2 were on 6/7 and 6/10, probably after server updates.  
Before I start. In line 3 of the repair process it shows "

```auto
sqlite3 com.plexapp.plugins.library.db "DELETE from schema_migrations where version='20180501000000'"

```

Do I need to change that date?

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [June 13, 2020, 11:45pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/9 "2020-06-13T23:45:31Z")

</div>

Nope… just go with the code as it is (unless specifically required to replace some sections)

---

<div class="post-metadata">

**Author:** ![beameup](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/beameup/32/15898_2.png) [@beameup](https://forums.plex.tv/u/beameup)\
**Post date:** [June 13, 2020, 11:46pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/10 "2020-06-13T23:46:24Z")

</div>

BINGO! Up and running, scanning and adding!

Thanks so much!

---

<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:** [September 11, 2020, 11:46pm UTC](https://forums.plex.tv/t/solved-library-scanner-not-updating-server/603272/11 "2020-09-11T23:46:32Z")

</div>

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