Jump to content


Photo

Library scan, movies empty


  • Please log in to reply
16 replies to this topic

#1 grenadecx OFFLINE  

grenadecx

    Member

  • Members
  • 16 posts
  • Local time: 02:16 PM

Posted 29 March 2020 - 12:36 PM

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.

Attached Files



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157008 posts
  • Local time: 08:16 AM

Posted 29 March 2020 - 04:18 PM

Hi, can you compare the permissions to what's in our guide here?

https://emby.media/c...ew-linux-users/



#3 grenadecx OFFLINE  

grenadecx

    Member

  • Members
  • 16 posts
  • Local time: 02:16 PM

Posted 29 March 2020 - 05:50 PM

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?



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157008 posts
  • Local time: 08:16 AM

Posted 30 March 2020 - 02:25 AM

Hmm. It's not obvious to me but @mastrmind11 may have some tips.



#5 mastrmind11 ONLINE  

mastrmind11

    Advanced Member

  • Members
  • 3145 posts
  • Local time: 08:16 AM
  • LocationLong Island, NY

Posted 30 March 2020 - 09:09 AM

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



#6 grenadecx OFFLINE  

grenadecx

    Member

  • Members
  • 16 posts
  • Local time: 02:16 PM

Posted 30 March 2020 - 09:22 AM

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'


#7 mastrmind11 ONLINE  

mastrmind11

    Advanced Member

  • Members
  • 3145 posts
  • Local time: 08:16 AM
  • LocationLong Island, NY

Posted 30 March 2020 - 01:28 PM

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?



#8 grenadecx OFFLINE  

grenadecx

    Member

  • Members
  • 16 posts
  • Local time: 02:16 PM

Posted 30 March 2020 - 01:34 PM

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.



#9 mastrmind11 ONLINE  

mastrmind11

    Advanced Member

  • Members
  • 3145 posts
  • Local time: 08:16 AM
  • LocationLong Island, NY

Posted 30 March 2020 - 01:49 PM

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



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157008 posts
  • Local time: 08:16 AM

Posted 30 March 2020 - 01:50 PM

Thanks for the info, yea this is a strange one.



#11 cuzz1369 OFFLINE  

cuzz1369

    Advanced Member

  • Members
  • 30 posts
  • Local time: 07:16 AM

Posted 30 March 2020 - 02:29 PM

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

#12 grenadecx OFFLINE  

grenadecx

    Member

  • Members
  • 16 posts
  • Local time: 02:16 PM

Posted 30 March 2020 - 04:29 PM

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.



#13 mastrmind11 ONLINE  

mastrmind11

    Advanced Member

  • Members
  • 3145 posts
  • Local time: 08:16 AM
  • LocationLong Island, NY

Posted 30 March 2020 - 06:06 PM

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, 30 March 2020 - 06:07 PM.


#14 cuzz1369 OFFLINE  

cuzz1369

    Advanced Member

  • Members
  • 30 posts
  • Local time: 07:16 AM

Posted 30 March 2020 - 06:08 PM



That was an old bug, addressed a long time ago


https://emby.media/c...d-all-my-files/

Sent from my SM-G965W using Tapatalk

#15 grenadecx OFFLINE  

grenadecx

    Member

  • Members
  • 16 posts
  • Local time: 02:16 PM

Posted 30 March 2020 - 06:41 PM

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.



#16 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 371 posts
  • Local time: 02:16 PM
  • LocationLille, France

Posted 31 March 2020 - 06:34 AM

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.



#17 grenadecx OFFLINE  

grenadecx

    Member

  • Members
  • 16 posts
  • Local time: 02:16 PM

Posted 31 March 2020 - 07:46 PM

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users