Jump to content

Library scan, movies empty


grenadecx

Recommended Posts

grenadecx

Hi there,

 

So I'm trying to transition from kodi shared mysql setup to emby instead. I added my TV shows library and my Movie library.
TV Show library seems to scan just fine and add all the shows, but when it comes to Movies it's all empty.

I tried checking the log file. but it doesn't seem to output any errors. I double checked permissions but there's no difference in permissions between my tv shows folder and my movies folder. I checked the wiki if I needed to do any kind of change on my naming the files, but it doesn't seem to change anything.


Example from the log when I press to scan the folder:

2020-03-29 18:21:03.636 Info HttpServer: HTTP POST http://192.168.60.100:8096/emby/Items/f137a2dd21bbc1b99aa5c0f6bf02a805/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 18:21:03.637 Info HttpServer: HTTP Response 204 to 192.168.60.131. Time: 2ms. http://192.168.60.100:8096/emby/Items/f137a2dd21bbc1b99aa5c0f6bf02a805/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false

Example of one of the movies in the library:

/mnt/raid/Movies/Alita Battle Angel (2019)/Alita Battle Angel (2019).mkv

Permissions:

20      drwxr-xr-x   143 grenadecx grenadecx 20480       Jan 26  19:06  Movies
4       drwxr-xr-x   2   grenadecx grenadecx 4096        Mar 29  17:25  Alita Battle Angel (2019)
4404924 -rwxr-xr-x   1   grenadecx grenadecx 4510636058  Aug 23  2019   'Alita Battle Angel (2019).mkv'

Emby is running on Ubuntu 18.04 under version 4.4.0.40.
I've attached a few screenshots of the library configuration.

If any kind soul could point me in the right direction that would be much appreciated.

post-615382-0-40598400-1585498958_thumb.png

post-615382-0-93999300-1585498977_thumb.png

post-615382-0-76748500-1585499561_thumb.png

Link to comment
Share on other sites

grenadecx

Alright, so changing the owner to emby and the group to users make emby-server scanning those files work.

But what's the difference between movie and tv show scanning when it comes to permissions? Those files were already marked with read permissions by the "others" group, and keeping my tv shows folder under my other user, grenadecx works just fine, so what's going on here, why isn't readonly the only required permission to scan that folder?

Link to comment
Share on other sites

mastrmind11

that's really bizarre.  the tv permissions are grenadecx:grenadecx with 755 access and they are scanned successfully?

Link to comment
Share on other sites

grenadecx

Yeah that's right. The permissions for the TV shows are exactly the same as for the Movies, 755 with grenadecx as user and group.

TV shows scans just fine, but nothing with Movies. Changing the permissions to emby:users makes it work and or changing emby to run under grenadecx user also works. And I'm fine with the last solution, but I still find it weird that with 755 as permissions, why it wouldn't scan the movie folder. I mean sure, emby needs write permissions for some stuffs, but for just scanning and indexing, readonly seems like it should be the only needed permission for this to work doesn't it?

One Movie permission (not working)

20      drwxr-xr-x   143 grenadecx grenadecx 20480       Jan 26  19:06  Movies
4       drwxr-xr-x   2   grenadecx grenadecx 4096        Mar 29  17:25  Alita Battle Angel (2019)
4404924 -rwxr-xr-x   1   grenadecx grenadecx 4510636058  Aug 23  2019   'Alita Battle Angel (2019).mkv'

On tv show permission (works)

4      drwxr-xr-x 127 grenadecx grenadecx 4096      mar 29  16:34  Series
4      drwxr-xr-x 10  grenadecx grenadecx 4096      okt 16  04:43  Arrow
4      drwxr-xr-x 2   grenadecx grenadecx 4096      jun 19  2013   'Season 1'
373504 -rwxr-xr-x 1   grenadecx grenadecx 382460663 jan  9  2013   'Arrow.S01E01.HDTV.x264.mp4'
Link to comment
Share on other sites

mastrmind11

Yeah weird, that should be working.  The only thing I can think of is possibly a difference in your fstab mount command for each mount point?

Link to comment
Share on other sites

grenadecx

These folders are on the same mounted raid device on the same level folder.

/dev/md0	/mnt/raid	ext4	defaults,errors=remount-ro	0	0
grenadecx@sateda:~$ ls -lsa /mnt/raid/
total 76
 4 drwxr-xr-x  12 grenadecx grenadecx  4096 mar 29 22:17 .
 4 drwxrwxrwx   3 root      root       4096 apr 14  2017 ..
20 drwxr-xr-x 143 grenadecx grenadecx 20480 jan 26 19:06 Movies
 4 drwxr-xr-x 127 grenadecx grenadecx  4096 mar 29 16:34 Series

Anyways, I'm fine with having emby run under my user instead. But I still think it's weird and perhaps more extensive tests needs to be done.

Link to comment
Share on other sites

mastrmind11

yeah i dunno, never run into this before.  glad you got it kinda sorted out.

Link to comment
Share on other sites

cuzz1369

Alright, so changing the owner to emby and the group to users make emby-server scanning those files work.

But what's the difference between movie and tv show scanning when it comes to permissions? Those files were already marked with read permissions by the "others" group, and keeping my tv shows folder under my other user, grenadecx works just fine, so what's going on here, why isn't readonly the only required permission to scan that folder?

You really dont want emby to be the owner of the media folders. Never give emby access to delete media. The second bug in the last year in the latest stable version has people losing their whole libraries. Just an FYI

 

Sent from my SM-G965W using Tapatalk

Link to comment
Share on other sites

grenadecx

You really dont want emby to be the owner of the media folders. Never give emby access to delete media. The second bug in the last year in the latest stable version has people losing their whole libraries. Just an FYI

If that's true it's kinda scary. But I don't know how to solve this without giving it access since it refused to scan with only readonly rights, at least via the "others" access.

Link to comment
Share on other sites

mastrmind11

If that's true it's kinda scary. But I don't know how to solve this without giving it access since it refused to scan with only readonly rights, at least via the "others" access.

That was an old bug, addressed a long time ago, and affected a small fraction of users that were deleting stuff from the root directory from within the emby UI.

 

tbh, you should really have an access hierarchy set up regardless.  Adding accounts to your main group (you) is bad practice for obvious reasons.  It's simple enough to create as new group, add your users like emby and yourself, and just give it r+x.  What you're doing as a workaround is a hack and will eventually bite you in the ass.

Edited by mastrmind11
Link to comment
Share on other sites

grenadecx

tbh, you should really have an access hierarchy set up regardless.  Adding accounts to your main group (you) is bad practice for obvious reasons.  It's simple enough to create as new group, add your users like emby and yourself, and just give it r+x.  What you're doing as a workaround is a hack and will eventually bite you in the ass.

You're right, but. My access was fine. I had my content as readonly for other people then me with 755, it's really not my fault that emby doesn't care about it.

Link to comment
Share on other sites

alucryd

Did you perhaps have local metadata saving (like the nfo and artwork) enabled on one of the libraries and not the others? It seems really weird that one works and not the other, maybe you had some ACL going on? They're usually denoted by an asterisk after the 3 mode bits.

 

I personally have all my library folders as drwxrwsr-x, and am still using the old style users group, to which I added emby. Emby runs as emby:emby, but still save files as the users group thanks to g+s, coupled with a custom 002 umask this makes all files readable to both my users and emby.

Link to comment
Share on other sites

grenadecx

I didn't. Movies and TV Shows were identic to the setup. Anyways, I tried replicating this on another user with similar permissions and I couldn't. So I'll just leave it as it is. I thank you all for the support! I really appreciated the help to get it working.

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