Hello all. I apologize in advance if this is long and sound nuts.
I have just about lost my mind as I have spent last 5 days on Google and these forums trying desperately to get Emby to work. (by the way I have seen the software work on a friend at work and was blown away so I immediately signed up for premiere account. So I know it is possible and will be great once I get it going. Only difference is I want to use Linux and not windows like my friend. Major Kudos to the developer for this awesome software.)
To my problem, as stated in title, I'm running Emby on a (at first) headless Ubuntu server 18.04.3 and now due to difficulties I have installed the LXDE desktop environment to help trouble shoot. The install and Emby setup went fine and appears to be working. I can go to a Windows Host and access the Emby control panel and default user screen.
The setup I want Emby on this Ubuntu Server ( 4GBs RAM, 250GB SSD) to be able to access and show my library that is going to be hosted (for now) on a Synology NAS (DS713+ 4TBs with latest updates). So far I have only uploaded about 3 movie MKV files to the share on the Synology. This share is "Videos". I was able to add it as a library in the EMby control panel and set up.
I believe the issue has to do with permissions and access to the Synology share. (I also tried setting up a temp share on a windows client as well and cannot get Emby to scan that library either, so I am double convinced it is something I am doing wrong on the Linux side of things. Which can be seen in the attached Embylog.txt)
On the Synology I have shared the Videos folder and given just about everyone read/write access to it, including an account I created called "emby" with NO password. It is not locked down and access should be wide open.
I believe I need to mount this shared folder on the Ubuntu server so the emby account/service running there can access the folder and scan library.
I am able to successfully mount the Synology Share folder "Videos" to either the / directory or within my users /home directory. BUT it seems that "ROOT" is always the owner of the mounted directory (both user and group). I cannot seem to find a way to change this? Also when I tried mounting it in the "/home" directory it says emby is owner and emby group, but still no access when I try to read/scan the library from Emby control panel.
For example for the Home Mount I did:
sudo mount -t cifs -0 username=emby,password=,uid=999,gid=999 //10.76.1.79/Videos ~/mnt/share
Which does mount the directory of the Synology share and allows me to browse it. But when I try scanning my this library from Emby control panel it fails. (the log txt shows //JAYNAS which is the same as IP of 10.76.1.79)
Here is another example I tried testing a mount to windows share:
sudo mount.cifs //10.76.1.16/Video /windows-share -o user=emby
This too worked and from linux side I can browse the share, but Emby server cannot scan library. (Here I do see owner as root and group as root so that is probably why, but I don't know how to fix this as "chown" fails on a mount and will not change permissions.)
So if you have read this far:
Is there any guide or install help that explains when running Emby from a Linux server how to get it to read a library from another Device (like NAS) or computer? Does it need to be a permanent mount in "/etc/fstab" and if so what account or permissions need to be assigned? Is this something specific to Synology Shares? (I dont think so as my Windows efforts have failed as well.)
I'm going nuts as I feel there HAS to be a way to do this on Linux and it is probably simple, and I'm missing it. But the mounting of shares and permissions is killing me. ( I do not want to run this on Windows. Seems like there is a lot of windows help online and would be easier, but no. I love Linux and Open source too much and don't wish to go back unless there was no other way. I just currently suck at Linux administration obviously.)
Thanks in advance whoever can read all this and possibly help. (Heck if a clear solution is found or commands in Linux that works, I'll go and write up a guide to help the next person here on the forums if allowed.)
Edited by greyhulk1976, 14 August 2019 - 02:17 AM.