Plex Media Scanner crashes during scan in 1.32.5.7210

Server Version#: plexmediaserver-1.32.5.7210-77f7f99fa.x86_64

When I run /usr/lib/plexmediaserver/Plex\ Media\ Scanner -s I get this error:

****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.32.5.7210-77f7f99fa/PLEX MEDIA SCANNER/…

That log contains these lines:

Jun 24, 2023 11:42:52.602 [140192512580352] DEBUG - Scanner [Plex TV Series]: found cloud match for file ‘/backup/vid/plex/tv/Redacted/Season 03/Redacted - s03e01.00:11.mp4’: ‘Redacted’
Jun 24, 2023 11:42:52.602 [140192512580352] DEBUG - [HCl#c3] HTTP requesting GET http://127.0.0.1:32400/metadata/agents/movie/provider?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jun 24, 2023 11:42:52.603 [140192518130432] DEBUG - [HttpClient/HCl#c3] HTTP/1.1 (0.0s) 404 response from GET http://127.0.0.1:32400/metadata/agents/movie/provider?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (reused)
Jun 24, 2023 11:42:52.603 [140192517155584] ERROR - downloadContainer: expected MediaContainer element, found html

Since I wasn’t able to find anything on this forum or web searches, I rolled back to the previous version and it worked flawlessly…

Running into the same thing with plex_autoscan script. Hope this gets fixed soon

1 Like

Full DEBUG logs ZIP files please ?

They are needed to give to the engineer.

The excerpt above does not provide sufficient detail.

This is transitional as the scanner moves from old Python to new C++. It’s a slow process to transition everything.

Jun 24, 2023 11:42:52.603 [140192517155584] ERROR - downloadContainer: expected MediaContainer element, found html

What is the best secure way to get you the log files? Just turned on debug logging so should have some by tomorrow at the latest.

I am having a similar issue using unraid with autoscan which autoscan is working fine, however plex media scanner is crashing.

****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.32.5.7349-8f4248874/PLEX MEDIA SCANNER/d3dc0c87-0642-43e3-1111e382-d3c7e8e7.dmp
d3dc0c87-0642-43e3-1111e382-d3c7e8e7.dmp.log (2.6 MB)

Looking at my logs I don’t see anything weird. Any help would be much appreciated!

I investigated this further and discovered that they have no plans to implement a scan from the command line. The 's" command has been considered deprecated for a while, and they finally pulled the plug on it.

I just wish they had been more transparent about the removal of that option.

So for now I’m just setting up a timed scan to occur every 15 minutes. Not ideal, but it does work.

I cannot use dmp.log files. They tell me nothing.

  1. Confirm DEBUG logging is enabled (SAVE if you make changes)
  2. Make it scan and fail.
  3. Download the server logs ZIP file and attach it

I can work with that because I see what it’s doing. a dmp.log only tells me the crash report was uploaded.

PMS can auto detect changes if you’ve configured fs.inotify.max_user_watches correctly.

Plex Media Server Logs_2023-09-08_09-18-41.zip (7.0 MB)

Hope this helps!

thanks.

I found it, unfortunately.

Sep 08, 2023 09:17:56.518 [23183531424568] DEBUG - Looking for path match for [/data/media/tv/America's Got Talent (2006) [imdb-tt0759364]/Season 18/America's Got Talent (2006) - S18E16 - Qualifiers 3 [WEBDL-1080p][AAC 2.0][x264]-EDITH.mkv]
Sep 08, 2023 09:17:56.518 [23183562681144] DEBUG - [LibraryTimeline] Scanner activity on section 2: 292 added, 3 deleted
Sep 08, 2023 09:17:56.518 [23183531424568] DEBUG - Skipping hash check, no size match for 2138683320 bytes.
Sep 08, 2023 09:17:56.518 [23183531424568] DEBUG - No match for hash.
Sep 08, 2023 09:17:56.519 [23183531424568] DEBUG - Found existing show 348169
Sep 08, 2023 09:17:56.520 [23183531424568] DEBUG - Added new metadata item (Qualifiers 3) with ID 435357
Sep 08, 2023 09:17:56.520 [23183531424568] ERROR - SQLITE3:0x80000001, 11, database corruption at line 72267 of [a29f994989]
Sep 08, 2023 09:17:56.520 [23183531424568] ERROR - SQLITE3:0x80000001, 11, statement aborts at 10: [SELECT (SELECT max(idx) FROM 'main'.'fts4_metadata_titles_icu_segdir' WHERE level = ?) + 1] database disk image is malformed
Sep 08, 2023 09:17:56.520 [23183531424568] ERROR - SQLITE3:0x80000001, 11, statement aborts at 178: [update metadata_items set updated_at=null,guid=?,hash=? where id=?] database disk image is malformed
Sep 08, 2023 09:17:56.520 [23183531424568] ERROR - Exception inside transaction (inside=1) (/data/jenkins/server/3532787937/Library/MetadataItem.cpp:4012): sqlite3_statement_backend::loadOne: database disk image is malformed
Sep 08, 2023 09:17:56.520 [23183531424568] ERROR - Exception assimilating media item in America's Got Talent (2006) [imdb-tt0759364]/Season 18: sqlite3_statement_backend::loadOne: database disk image is malformed
Sep 08, 2023 09:17:56.520 [23183562681144] DEBUG - [LibraryTimeline] Scanner activity on section 2: 293 added, 3 deleted
Sep 08, 2023 09:17:56.770 [23183531424568] DEBUG - Native Scanner: Executed Add to Database stage in 0.28 sec.
Sep 08, 2023 09:17:56.770 [23183531424568] DEBUG - Native Scanner: Executed Media Analysis stage in 0.00 sec.
Sep 08, 2023 09:17:56.770 [23183550409528] DEBUG - Scanner [Plex TV Series]: Idle and left with 9069 media items.
Sep 08, 2023 09:17:56.771 [23183550409528] DEBUG - Removing 152 media items that were left.
Sep 08, 2023 09:17:56.771 [23183550409528] DEBUG - Deleting media item 314618.

You can use my tool to help restore a recent backup to use as current.

It checks each of your available backups then presents you with the option of to use them for the restore.

The first you say “Yes” to is what it will use.

When restored, you can then scan files, refresh metadata and get the DB caught back up

If all the backups are damaged, you can try to repair but there are no guarantees.

1 Like

That fixed it, thanks so much!

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