After installing the latest version of PMS on my Synology NAS, I have been experiencing random shutdowns/crashes. I would get one at least once a day. Any idea where I can begin looking to diagnose this issue? ANy other experiences?
First, because you curate your music so well, you ran out of kernel resources
I’d like to fix that first.
This is a two step process. I’ve written it out in a How-To in the FAQ.
The main steps are:
Use File Station to count all the folders in use (grand total)
Do a little math then write that result to the Linux config file.
Restart and let PMS breathe better.
Here’s the How-To. Please don’t hesitate if you have any questions.
Logs showing where it stops:
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] DEBUG - [Notify] Now watching "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Woody Shaw/Jazz For a Rainy Afternoon"
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] DEBUG - [Notify] Now watching "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/World Class Wreckin Crew"
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] DEBUG - [Notify] Now watching "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/World Class Wreckin Crew/80'S && 90'S SLOW JAM && R&&B CLASSICS 4"
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] DEBUG - [Notify] Now watching "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/World Famous Supreme Team"
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] DEBUG - [Notify] Now watching "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/World Famous Supreme Team/Tommy Boy Presents Hip Hop Ess"
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] DEBUG - [Notify] Now watching "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/World's Famous Supreme Team"
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] DEBUG - [Notify] Now watching "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/World's Famous Supreme Team/Old School Jams 4 [Disc 1]"
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Worthy of a Beating" (28: No space left on device)
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Worthy of a Beating/Unknown Album" (28: No space left on device)
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wosp" (28: No space left on device)
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wosp/Power" (28: No space left on device)
Mar 02, 2021 11:10:28.362 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wrecks In Effects" (28: No space left on device)
Mar 02, 2021 11:10:28.363 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wrecks In Effects/Unknown Album" (28: No space left on device)
Mar 02, 2021 11:10:28.363 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wrecks In Effects/Wrecks In Effects" (28: No space left on device)
Mar 02, 2021 11:10:28.363 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wrecks 'n' Effect" (28: No space left on device)
Mar 02, 2021 11:10:28.363 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wrecks 'n' Effect/Wrecks 'N' Effect" (28: No space left on device)
Mar 02, 2021 11:10:28.363 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wreckx N Effect" (28: No space left on device)
Mar 02, 2021 11:10:28.363 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wreckx N Effect/Hard Or Smooth" (28: No space left on device)
Mar 02, 2021 11:10:28.363 [0x7f4a2288f700] ERROR - [Notify] Failed to add watch for "/volume2/Music/Vernon's Collection/Vernon's Collection - U Thru Z/Wreckx N Effect/Wrecks 'N' Effect" (28: No space left on device)```
THe FAQ Starts (a) by adding 32768 to your number you obtain (If I understand this properly). However when you use your example number of 241,012 you omit step (a) and jump straight to step (b) where you divide… Is that an error? Is step (a) actually required? Or you forgot to apply it in your example?
F.A.Q. snippet below;
When done collecting the number of folders in use:
a. Add 32768 to the value
b. Divide by 32768
c. Add 1 to the the Integer result (No fractions here)
e. Multiply by 32768
f. Use this final result. (integer part only)
g. If the number of folders you are using is less than 8192, stop here unless you are about to add a lot more media.
Example: I have 241,012 directories (because I curate a lot of music and photos)
Copy to clipboard
241012 / 32768 = 7.35 -> 7
7 + 1 = 8
8 * 32768 = 262144 (This is the value I use - room to grow)
Hi ChuckPA, I sent you some updated logs 6 days ago on an issue that is still occurring on a course of action that was suggested. Can you review and provide some feedback, thanks…
Ok, so lets go over the process based on the directions previously presented…
Using Windows, I went to the top level folder of each category of media managed by Plex (Movies, Music, TV, Videos, Audiobooks)
From the top level share for each share category, I performed a “properties” on that folder in which windows presented me with information on all sub folders, files, etc… (Note that would include sub folders that may be more then 2 levels deep)
I then took the folder totals from each share category and summed them together I get 44091 (Note… If I do not include the one of the categories (you referenced it when I originally submitted this issue), I have 3525 folders between everything else.
ANyway taking that number and applying your process…
4a) 44091 + 32768 = 76859
4b) Divide 76859 / 32768 = 2.3455
4c) I believe that you meant to say here was to make the fractional portion 1… So that would then give me a result of 3.
4d) 32768 * 3 = 98304
4e) I am assuming here that when you say use the final result (integer part only) you are referring to the result from step (4d) which is 98304. (Since we eliminated any possibility of getting a fraction from the step before that one)
4f) Since my number is more than 8192… (again this is confusing because there is no way to multiply 32768 (from step e. In your directions by any integer greater than 1 and get a number less than 8192… maybe something else is missing)
So my final number is 98304.
From this point is is using the value I calculated (which is much less than your example) to apply to the DSM update.
My Synology NAS has 32GB which is the max memory that can be installed.
So reviewing that please let me know where I went wrong as you indicated that the number I used was huge, which is not possible if I compare it to the hypothetical number from your example.