Plex Music matching doesn't work except for directories with 1 file

Edit: Moved this into the Plex Pass forum since I’m running a beta one. I have tried moving back to a stable release but that didn’t fix it.
Server Version#: 1.30.0.6406
Player Version#: Web 4.94.2

I’ve been using Plex for music for a while, my lib had around ~500 albums, and everything was fine. I had added some music in the last 30 days but didn’t bother checking when I added them, but today I tried to make one of the new albums appear with no luck. Scanning library files didn’t work, and while it did see the folder when I switched to the “Folders” view, it was showing up as empty.

I tried removing the library and adding my music folders, emptying trash, and repairing the database too. But now, when I rescan, Only three albums are readded, which, in common, have only one music file. All my music library is gone from Plex, except for these three one-song albums. Other folders go through a scan, as in the log below.

Trying to run Plex Media Scanner executable similar to what’s in the logs doesn’t yield any results too.

I’ve been relying on Plex for music for a while, and I don’t feel happy with any of the other options available. Any help is very much appreciated!

PS: Movies and TV Shows are working normally, the issue is restricted to Music.

Nov 21, 2022 00:43:06.592 [0x149e3ef2db38] Error — Error parsing XML: Error parsing file.
Nov 21, 2022 00:43:06.592 [0x149e3ef2db38] Debug — Native Scanner: Executed Match stage in 0.13 sec.
Nov 21, 2022 00:43:06.592 [0x149e3c16ab38] Debug — Native Scanner: Executed Add to Database stage in 0.00 sec.
Nov 21, 2022 00:43:06.592 [0x149e3ef2db38] Debug — Native Scanner: Executed Media Analysis stage in 0.00 sec.
Nov 21, 2022 00:43:06.592 [0x149e3c36db38] Debug — [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/2427c16-4411-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Media Scanner" --match --type 8 --log-file-suffix " Matcher"
Nov 21, 2022 00:43:06.592 [0x149e3c570b38] Debug — Activity: updated activity 4059b50a-3515-463f-adb8-8387dad8c3ab - completed 0.5% - Scanning Music
Nov 21, 2022 00:43:06.592 [0x149e3c36db38] Debug — [JobRunner] Jobs: Starting child process with pid 540
Nov 21, 2022 00:43:06.592 [0x149e3c570b38] Debug — Scanner: Processing directory /music/Tulipa Ruiz - Habilidades Extraordinárias [2022 BEM002] [FLAC] (parent: yes)
Nov 21, 2022 00:43:06.596 [0x149e3c570b38] Debug — Directory had 11 files, database had 0 files, can't skip.
Nov 21, 2022 00:43:06.732 [0x149e3c36db38] Error — Error parsing content.
Nov 21, 2022 00:43:06.732 [0x149e3c36db38] Error — Error parsing XML: Error parsing file.
Nov 21, 2022 00:43:06.732 [0x149e46ae4b38] Debug — Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 540 is 0 (success)
Nov 21, 2022 00:43:06.732 [0x149e3c36db38] Debug — Native Scanner: Executed Match stage in 0.14 sec.
Nov 21, 2022 00:43:06.732 [0x149e3c16ab38] Debug — Native Scanner: Executed Add to Database stage in 0.00 sec.
Nov 21, 2022 00:43:06.732 [0x149e3c16ab38] Debug — Native Scanner: Executed Media Analysis stage in 0.00 sec.
Nov 21, 2022 00:43:06.732 [0x149e3ef2db38] Debug — [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/2427c16-4411-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Media Scanner" --match --type 8 --log-file-suffix " Matcher"
Nov 21, 2022 00:43:06.732 [0x149e3c570b38] Debug — Activity: updated activity 4059b50a-3515-463f-adb8-8387dad8c3ab - completed 0.7% - Scanning Music
Nov 21, 2022 00:43:06.732 [0x149e3ef2db38] Debug — [JobRunner] Jobs: Starting child process with pid 543

Can you plex dance the files, and then upload your server logs? and please include the exact path and name of an affected file.

1 Like

Plex Dance did not help, and I’m getting a “500 Internal Server Error” when I click the download logs button.

I downloaded the log files after identifying /tmp was owned by root. Making it writable for Plex fixed everything!

Thanks for the help!

PS: An error message when Plex Media Scanner can’t write to /tmp would be great. Only after clicking “Download logs” I had a proper permission error which led me to fix the issue.

If you look in the log files Ill be you will see those errors.

might also be visible in the console while downloading logs, or doing a scan.

Worst case you could have manually retrieved the logs, and it would have given that info too.

Ah, possibly, but the Plex Media Scanner returns 0 with an empty XML, and as I mentioned, it works for folders with one music. If it needs to write to /tmp, it should throw an error when trying to do so.

Im betting the errors are in the logs, just not the log file you are looking in. The logs can get confusing if you are not familiar with parsing them.

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