Hi there.
I’ve enabled “update my library automatically”, while “update my library periodically” is disabled. I added a full music album in my /volume1/music folder (on the same NAS) and I expected Plex to update itself - which did not happen.
Can you please help?
I’m running version 1.10.0.4523
Attached the log files zip.
Thanks,
Flavio.
Music libraries are the toughest thing to add as ‘FULL’. If you throw 20-30,000 items at PMS when running on a little Synology, it will slow down to a crawl and eventually fail.
Jan 05, 2018 22:39:42.632 [0xf0911b40] DEBUG - Completed: [192.168.11.38:54301] 200 GET /photo/:/transcode?width=128&height=128&minSize=1&url=%2Flibrary%2Fmetadata%2F4926%2Fthumb%2F1515175056%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx (11 live) TLS GZIP 343ms 30411 bytes (pipelined: 38)
Jan 05, 2018 22:39:42.661 [0xeb7ffb40] WARN - SLOW QUERY: It took 230.000000 ms to retrieve 48 items.
Jan 05, 2018 22:39:42.666 [0xeb7ffb40] DEBUG - Setting container serialization range to [1122, 1169] (total=1598)
Jan 05, 2018 22:39:42.690 [0xf0911b40] DEBUG - Completed: [192.168.11.38:54297] 200 GET /library/sections/4/all?type=
The solution/ way around the problem.
- Don’t add the top level music folder
- Add one next-level music folder at a time. ( I presume you have them grouped ?)
- After each section folder is added,
Optimize Database
(Hover over Libraries, click the ellipsis, and then click ‘Optimize Database’ - Repeat process until all subfolders added.
Hi Chuck and thanks for your quick reply.
I don’t have any “group folders” - I just have /volume1/music and in there I have artist folders, which in turn contain album folders. To be clear: it’s the exact copy of the iTunes library on my MacBook Pro (I use rsync to “sync” it over from my MBP to my NAS).
Shall I anyway try to “Optimize Database”? Would this solve the issue?
Thanks,
Flavio.
… and the NAS is a DS-713+ - would you rate it as “little Synology”?
F.
Yes, it’s a little Synology. The processor is the dual core Atom D2700 https://www.cpubenchmark.net/cpu.php?cpu=Intel+Atom+D2700+%40+2.13GHz
with a Passmark score of 844. The absolute minimum to run PMS is considered 700. The newer Synology machines are much faster. They also support hardware transcoding of video
If your music library is controlled by iTunes, there is little which can be done except performing “Optimize Database” every 15 minutes as it adds all this media.
If you could arrange your media, by artist similar to:
music/
A/
Artist-name-A/
Album/
B/
you could then add the A
artists. After it completes, Optimize the DB and then add the B
artists, repeating the Optimize/Add process until done.
Once completely loaded, processing will be much faster.
OK - I did following:
Under Settings-Library I enabled “Include music libraries in automatic updates”.
Then I optimized the database, then added a new album to my iTunes. Did “rsync” to have it copied onto my NAS. Nothing happened, Plex just didn’t care.
What do you suggest next? I attached the new log files…
Thanks,
F.
I just realized something. You can run the 64 bit version of PMS on that Synology. It’s not much but it will help performance.
You are on DSM 6.1.4?
If PMS didn’t care, it didn’t see the files.
Let’s use the ‘big hammer’ technique here.
- Open file station
- Highlight all the artist foldres
- Right click and select ‘Properties’
- Look at the Permissions tab
- If you have user
plex
, make sure it’s set for ‘Allow’. If not,Edit
it and give userplex
permission. - Now, before you
Ok
that permissions change; In the lower left corner, Check the box “Apply to this folder, subfolders files” (propagate the change down through everything)
Hi Chuck.
I can’t change permissions on all folders, it looks like this:
But I can do it in the shell via SSH. As of now, permissions and ownership looks like this:
root@DiskStation:/volume1# ls -la | grep music
drwxr-xr-x 828 502 20 36864 Jan 6 00:41 music
Same goes for the artist folders:
drwxr-xr-x 6 502 20 4096 Feb 10 2014 Zero 7
drwxr-xr-x 6 502 20 4096 May 18 2011 Zoot Woman
And the audio files there as well.
I have to add that I manually set the ownership to be “root:root” today when I started setting up Plex. What I notice is that after I run my rsync copy, ownership changes to 502:20 - could this be an issue?
What permissions and ownership does Plex need?
Thanks,
F.
PMS does not care what the ownership is.
PMS does care what the permissions are. Since you have 755 (rwxr-xr-x
) for dirs, if files are 644 (rw-rw-rw
) then it will find them.
I can confirm that all dirs have 755 and all files have 644:
drwxr-xr-x 4 root root 4096 May 18 2011 …
-rw-r–r-- 1 root root 11968629 May 12 2013 01 Rome-Istanbul.mp3
-rw-r–r-- 1 root root 6630454 May 12 2013 02 Todi Fantasy.mp3
-rw-r–r-- 1 root root 7220605 May 12 2013 03 Icaro.mp3
Still, after adding another album, it hasn’t been automatically added to PMS.
F.
I can see why now. You’re not using the right naming convention
In my signature are the guides. The TL;DR of it is:
artist/
Album/
Disc n/ (if multi-disc)
01 - Title.ext
Working example:
[chuck@lizum Supertramp.102]$ ll
total 64
drwxr-xr-x 16 chuck users 4096 May 10 2017 ./
drwxrwxrwx 100 chuck users 4096 Jan 1 13:06 ../
drwxr-xr-x 2 chuck users 4096 Aug 14 19:20 Breakfast in America/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:22 Brother Where You Bound/
drwxr-xr-x 2 chuck users 4096 May 11 2017 Classics Volume 9/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:23 Crime of the Century/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:24 Crisis_ What Crisis_/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:25 Even in the Quietest Moments.._/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:31 _...Famous Last Words..._/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:26 Free as a Bird/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:27 Indelibly Stamped/
drwxr-xr-x 4 chuck users 4096 May 7 2017 Paris/
drwxr-xr-x 2 chuck users 4096 May 11 2017 Slow Motion/
drwxr-xr-x 2 chuck users 4096 May 11 2017 Some Things Never Change/
drwxr-xr-x 2 chuck users 4096 Aug 14 19:30 Supertramp/
drwxr-xr-x 3 chuck users 4096 May 11 2017 The Very Best Of Supertramp/
[chuck@lizum Supertramp.103]$ ll Breakfast\ in\ America/
total 125700
drwxr-xr-x 2 chuck users 4096 Aug 14 19:20 ./
drwxr-xr-x 16 chuck users 4096 May 10 2017 ../
-rw-r--r-- 1 chuck chuck 14547971 Aug 14 19:20 01. Supertramp - Gone Hollywood.mp3
-rw-r--r-- 1 chuck chuck 11809309 Aug 14 19:19 02. Supertramp - The Logical Song.mp3
-rw-r--r-- 1 chuck chuck 15783056 Aug 14 19:20 03. Supertramp - Goodbye Stranger.mp3
-rw-r--r-- 1 chuck chuck 8143811 Aug 14 19:20 04. Supertramp - Breakfast in America.mp3
-rw-r--r-- 1 chuck chuck 11486416 Aug 14 19:20 05. Supertramp - Oh Darling.mp3
-rw-r--r-- 1 chuck chuck 14111199 Aug 14 19:20 06. Supertramp - Take the Long Way Home.mp3
-rw-r--r-- 1 chuck chuck 11760172 Aug 14 19:20 07. Supertramp - Lord Is It Mine.mp3
-rw-r--r-- 1 chuck chuck 12394436 Aug 14 19:20 08. Supertramp - Just Another Nervous Wreck.mp3
-rw-r--r-- 1 chuck chuck 8924324 Aug 14 19:20 09. Supertramp - Casual Conversations.mp3
-rw-r--r-- 1 chuck chuck 19705577 Aug 14 19:20 10. Supertramp - Child of Vision.mp3
-rw-r--r-- 1 chuck users 742 May 11 2017 Breakfast in America.m3u
-rw-r--r-- 1 chuck users 12468 Sep 5 2010 folder.jpg
[chuck@lizum Supertramp.104]$
Hi Chuck - I see.
Well, in this case I will leave it as it is: the reason is, that iTunes is already organizing everything in its library (on my MBP). So “converting” that library into the structure you mentioned is IMO too much work.
I’ll set PSM to just update the library regularly, not automatically.
Thanks so far for your excellent support!
F.
Hi Chuck - I have to add that now it is working! Auto-update is working fine, as soon as I add an album to the NAS (from iTunes rsync), Plex starts indexing and adding it! And I didn’t change nothing in the file structure! Can you explain this?
Thanks,
Flavio.
Flavio,
I can’t explain it. iTunes is an eternal mystery to me. I tried to integrate it with PMS and had nothing but trouble. After several hours of beating on it, I gave up. My media isn’t iTunes-centric so of little consequence.
I am glad it’s working for you. Maybe someday , when you figure it out, you can teach me?