Jump to content

RTM issues


crusher11

Recommended Posts

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

Happy2Play

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

FrostByte
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

Are the folders cifs mounted? Because cifs doesn't really support inotify.

  • Like 1
Link to comment
Share on other sites

FrostByte

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.

 

  • Like 1
  • Agree 1
Link to comment
Share on other sites

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

rbjtech

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 by rbjtech
  • Like 1
Link to comment
Share on other sites

crusher11

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

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

rbjtech
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 by rbjtech
Link to comment
Share on other sites

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

rbjtech
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

rbjtech
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

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

crusher11
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

Happy2Play

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

  • Like 2
Link to comment
Share on other sites

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...