Jump to content

Emby logs for inotify errors?


Go to solution Solved by Q-Droid,

Recommended Posts

Posted (edited)

Here are logs my server, im having problems with emby auto picking up media. 

 

My setup U20 headless embyserver.txt 

Emby/Rclone/Mergersfs/radarrr/sonarr/ombi

Edited by judgey
Posted

would this be it?

 

Quote

2021-01-17 13:48:12.627 Info LibraryMonitor: Stopping directory watching for path /home/judgey/torrents/rtorrent/download
2021-01-17 13:48:12.628 Info LibraryMonitor: Stopping directory watching for path /home/judgey/rclone/gmedia/standup
2021-01-17 13:48:12.629 Info LibraryMonitor: Stopping directory watching for path /home/judgey/rclone/gmedia/xmas
2021-01-17 13:48:12.629 Info LibraryMonitor: Stopping directory watching for path /home/judgey/rclone/gmedia/Kids tv
2021-01-17 13:48:12.629 Info LibraryMonitor: Stopping directory watching for path /home/judgey/rclone/gmedia/Documentrys
2021-01-17 13:48:12.629 Info LibraryMonitor: Stopping directory watching for path /home/judgey/rclone/gmedia/new films
2021-01-17 13:48:12.629 Info LibraryMonitor: Stopping directory watching for path /home/judgey/rclone/gmedia/new kids films
2021-01-17 13:48:12.629 Info LibraryMonitor: Stopping directory watching for path /home/judgey/rclone/gmedia/new tv


 

Posted

Aha, finally!

You have two paths that exceed the limit of inotify watchers, too many subdirectories for the current value. So at least it's trying. The next step is to increase the limit.

 

Quote

 

2021-01-17 12:18:42.629 Error LibraryMonitor: Error in Directory watcher for: /home/judgey/rclone/gmedia/new films
        *** Error Report ***
        Version: 4.5.4.0
        Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
        Operating system: Linux version 4.15.0-132-generic (buildd@lgw01-amd64-036) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #136-Ubuntu SMP Tue Jan 12 14:58:42 UTC 20
        Framework: .NET Core 3.1.8
        OS/Process: x64/x64
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 4
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        System.IO.IOException: System.IO.IOException: The configured user limit (8192) on the number of inotify watches has been reached, or the operating system failed to allocate a required resource.
        Source:
        TargetSite:
        No Stack Trace Available

2021-01-17 12:18:42.629 Error LibraryMonitor: Error in Directory watcher for: /home/judgey/rclone/gmedia/new tv
        *** Error Report ***

 

 

Posted

Thanks mate, how would i do that please if you know of hand

  • Solution
Posted

Check to see what it is now - it should be 8192
cat /proc/sys/fs/inotify/max_user_watches

Update /etc/sysctl.conf to increase the value (add or change the entry):
fs.inotify.max_user_watches=65536

Since the new values have to be in effect for the services before they start the easiest thing to do is reboot and check the value again after reboot.

Keep in mind that the inotify watchers are monitoring directories so the limit would be tied to the number of subdirectories in your trees, not the file count.

 

  • Like 1
Posted (edited)

The value I gave you above is a guess. To find out if it's high enough do this and adjust the max_user_watches if needed.

find /home/judgey/rclone/gmedia -type d | wc -l

And if you expect /home/judgey/torrents/rtorrent/download to also have a high number of subdirectories then add those to the count.

 

 

 

 

Edited by Q-Droid
  • Like 1
Posted

thanks loads mate testing now

Posted

Your a star mate works spot on... your a credit to this community thank u so much!

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...