Server Version#: Version 1.32.6.7557
I am looking for ideas to understand why the Plex scanning operation does not consistently pick up all *.mkv files that are accessible to it in the libraries, and what I can do about it.
The scanning will randomly:
- Skip for instance episodes 4, 8 and 12 of a show in a TV Shows library, or
- Skip random movies in a Movies library
And then, when new files are added to the libraries and the Scan is run again, some of the old stuff will suddenly re-appear as newly added again.
Only to disappear again, on the next scan, and other old movies showing up again.
The problem became persistent recently when I added around 170 Kamen Rider movies to a Movies library, each having a tmdb id in the folder and file name. I.e.:
Birth of the 10th! Kamen Riders All Together!! {tmdb-270721} [1984]\Birth of the 10th! Kamen Riders All Together!! {tmdb-270721} [1984].mkv
So far I have tried to:
- Eliminate all duplicates
- Clean the bundles
- Optimize the database
- Repair and rebuild the database, even though there is no signs of corruption (https://support.plex.tv/articles/201100678-repair-a-corrupt-database-1-22-0/)
- Reboot
For instance, for a season with 12 .mkv files in it, only 9 of them will be detected, according to the Scanner log. Episodes 4, 8 and 12 appears to be simply skipped or missing for some reason.
# tail -f /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log | grep Bxxxxxx
Oct 29, 2023 23:11:04.350 [140457614170936] VERBOSE - Adding subdirectory for scanner: "/plex/series/Bxxxxxx [2016]"
Oct 29, 2023 23:11:07.215 [140457614170936] DEBUG - Scanner: Processing directory /plex/series/Bxxxxxx [2016] (parent: yes)
Oct 29, 2023 23:11:07.217 [140457614170936] VERBOSE - * Noting that 'Bxxxxxx [2016]' was updated at 2023-10-28 13:35:44
Oct 29, 2023 23:11:07.217 [140457614170936] VERBOSE - * Taking directory 'Bxxxxxx [2016]' (198239) out of the map (16318 left)
Oct 29, 2023 23:11:07.219 [140457614170936] VERBOSE - Adding subdirectory for scanner: "/plex/series/Bxxxxxx [2016]/Season 07"
Oct 29, 2023 23:11:07.222 [140457614170936] DEBUG - Skipping over directory 'Bxxxxxx [2016]', as nothing has changed; removing 0 media items from map.
Oct 29, 2023 23:11:07.226 [140457614170936] DEBUG - Scanner: Processing directory /plex/series/Bxxxxxx [2016]/Season 07 (parent: yes)
Oct 29, 2023 23:11:07.229 [140457614170936] VERBOSE - * Noting that 'Bxxxxxx [2016]/Season 07' was updated at 2023-10-28 10:48:01
Oct 29, 2023 23:11:07.229 [140457614170936] VERBOSE - * Taking directory 'Bxxxxxx [2016]/Season 07' (404506) out of the map (16317 left)
Oct 29, 2023 23:11:07.239 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E02.mkv"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E01.da.srt"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E01.en.srt"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E01.fi.srt"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E01.mkv"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E01.no.srt"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E01.sv.srt"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E02.da.srt"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E02.en.srt"
Oct 29, 2023 23:11:07.240 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E02.fi.srt"
Oct 29, 2023 23:11:07.241 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07.nfo"
Oct 29, 2023 23:11:07.241 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E02.no.srt"
Oct 29, 2023 23:11:07.241 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E02.sv.srt"
Oct 29, 2023 23:11:07.241 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E03.da.srt"
Oct 29, 2023 23:11:07.241 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E03.en.srt"
Oct 29, 2023 23:11:07.241 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E03.fi.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E03.mkv"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E03.no.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E03.sv.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E04.da.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E04.en.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E04.fi.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E04.no.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E04.sv.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E05.da.srt"
Oct 29, 2023 23:11:07.242 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E05.en.srt"
Oct 29, 2023 23:11:07.243 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E05.fi.srt"
Oct 29, 2023 23:11:07.243 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E05.mkv"
Oct 29, 2023 23:11:07.243 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E05.no.srt"
Oct 29, 2023 23:11:07.243 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E05.sv.srt"
Oct 29, 2023 23:11:07.243 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E06.da.srt"
Oct 29, 2023 23:11:07.243 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E06.en.srt"
Oct 29, 2023 23:11:07.244 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E06.fi.srt"
Oct 29, 2023 23:11:07.244 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E06.mkv"
Oct 29, 2023 23:11:07.244 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E06.no.srt"
Oct 29, 2023 23:11:07.244 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E06.sv.srt"
Oct 29, 2023 23:11:07.244 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E07.da.srt"
Oct 29, 2023 23:11:07.244 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E07.en.srt"
Oct 29, 2023 23:11:07.244 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E07.fi.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E07.mkv"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E07.no.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E07.sv.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E08.da.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E08.en.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E08.fi.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E08.no.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E08.sv.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E09.da.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E09.en.srt"
Oct 29, 2023 23:11:07.245 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E09.fi.srt"
Oct 29, 2023 23:11:07.246 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E09.mkv"
Oct 29, 2023 23:11:07.246 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E09.no.srt"
Oct 29, 2023 23:11:07.246 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E09.sv.srt"
Oct 29, 2023 23:11:07.247 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E10.da.srt"
Oct 29, 2023 23:11:07.247 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E10.en.srt"
Oct 29, 2023 23:11:07.247 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E10.fi.srt"
Oct 29, 2023 23:11:07.247 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E10.mkv"
Oct 29, 2023 23:11:07.247 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E10.no.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E10.sv.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E11.da.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E11.en.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E11.fi.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E11.mkv"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E11.no.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E11.sv.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E12.da.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E12.en.srt"
Oct 29, 2023 23:11:07.248 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E12.fi.srt"
Oct 29, 2023 23:11:07.249 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E12.no.srt"
Oct 29, 2023 23:11:07.249 [140457614170936] VERBOSE - Adding file for scanner: "/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E12.sv.srt"
Oct 29, 2023 23:11:07.268 [140457614170936] DEBUG - Skipping over directory 'Bxxxxxx [2016]/Season 07', as nothing has changed; removing 9 media items from map.
However, all the 12 .mkv files are readily accessible in the file system by the plex user.
# su - plex -s /bin/bash
Last login: Sun Oct 29 22:57:23 CET 2023 on pts/0
-bash-4.2$ whoami
plex
-bash-4.2$ ps -ef | grep "Plex Media Server"
plex 6643 5924 0 23:01 pts/0 00:00:00 grep --color=auto Plex Media Server
plex 7185 1 51 05:52 ? 08:53:46 /usr/lib/plexmediaserver/Plex Media Server
-bash-4.2$ tree /plex/series/Bxxxxxx\ \[2016\]/
/plex/series/Bxxxxxx\ [2016]/
βββ Season\ 07
βββ Bxxxxxx.S07E01.da.srt
βββ Bxxxxxx.S07E01.en.srt
βββ Bxxxxxx.S07E01.fi.srt
βββ Bxxxxxx.S07E01.mkv
βββ Bxxxxxx.S07E01.no.srt
βββ Bxxxxxx.S07E01.sv.srt
βββ Bxxxxxx.S07E02.da.srt
βββ Bxxxxxx.S07E02.en.srt
βββ Bxxxxxx.S07E02.fi.srt
βββ Bxxxxxx.S07E02.mkv
βββ Bxxxxxx.S07E02.no.srt
βββ Bxxxxxx.S07E02.sv.srt
βββ Bxxxxxx.S07E03.da.srt
βββ Bxxxxxx.S07E03.en.srt
βββ Bxxxxxx.S07E03.fi.srt
βββ Bxxxxxx.S07E03.mkv
βββ Bxxxxxx.S07E03.no.srt
βββ Bxxxxxx.S07E03.sv.srt
βββ Bxxxxxx.S07E04.da.srt
βββ Bxxxxxx.S07E04.en.srt
βββ Bxxxxxx.S07E04.fi.srt
βββ Bxxxxxx.S07E04.mkv
βββ Bxxxxxx.S07E04.no.srt
βββ Bxxxxxx.S07E04.sv.srt
βββ Bxxxxxx.S07E05.da.srt
βββ Bxxxxxx.S07E05.en.srt
βββ Bxxxxxx.S07E05.fi.srt
βββ Bxxxxxx.S07E05.mkv
βββ Bxxxxxx.S07E05.no.srt
βββ Bxxxxxx.S07E05.sv.srt
βββ Bxxxxxx.S07E06.da.srt
βββ Bxxxxxx.S07E06.en.srt
βββ Bxxxxxx.S07E06.fi.srt
βββ Bxxxxxx.S07E06.mkv
βββ Bxxxxxx.S07E06.no.srt
βββ Bxxxxxx.S07E06.sv.srt
βββ Bxxxxxx.S07E07.da.srt
βββ Bxxxxxx.S07E07.en.srt
βββ Bxxxxxx.S07E07.fi.srt
βββ Bxxxxxx.S07E07.mkv
βββ Bxxxxxx.S07E07.no.srt
βββ Bxxxxxx.S07E07.sv.srt
βββ Bxxxxxx.S07E08.da.srt
βββ Bxxxxxx.S07E08.en.srt
βββ Bxxxxxx.S07E08.fi.srt
βββ Bxxxxxx.S07E08.mkv
βββ Bxxxxxx.S07E08.no.srt
βββ Bxxxxxx.S07E08.sv.srt
βββ Bxxxxxx.S07E09.da.srt
βββ Bxxxxxx.S07E09.en.srt
βββ Bxxxxxx.S07E09.fi.srt
βββ Bxxxxxx.S07E09.mkv
βββ Bxxxxxx.S07E09.no.srt
βββ Bxxxxxx.S07E09.sv.srt
βββ Bxxxxxx.S07E10.da.srt
βββ Bxxxxxx.S07E10.en.srt
βββ Bxxxxxx.S07E10.fi.srt
βββ Bxxxxxx.S07E10.mkv
βββ Bxxxxxx.S07E10.no.srt
βββ Bxxxxxx.S07E10.sv.srt
βββ Bxxxxxx.S07E11.da.srt
βββ Bxxxxxx.S07E11.en.srt
βββ Bxxxxxx.S07E11.fi.srt
βββ Bxxxxxx.S07E11.mkv
βββ Bxxxxxx.S07E11.no.srt
βββ Bxxxxxx.S07E11.sv.srt
βββ Bxxxxxx.S07E12.da.srt
βββ Bxxxxxx.S07E12.en.srt
βββ Bxxxxxx.S07E12.fi.srt
βββ Bxxxxxx.S07E12.mkv
βββ Bxxxxxx.S07E12.no.srt
βββ Bxxxxxx.S07E12.sv.srt
βββ Bxxxxxx.S07.nfo
1 directory, 73 files
-bash-4.2$ file /plex/series/Bxxxxxx\ \[2016\]/Season\ 07/Bxxxxxx.S07E12.mkv
/plex/series/Bxxxxxx [2016]/Season 07/Bxxxxxx.S07E12.mkv: EBML file, creator matroska
-bash-4.2$ cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
-bash-4.2$
Any input is welcome, Iβm all out of ideas here ![]()



