AdamBearWA 3 Posted March 27, 2016 Share Posted March 27, 2016 (edited) I added the following to /etc/emby-server.conf EMBY_USER=emby EMBY_GROUP=mediaservers The user emby has the primary group mediaservers and secondary group emby. Permission on the Movies folder and all subfolders are 775 (i.e. mediaservers group has full access). Permissions on all files recursively is 664 (i.e. mediaservers group has rw access). I have even manually re-run the command to make 100% sure. xxxx@NAS:/mnt/raid/Videos$ ls -l drwxrwxr-x 22 xxxx mediaservers 4096 Mar 25 18:33 Movies xxxx@NAS:/mnt/raid/Videos$ ls -l Movies drwxrwxr-x 3 xxxx mediaservers 78 Feb 28 11:27 Aladdin (1992) xxxx@NAS:/mnt/raid/Videos$ ls -l Movies/Aladdin\ \(1992\)/ -rw-rw-r-- 1 xxxx mediaservers 5867786533 Feb 28 11:27 Aladdin.1992.1080p.BluRay.X264-AMIABLE.mkv The odd thing is that I have the same ownership and permissions on my TV shows and it picks up some of the shows, but not others. This makes even less sense as each folder and file has the exact same permissions. I'm out of ideas. Any suggestions on what else to check? Edited March 27, 2016 by AdamN Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 27, 2016 Author Share Posted March 27, 2016 When browsing the GUI to add a folder, it doesn't list any of the subfolders so it's clear that the app can't see them. In the TV Shows, it shows the subfolders for some folders and not others. THe ones it can see it adds to the library without issue. Again, all folders have the exact same ownership, permissions and naming conventions. Unless something has changed from mediabrowser 2, those folders haven't changed names. Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 27, 2016 Author Share Posted March 27, 2016 running "ps -a -G mediaservers" shows me that emby is not running as the correct group. Please let me know how to fix this and it should all work Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 27, 2016 Author Share Posted March 27, 2016 (edited) I realised from /etc/default/emby-server that the user and group need to be enclosed in quotes. I have done this and restarted the service. I have verified that the mono server.exe is running as emby:mediaservers. However, I'm still unable to add any movies to my library edit: chmod 777 -R * doesn't fix it either :\ Edited March 27, 2016 by AdamN Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 28, 2016 Author Share Posted March 28, 2016 I'm beginning to feel extremely silly here... Even if I carefully craft a single movie file into a specially crafted folder as per the wiki specification with full rwx permissions for all, Emby can't see the contents of the folder. Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 28, 2016 Author Share Posted March 28, 2016 Clean debug log attached. I started the service. Added the library (which refreshed metadata on the folder) and then copied the log file. server-63594760497.txt Link to comment Share on other sites More sharing options...
NomadCF 15 Posted March 28, 2016 Share Posted March 28, 2016 (edited) Any reason why you don't just add the user "emby" to the group "mediaservers" on the system ? Example id emby uid=110(emby) gid=118(emby) groups=118(emby),100(users) Or so it will appear on your systems like id emby uid=110(emby) gid=118(emby) groups=118(emby),100(mediaservers) Edited March 28, 2016 by NomadCF Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 28, 2016 Author Share Posted March 28, 2016 (edited) Emby is in the group mediaservers. That's why this doesn't make sense. Edited March 28, 2016 by AdamN Link to comment Share on other sites More sharing options...
NomadCF 15 Posted March 28, 2016 Share Posted March 28, 2016 Any chance you have selinux enabled ? Can you post the output of the id command run against the emby user. id emby Have you tested swiching ("su") into the emby account and checking access to all the movie, tv shows AND emby files. You might want to test putting the emby account back so that it's primary group is emby and one of it's secondary groups is "mediaservers". I'mleaning toward and issue with emby trying to "su" into the emby account. Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 30, 2016 Author Share Posted March 30, 2016 (edited) selinux isn't enabled output of 'id emby': uid=109(emby) gid=1001(mediaservers) groups=1001(mediaservers),121(emby) I tried putting the primary group as emby and secondary group as mediaservers. Still the same behaviour. If I su into emby (I had to enable login and set a password first), then the account can browse to and see all the folders and files. edit: I can also access all emby files e.g. /var/lib/emby-server/ Edited March 30, 2016 by AdamN Link to comment Share on other sites More sharing options...
NomadCF 15 Posted March 31, 2016 Share Posted March 31, 2016 selinux isn't enabled output of 'id emby': uid=109(emby) gid=1001(mediaservers) groups=1001(mediaservers),121(emby) I tried putting the primary group as emby and secondary group as mediaservers. Still the same behaviour. If I su into emby (I had to enable login and set a password first), then the account can browse to and see all the folders and files. edit: I can also access all emby files e.g. /var/lib/emby-server/ After the changes to the groups did you try restarting emby ? (Just on lurk) Any chance the paths have changed ? An example would be you added movies as (lower case v in videos) /mnt/raid/videos but the path is now (upper V in videos) /mnt/raid/Videos Same thing with some of the shows, Could the names or paths have changed (aka the case of file names or their paths) ? Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted March 31, 2016 Author Share Posted March 31, 2016 I have restarted, stopped and started the service many times. The paths and folder names haven't changed in many years e.g. capital V in Videos. Regardless, I am selecting the folder via the GUI and simultaneously 'su emby' browsing to the folder. Via the terminal I can see all the subfolders and files. Via the GUI, it can not. Link to comment Share on other sites More sharing options...
georgeberz 0 Posted April 22, 2016 Share Posted April 22, 2016 I have restarted, stopped and started the service many times. The paths and folder names haven't changed in many years e.g. capital V in Videos. Regardless, I am selecting the folder via the GUI and simultaneously 'su emby' browsing to the folder. Via the terminal I can see all the subfolders and files. Via the GUI, it can not. THis is kinda the same problem I am having, what was the solution? Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted April 22, 2016 Author Share Posted April 22, 2016 My solution at the moment is not to use emby for the last year or 2. Plex works using the same accounts and folders without issue. Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted April 26, 2016 Author Share Posted April 26, 2016 Just to clarify, that is I run plex with the "emby" username and "mediaservers" group and the same folders and it detects all media. Is there a way to completely clean out all emby and previous mediabrowser settings, files etc? I'd like to try a completely fresh install. Link to comment Share on other sites More sharing options...
Luke 37335 Posted April 27, 2016 Share Posted April 27, 2016 Is the path a locally mounted share or no? One of the issues we have right now is that the mono runtime does not support SMB at the moment. So if you have a network path that Emby Server cannot see, you may need to mount it locally within the OS and then Emby Server will be able to see it. We're looking into ways of working around this. Link to comment Share on other sites More sharing options...
AdamBearWA 3 Posted April 28, 2016 Author Share Posted April 28, 2016 It's all local media :/ 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