I recently moved my Plex over from macOS to Linux Ubuntu and I was able to get everything moved over metadata wise, videos play and everything seems to be great, except that it doesn’t seem like Plex is adding new content. The scan never seems to complete. I’ve optimized the database, I’ve cleaned the bundles, and so on. I can’t seem to figure out why this part isn’t working?
Thank you!
plex.log (2.1 MB) Hello,
I also noticed that some of my movies have ‘duplicates’ and when I check they have a weird path and I’m not sure why that is either. I don’t know if this is related or not.
May I see the log files please?
Plex Media Server Logs_2019-08-24_02-14-05.zip (2.4 MB)
Here you go! Sorry I thought maybe the first log file I attached would give you what you need!
Thank you for the help!
Your first few log files are very rough (the database is actually invalid).
Do you have a lot of custom metadata you added or are you only interested in bringing over the viewstates (watched status) ?
Primarily the view states, I tested by creating a new folder Plex Media Server and Plex only seemed to pick up 1395 of my 1600 movie files too, which concerned me. I did a count of them in the directory and it was the right amount. But maybe plex just hadn’t picked up all the files yet? I had a feeling it was something with the database. Is my only option to restart? This is working right on macOS just not linux.
It has stopped, at 1395 movies again. My last library had 1624. Which per my ls -1 | wc -l matches.
Plex Media Server Logs_2019-08-24_02-48-12.zip (1.6 MB)
The activity indicator in the upper right has gone away, but if I click the … On the library It says “cancel scan” so I’m not sure which is accurate.
cd to the top of the directory
find . -type f -print | wc -l
this will tell you how many files exist from that point down.
That actually gives me an even higher number:
trever@server:/Volumes/Media 3/Movies$ ls -1 | wc -l
460
trever@server:/Volumes/Media 3/Movies$ find . -type f -print | wc -l
494
trever@server:/Volumes/Media 2/Movies$ ls -1 | wc -l
495
trever@server:/Volumes/Media 2/Movies$ find . -type f -print | wc -l
783
trever@server:/Volumes/Media/Movies$ ls -1 | wc -l
669
trever@server:/Volumes/Media/Movies$ find . -type f -print | wc -l
1084
we can get more elaborate with the find to count exactly how many indexable movie files you have
find . \( -name \*.avi -o -name \*.mp4 -o -name \*.mkv \) -print | wc -l
I used 3 here (avi, mp4, and mkv). You can list as many different media extensions as you need.
The count will match what plex should be able to see.
I used
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
To find all the possible file types. That returned
avi
csv
DS_Store
jpg
m4v
m4vmp4
mkv
mp4
MP4
png
srt
So then I did
trever@server:/Volumes/Media$ find . \( -name \*.MP4 -o -name \*.mp4 -o -name \*.mkv -o -name \*.m4v -o -name \*.avi \) -print | wc -l
1070
Which is still a lot higher
Ok… but that’s what you have, right?
So let’s find out why. Likely causes:
Are you deleting the previous log files? It looks like you are. I’m seeing the other logs but not multiple “Plex Media Server.x.log” files. It really helps me if I can see the entire sequence. Matching won’t fit in 5.2 MB of log file (they are tiny)
For one of the files which you know is missing, Will you please share it’s exact name and structure (directory name & organization ) ?
FWIW I ran the scan again and its been going for about 45m and still hasn’t gone pass 1395 movies.
Uhhh, no I’m pretty sure this directory only has 460 files in it.
I haven’t deleted any log files since we set up the new TEST server. One I know that is missing is
/Volumes/Media 3/Movies/Men in Black International (2019)/Men in Black International (2019).mkv
Attached new log files.
Plex Media Server Logs_2019-08-24_03-37-27.zip (2.5 MB)
if you cd /Volumes/Media 3/Movies
and execute the find from there, you will find all the movies and any secondary media files which may have come along for the ride.
I did both for comparison
trever@server:/Volumes/Media 3/Movies$ find . \( -name \*.MP4 -o -name \*.mp4 -o -name \*.mkv -o -name \*.m4v -o -name \*.avi \) -print | wc -l
483
trever@server:/Volumes/Media 3/Movies$ ls -1 | wc -l
460
I don’t know what your ISP speed is but it looks like it’s working its way through the files.
I have an i7-3740 here as desktop. I know it’s not the fastest tool in the toolshed.
Let me find out how long it takes again. I’ll create a new library