Happy2Play 8356 Posted October 24, 2022 Share Posted October 24, 2022 There are no errors but no RTM activity either. Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 24, 2022 Author Share Posted October 24, 2022 Well, why would that be? Works just fine on the NAS itself. Link to comment Share on other sites More sharing options...
Luke 37253 Posted October 24, 2022 Share Posted October 24, 2022 Yea it looks like INotify is just not firing events for the new files, assuming this is the log file from when you added them. Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 25, 2022 Author Share Posted October 25, 2022 So how do I rectify it? Link to comment Share on other sites More sharing options...
Happy2Play 8356 Posted October 25, 2022 Share Posted October 25, 2022 Not sure but from the logs provided only "Recordings (/volume1/Emby Libraries/TN/Recordings) will be refreshed." has shown RTM activity. Beyond me but can only guess something with the mounted folders on Synology from TrueNas. @FrostByte@cayarsdo you do mounted folder on Synology? Link to comment Share on other sites More sharing options...
FrostByte 5061 Posted October 25, 2022 Share Posted October 25, 2022 4 minutes ago, Happy2Play said: Not sure but from the logs provided only "Recordings (/volume1/Emby Libraries/TN/Recordings) will be refreshed." has shown RTM activity. Beyond me but can only guess something with the mounted folders on Synology from TrueNas. @FrostByte@cayarsdo you do mounted folder on Synology? No, my NAS has 13 drives including the expansion cabinet. Link to comment Share on other sites More sharing options...
roaku 797 Posted October 25, 2022 Share Posted October 25, 2022 Are the folders cifs mounted? Because cifs doesn't really support inotify. 1 Link to comment Share on other sites More sharing options...
FrostByte 5061 Posted October 25, 2022 Share Posted October 25, 2022 Are we sure inotify will even work on a mounted drive. Linux Filesystem Events with inotify | Linux Journal The inotify interface does have limitations—it can't monitor remote, network-mounted filesystems (that is, NFS); it does not report the userid involved in the event; it does not work with /proc or other pseudo-filesystems; and mmap() operations do not trigger it, among other concerns. 1 1 Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 25, 2022 Author Share Posted October 25, 2022 So I have no choice but to manually scan constantly? Link to comment Share on other sites More sharing options...
Luke 37253 Posted October 25, 2022 Share Posted October 25, 2022 Until either INotify supports that or we find another way to do it. Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 26, 2022 Author Share Posted October 26, 2022 Well that sucks. Is there a drawback to setting the scheduled scan task to run more frequently? Link to comment Share on other sites More sharing options...
Carlo 4331 Posted October 26, 2022 Share Posted October 26, 2022 What you need to keep in mind is that iNotify is a Linux only operation that runs locally. 2 Linux machines with NFS can't use iNotify but two Linux machines setup with remote folders can receive iNotify messages. Windows doesn't use iNotify but can trigger windows events that tell applications files have been added or modified. Setup correctly apps running on Windows can get these notifications for CIFS shares to Linux. The opposite is not true. Linux can not send an iNotify message for any Windows mounted shares. With that said notification across systems in most companies is blocked to keep "chatter" down on the network as well as for security purposes. Instead, proper message broker services are used for sharing this type of information and a whole lot more. A common way of doing network notification is using central syslog systems (other systems send logs here). This opens the door for near real time security break watching from many logs, allows custom messages based on log events, etc Broker Services are extremely good for this type of functionality and allow for all kinds of automation, such as allow a SQL client to pull information, use web hooks, respond or initiate API calls to programs, etc. Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 26, 2022 Author Share Posted October 26, 2022 Not sure what you're getting at? Link to comment Share on other sites More sharing options...
rbjtech 4333 Posted October 26, 2022 Share Posted October 26, 2022 (edited) Just use the API to tell emby to scan for the new shows - in post processing / post recording for example. via a simple web request ... http://emby.rbjtech.lan:8096/emby/Library/Refresh?api_key=your_api_key or via curl etc .. curl -X POST "http://emby.rbjtech.lan:8096/emby/Library/Refresh?api_key=your_api_key" -H "accept: */*" Edited October 26, 2022 by rbjtech 1 Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 26, 2022 Author Share Posted October 26, 2022 It seems to handle recording fine, presumably because that's actually triggered by Emby in the first place. But adding media ripped from discs is slow going. Link to comment Share on other sites More sharing options...
roaku 797 Posted October 26, 2022 Share Posted October 26, 2022 3 hours ago, rbjtech said: Just use the API to tell emby to scan for the new shows - in post processing / post recording for example. via a simple web request ... http://emby.rbjtech.lan:8096/emby/Library/Refresh?api_key=your_api_key or via curl etc .. curl -X POST "http://emby.rbjtech.lan:8096/emby/Library/Refresh?api_key=your_api_key" -H "accept: */*" Emby triggers its own scan after moving recordings to the library folder. The issue here is with content being added to library folders externally from Emby. Link to comment Share on other sites More sharing options...
rbjtech 4333 Posted October 26, 2022 Share Posted October 26, 2022 (edited) 5 minutes ago, roaku said: Emby triggers its own scan after moving recordings to the library folder. The issue here is with content being added to library folders externally from Emby. Yep - I'm just suggesting to tell the client that is adding the content to do a library refresh after it has finished adding content. It's the best way to do it - you then get instant access to new content and don't waste time scanning on an unnecessarily aggressive schedule just to pick up new content ... (if Real Time Monitoring does not work ..) Edited October 26, 2022 by rbjtech Link to comment Share on other sites More sharing options...
roaku 797 Posted October 26, 2022 Share Posted October 26, 2022 2 minutes ago, rbjtech said: Yep - I'm just suggesting to tell the client that is adding the content to do a library refresh after it has finished adding content. It's the best way to do it - you then get instant access to new content and don't waste time scanning on an unnecessarily aggressive schedule just to pick up new content ... (if Real Time Monitoring does not work ..) This user doesn't use an external client. They add the content themselves, ripped from disc. Link to comment Share on other sites More sharing options...
rbjtech 4333 Posted October 26, 2022 Share Posted October 26, 2022 18 minutes ago, roaku said: This user doesn't use an external client. They add the content themselves, ripped from disc. Who said external client ? Makemkv etc is a client - they just need to run a script after manually curating the source files or they wait for the next schedule to kick in - their choice. Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 26, 2022 Author Share Posted October 26, 2022 How does that differ in any way from simply manually running a library scan? Link to comment Share on other sites More sharing options...
rbjtech 4333 Posted October 26, 2022 Share Posted October 26, 2022 5 minutes ago, crusher11 said: How does that differ in any way from simply manually running a library scan? If you think logging into emby, navigating to the cog, scrolling down to Scheduled Tasks, finding 'Scan Library' and clicking it - is quicker than double clicking an icon to run a 1 line script on any web browser with access to emby - then you really need to get into the 21st century @crusher11' ... Link to comment Share on other sites More sharing options...
roaku 797 Posted October 26, 2022 Share Posted October 26, 2022 31 minutes ago, rbjtech said: If you think logging into emby, navigating to the cog, scrolling down to Scheduled Tasks, finding 'Scan Library' and clicking it - is quicker than double clicking an icon to run a 1 line script on any web browser with access to emby - then you really need to get into the 21st century @crusher11' ... You can scan trigger a library scan from the home page. Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 26, 2022 Author Share Posted October 26, 2022 47 minutes ago, rbjtech said: If you think logging into emby, navigating to the cog, scrolling down to Scheduled Tasks, finding 'Scan Library' and clicking it - is quicker than double clicking an icon to run a 1 line script on any web browser with access to emby - then you really need to get into the 21st century @crusher11' ... I have a browser open with Emby as a pinned tab at all times, so that cuts down about half the steps. Other than that...what icon? What script? I don't know how any of that works. Link to comment Share on other sites More sharing options...
Happy2Play 8356 Posted October 26, 2022 Share Posted October 26, 2022 It is already provided above ie url with api key or bat/cmd file with curl call. So you can make a browser shortcut to do a library scan if you like. All you have to do is generate your own api key via Settings-API keys 2 Link to comment Share on other sites More sharing options...
crusher11 861 Posted October 26, 2022 Author Share Posted October 26, 2022 Well a bat file with the curl thing doesn't work, it says curl isn't a recognised command. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now