iNotify doesn't appear to be working in my DS1819+

Currently reading
iNotify doesn't appear to be working in my DS1819+

I'm running an Emby server from my NAS, and the real-time monitoring of my media libraries isn't working; it doesn't pick up when I add or remove files and I have to manually run a scan from the Emby app.


It doesn't appear to be an Emby-specific issue, as iNotify doesn't seem to notice that I've made the changes and therefore Emby is never alerted. Someone on the Emby forum had me run inotifywait -rm on the folder my media is stored in, and when I add or remove files while I can see some changes to the output, there's nothing specific to a file. Just lots of opening and closing folders.
 
From what's been said so far, what I see could be the issue is this...

If Emby uses inotifywait -m in the same way as this and pipes the output into a while read statement where it the does something for notified files then there will be a problem if the inotifywait output does not escape of quote the path text and file text.... when it encounters spaces in the path.

The reason being that read A B C is looking for three parts that are space delimited. With paths that have no spaces then A is the path, B the action, and the rest of the string will be C. But with one space in the path then A will be the first part of the path, B the second part of the path, and the rest of the string is C (the action and file).

So the question is: if Emby relies on this output does it process it in a way that allows for spaces in paths?
 
Upvote 0
Actually come to think of it, my share used to be called "Emby", but I had to change it after Emby decided to move its program files into a share called "Emby" and lock me out of it, with no warning. Which was a massive pain in the ass.
 
Upvote 0
Does Emby only allow for one library location? One shared folder? If you can add a second library location then that could be used to test this theory.

Is there any Emby user/group? If yes then I assume they have been assigned the necessary access to 'Emby Library'.

My 2p until after today's stage of La Vuelta is over :)
 
Upvote 0
Last edited:
Manual scanning picks up new files, it's only the inotify thing that doesn't work. So permissions should be good.

I can try a dummy library I guess....
-- post merged: --

Yep, a dummy library works.
 
Upvote 0
Ok so what's the plan?

Validate that the folder ownership and permissions match between the current library folder and the test ones? Continue testing the dummy folders by putting in more items? Use varying file names and potentially problematic characters in the names? Just migrate to a new library folder that has been shown to be working?
 
Upvote 0
Is there an easy way to check the permissions match?

The only other thing I can think of is Emby has all its program files and such in /volume1/Emby/, and I'm storing my media in /volume1/Emby Libraries/, whereas when I tried adding media to /volume1/Dummy Library/ there was no folder called /volume1/Dummy/ and that might make a difference?
 
Upvote 0
Control Panel -> Shared Folder
File Station ... right-click on the Emby folder and check permissions.
SSH onto the command line and got to /volume1

I've never used Emby, never even looked up what the interface is like, so I'm flying blind on this using only ideas for what I'd do to check out why something may not work.

It could be that Emby has retained some vestiges of when you used Emby as the library and this is causing issues. Then it would suggest using a completely new folder for the library instead of renaming the one before ... maybe Emby links to the folder and initially uses the folder name for the link name? Who knows. Not me :)
 
Upvote 0
I know how to look up permissions, I was just wondering if there was an easy way to look at both, side by side, and compare to see minor discrepancies.

As it turns out, I'm the owner of all except one of the folders under /volume1/Emby Libraries/, with the exception belonging to Emby. iNotify works in this folder. So I changed the owner of the other subfolders to Emby, and it seems to be working thus far.
 
Upvote 0
I found this page on setting up permissions for Emby library...

[Links to Emby support/forum work, but that link you did early in the thread is blocked for me too]
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I think I'm trying to ask how is the Drive desktop agent 'safe'. I know how VPN works and why to use it. I...
Replies
8
Views
885
There is no problem seeing photo thumbnails. There is a issue to see thumbnails in android browser dialog...
Replies
3
Views
610
Removing one of the SIMM-modules and trying again and the percentage-counter actually works. With two 16GB...
Replies
1
Views
1,007
you know, I can use some dutch words as regular guest of Hart van Breda or Texel dune pubs, ofc after 10pm
Replies
17
Views
3,091

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top