{SOLVED}Library Scanner not updating server

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.

Anything special about those files you have added?

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.

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

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

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

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

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

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 "

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

Do I need to change that date?

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

BINGO! Up and running, scanning and adding!

Thanks so much!

1 Like

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