EAE timeout is back!

Hello, A while ago I had issues with the good old EAE timeout, however, that was fixed by some serious help from ChuckPa and it was an inotify table problem, he helped me increase the maximum folders on the server and it fixed everything. However, the problem has returned and its always when trying to transcode AC3_EAE. I have done the delete easyaudio encoder folder and restart the server which fixes the problem for a time then it returns, checking the logs I don’t get any inotify table errors so I’m pretty sure it’s not that this time. I’m using a Synology DS3617xs, and the plex install is a package install, I’m not using docker to install it. All permissions are set to read/write as far as I can tell. I have seen people say about doing chmod 777 but I’m not really sure how or if that is possible in the Synology operating system.

I have just done a “Delete Easyaudio encoder” and restart my Nas drive to get it up and running again so don’t have any logs with the EAE errors at the moment.

Is anyone able to shed some light on why i might be getting these errors again?

Side notes:-

  1. I have run the script provided by ChuckPa again to increase the inotify table
  2. DSM is the latest version (6.2.4-25556)
  3. Plex is the latest version (1.23.5.4841-6000(
  4. I have not seen any inotify errors in the console
  5. Deleting Easy Audio Encoder and restarting DSM seems to fix the issue for a while
  6. I have also just changed the transcode directory in plex to a different folder on the same volume
    “Transcode Folder 1” to see if that helps.

Thanks in advance

Russ.

Please restart PMS

Let it sit 100% idle for 3 minutes while the Notify table loads (keeps logs really clean).

Then please recreate and attach the logs.

Plex Media Server Logs_2021-07-23_01-07-33.zip (2.7 MB)

Hello Chuck, Thanks for getting back to me. Logs are attached at your request.

Thank you

Thank you for the logs.

You didn’t add enough directories / miscounted

Been adding some media? :wink:

Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] DEBUG - [Notify] Now watching "/volume2/video/TV Series/Three Girls/Season 1"
Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] DEBUG - [Notify] Now watching "/volume2/video/TV Series/Britannia"
Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] DEBUG - [Notify] Now watching "/volume2/video/TV Series/Britannia/Season 1"
Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] DEBUG - [Notify] Now watching "/volume2/video/TV Series/The Terror"
Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/The Terror/Season 1" (28: No space left on device)
Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/The Terror/Season 2" (28: No space left on device)
Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Altered Carbon" (28: No space left on device)
Jul 23, 2021 01:04:30.289 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Altered Carbon/Season 1" (28: No space left on device)
Jul 23, 2021 01:04:30.290 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Altered Carbon/Season 2" (28: No space left on device)
Jul 23, 2021 01:04:30.290 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Freakish" (28: No space left on device)
Jul 23, 2021 01:04:30.290 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Freakish/Season 1" (28: No space left on device)
Jul 23, 2021 01:04:30.290 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Freakish/Season 2" (28: No space left on device)
Jul 23, 2021 01:04:30.290 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Beyond" (28: No space left on device)
Jul 23, 2021 01:04:30.290 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Beyond/Season 1" (28: No space left on device)
Jul 23, 2021 01:04:30.291 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Beyond/Season 2" (28: No space left on device)
Jul 23, 2021 01:04:30.291 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Stargate Origins" (28: No space left on device)
Jul 23, 2021 01:04:30.291 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Stargate Origins/Season 1" (28: No space left on device)
Jul 23, 2021 01:04:30.291 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/The Alienist" (28: No space left on device)
Jul 23, 2021 01:04:30.291 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/The Alienist/Season 1" (28: No space left on device)
Jul 23, 2021 01:04:30.291 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/The Alienist/Season 2" (28: No space left on device)
Jul 23, 2021 01:04:30.292 [0x7fb1a3df9b38] ERROR - [Notify] Failed to add watch for "/volume2/video/TV Series/Seven Seconds" (28: No space left on device)

So does that mean the inotify table is full again? i re ran the script we used the last time as you mentioned that when DSM 7.0 released i would need to, so i ran it incase a DSM update had caused it. the script i used was:-

"# Remove any previous s2s_watches_max entries (avoid clutter)
sed -i ‘s/^s2s_watches_max=.$//’ /etc/synoinfo.conf
sed -i 's/^s2s_watches_max=.
$//’ /etc.defaults/synoinfo.conf

This is an example only. Use your actual result below to add the new value

echo ‘s2s_watches_max=77004’ >> /etc/synoinfo.conf
echo ‘s2s_watches_max=77004’ >> /etc.defaults/synoinfo.conf"

does that mean i have exceeded 77004?

77004 is not a multiple of 32768. You forgot to do the math which accompanies the How-To.

77004 rounded up to the next integral multiple is 98304.

Please use 98304, Run the task, then restart Plex.

After it runs for another 3-4 minutes (notice how close the end of the logs were to the end of loading?) then download them.

By using 98304, you’ll have some room to grow before you need increase it again.

If you have 8GB in the machine, you can just set it up to 131072 now

yea I messed the math up the first time, and included a decimal as well, which made you lol at me as it would have played havoc with the server.
“May I ask where 77004 came from?
Did I miss something?”

but after our discussion you also said " then 77004 would not be an issue.
However, the fraction 77004.8 you showed above would probably drive it crazy and it sounds like it did! lol"

haha, right so if i change the value to 131072 now and then run the script and then restart and capture the logs again?

Also quickly the total files and folders plex watches are below:-
video - Folders = 10787 / Files = 181017
music - Folders = 1374 / Files = 12557

Total folders = 12,161
Total Files = 193,574

Does this exceed 77004?

whoa!!!

Total folders in video = 12161,
Total folders in music = 1374,
Total folders in photos = ?? (are you using any?)

Ignore the file count, only folders (directories) matter

if 12,161 is the true total of all media folders, including photos,

you want a value of 32768. No need to go higher and waste the memory.

We are setting the “Maximum which can be watched” value. (table size)

Plex does not watch photo’s These are the file counts in my “video” and “music” volumes plex watches, if the value should be “32768” which is lower than “77004” why is it causing inotify errors?

New logs attached.
Plex Media Server Logs_2021-07-23_01-49-49.zip (3.0 MB)

that’s a darn good question.

May I see your task setting (the script part)?
Also, how much memory do you have in the Syno?

I checked those second logs myself and i see its still reporting
“Jul 23, 2021 01:46:06.153 [0x7efca9548b38] ERROR - [Notify] Failed to add watch for “/volume2/video/UHD Content/4K Tv Shows/Stranger Things/Season 1” (28: No space left on device)”

The synology is a DS3617xs which has 16gb RAM.

Task: Increase Linux Notify table for Plex

User defined script :

 # Remove any previous s2s_watches_max entries (avoid clutter)
sed -i 's/^s2s_watches_max=.*$//' /etc/synoinfo.conf
sed -i 's/^s2s_watches_max=.*$//' /etc.defaults/synoinfo.conf
# This is an example only.   Use your actual result below to add the new value
echo 's2s_watches_max=131072' >> /etc/synoinfo.conf
echo 's2s_watches_max=131072' >> /etc.defaults/synoinfo.conf

Thanks Chuck.

haha. I missed it too. :man_facepalming:

Restart DSM :smiley:

The restarts makes those values to into effect.

Ok, will restart now, however the value of 77004 is still higher than 32768 and i have restarted the system since running the original script you gave me to apply the value of 77004?

Brb - restart

77004 isn’t a mulitple. I have seen things wonky when not a multiple (Linux kernel memory page alignments)

You can be as low as 32768
or
65536,
98304,
131072,
etc
etc
262144 – if you have have 256K folders :wink:

Plex Media Server Logs_2021-07-23_02-08-57.zip (2.7 MB)

Seems to have fixed the issue again, I watched the console running on boot up and didn’t see “No space left on device” this time when it seemed to finish.

two questions then, Firstly why did it work as 77004 for like 10 months? and secondly why does it only show tv shows in those logs and not movies for the notify table?

Thanks mate

  1. Why did it work using the awkward value? LUCK.

  2. Why does it show for TV and not movies ?

Answer:

  • You defined your movies section before your TV section, right?
  • All your movies load without issue. Look at the log.

( I don’t ever remember Plex sorting directory read results in Notify – but possible)

All the tv shows load without issue again now don’t they? but it shows in the log :-
"Jul 23, 2021 01:46:05.066 [0x7efca9548b38] DEBUG - [Notify] Now watching “/volume2/video/Documentaries Tv Shows/Ancient Impossible (2015)/Season 1”

Just wondered why it didn’t show movies in this way when you restard PMS?
When you say “definded” you mean added the movies folder to plex before tv shows? if so i have no clue it was many years ago haha.

Thank Chuck.

Yes, defined = created.

Regarding memory – think you need to do like I do…

  1. Remove head from shoulders
  2. Toss into washing machine
  3. Add extra detergent
  4. Wash and then rinse TWICE
  5. Tumble dry in the dryer – low heat

:rofl: