splitcold 0 Posted December 30, 2017 Share Posted December 30, 2017 (edited) I cant figure this out at all, I really need some simple instructions so emby can view my media. Fresh install of Ubuntu, my username is matt, the other harddrive is called Movies using NTFS I am too stupid to figure this out on my own, and the guides here are like calculus and I know basic 1+2 Thank you if you can help Edited December 30, 2017 by splitcold Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted December 30, 2017 Share Posted December 30, 2017 (edited) I cant figure this out at all, I really need some simple instructions so emby can view my media. Fresh install of Ubuntu, my username is matt, the other harddrive is called Movies using NTFS I am too stupid to figure this out on my own, and the guides here are like calculus and I know basic 1+2 Thank you if you can help If you followed the instructions for installing Emby on Linux, then you're running Emby as user:group emby:emby. You need to grant the mounted folder on your Linux machine read/write access to emby. Do this.. go to the command line on your Linux box and type: ls -l /path/to/Movies and post the results here. My guess is you're share is mounted as matt:matt, in which case the easiest way to get it to work is to add the emby user to the matt group and ensure the matt group has read permission. Post the results and we'll go from there. Edited December 30, 2017 by mastrmind11 Link to comment Share on other sites More sharing options...
splitcold 0 Posted December 30, 2017 Author Share Posted December 30, 2017 Thank you for your help matt@MediaServer:~$ ls -l /media/matt/ Movies/Medials: cannot access 'Movies/Media': No such file or directory/media/matt/:total 8drwxrwxrwx 1 matt matt 8192 Dec 29 19:09 Movies Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted December 31, 2017 Share Posted December 31, 2017 Thank you for your help matt@MediaServer:~$ ls -l /media/matt/ Movies/Media ls: cannot access 'Movies/Media': No such file or directory /media/matt/: total 8 drwxrwxrwx 1 matt matt 8192 Dec 29 19:09 Movies Looks like you have a space after the matt/, which is why it couldn't find the path. Yeah thats why, you need to add emby to the matt group: sudo useradd -G matt emby This'll add emby to matt as a secondary group, which means you'll need to make sure matt group has at least read access to everything (which it will), and write access to everything (which it will). Post back your results. Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 3, 2018 Author Share Posted January 3, 2018 (edited) Sorry was away from the computer for a few days, so I put another fresh install of Ubuntu and this doesn't work. I renamed the drives in windows now data1 and so on because that drive did have a space before movies. matt@mattserver:~$ sudo useradd -G matt emby[sudo] password for matt:useradd: user 'emby' already exists and still cant not get emby to see my media. Edited January 3, 2018 by splitcold Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 3, 2018 Share Posted January 3, 2018 (edited) Sorry was away from the computer for a few days, so I put another fresh install of Ubuntu and this doesn't work. I renamed the drives in windows now data1 and so on because that drive did have a space before movies. I tried: matt@mattserver:~$ ls -l /media/matt/data1/Media/4k movies ls: cannot access '/media/matt/data1/Media/4k': No such file or directory ls: cannot access 'movies': No such file or directory and matt@mattserver:~$ sudo useradd -G matt emby [sudo] password for matt: useradd: user 'emby' already exists and still cant not get emby to see my media. Right firstly: sudo useradd -G matt emby Should be: sudo usermod -aG matt emby Then ls -l /media/matt/data1/Media/4k movies Should be: ls -hlpa "/media/matt/data1/Media/4k movies" For good measure let's also see your mountpoints: lsblk -o name,mountpoint Finally let's see if you are applying any masks in fstab: cat /etc/fstab Edited January 3, 2018 by dcrdev 1 Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 3, 2018 Author Share Posted January 3, 2018 (edited) thanks for your help. matt@mattserver:~$ ls -hlpa "/media/matt/data1/Media/4k movies"total 362Gdrwxrwxrwx 1 matt matt 24K Jan 3 15:01 ./drwxrwxrwx 1 matt matt 4.0K Nov 20 08:32 ../-rwxrwxrwx 2 matt matt 11G Nov 11 17:58 Alien Covenant (2017).mkv theres more media but I dont think you want to see all that matt@mattserver:~$ lsblk -o name,mountpointNAME MOUNTPOINTsdf └─sdf1sdd ├─sdd2 /media/matt/data1└─sdd1sdb └─sdb1 /media/matt/data4sdg └─sdg1sde ├─sde2└─sde1sdc ├─sdc2└─sdc1sda ├─sda2 /├─sda3 [sWAP]└─sda1 /boot/efisdh └─sdh1 matt@mattserver:~$ cat /etc/fstab# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a# device; this may be used with UUID= as a more robust way to name devices# that works even if disks are added and removed. See fstab(5).## <file system> <mount point> <type> <options> <dump> <pass># / was on /dev/sda2 during installationUUID=f60286d4-aaf9-4a07-b799-17711e37fca8 / ext4 errors=remount-ro 0 1# /boot/efi was on /dev/sda1 during installationUUID=91C5-2C28 /boot/efi vfat umask=0077 0 1# swap was on /dev/sda3 during installationUUID=dc02ca67-d6f4-432c-9b8d-7d96a0689201 none swap sw I thought doing the sudo usermod -aG matt emby would solve the problem but when I add a folder /media/matt/data1/Media/4k movies I still get The path could not be found. Please ensure the path is valid and try again. Edited January 3, 2018 by splitcold Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 3, 2018 Share Posted January 3, 2018 Well you didn't even need to add emby to your user group - as the above output says that everyone has read,write,execute. That drive isn't in your fstab... how did you mount the drive in the first place? I'm guessing you're using a desktop environment and it's being automounted in that, right? In which case it'll be handled by gvfs which handles filesystem mounts in a weird way. You need to mount the disk natively and elsewhere, in Ubuntu: sudo apt-get install ntfs-3g sudo mkdir -p /mnt/data1 sudo echo "UUID=$(lsblk -no UUID /dev/sdd2) /media/data1 ntfs-3g permissions,nofail,auto 0 0" >> /etc/fstab sudo reboot sudo chown -R matt:matt /media/data1 sudo chmod -R u+rwX /media/data1 sudo chmod -R g+rwX /media/data1 sudo chmod -R o+rX /media/data1 sudo systemctl restart emby-server Your data will now be mounted under /media/data1 permanently, it will be owned by you and your group and you and your group will have read/execute, everyone else will only have read. 1 Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 3, 2018 Author Share Posted January 3, 2018 Will give this a shot right now, thank you. I just opened the drive the desktop environment that comes with ubuntu. Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 3, 2018 Author Share Posted January 3, 2018 Hey I get matt@mattserver:~$ sudo echo "UUID=$(lsblk -no UUID /dev/sdd2) /media/data1 ntfs-3g permissions,nofail,auto 0 0" >> /etc/fstabbash: /etc/fstab: Permission denied Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 3, 2018 Share Posted January 3, 2018 Sorry Ubuntu quirk - Use this: echo "UUID=$(lsblk -no UUID /dev/sdd2) /media/data1 ntfs-3g permissions,nofail,auto 0 0" | sudo tee --append /etc/fstab 1 Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 3, 2018 Author Share Posted January 3, 2018 (edited) thank you for helping with this, that worked, and rebooted now matt@mattserver:~$ sudo chown -R matt:matt /media/data1chown: cannot access '/media/data1': No such file or directory i changed it from sudo chown -R matt:matt /media/matt/data1 to sudo chown -R matt:matt /media/matt/data1 tried again in emby to add a folder, still cant get it to work Edited January 3, 2018 by splitcold Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 4, 2018 Share Posted January 4, 2018 thank you for helping with this, that worked, and rebooted now matt@mattserver:~$ sudo chown -R matt:matt /media/data1 chown: cannot access '/media/data1': No such file or directory Doh! it's late apologies: #This will probably complain - don't worry about it: sudo umount /media/data1 && sudo rmdir /media/data1 sudo mkdir -p /mnt/data1 sudo sed -i 's/media/mnt/g' /etc/fstab sudo reboot sudo chown -R matt:matt /mnt/data1 sudo chmod -R u+rwX /mnt/data1 sudo chmod -R g+rwX /mnt/data1 sudo chmod -R o+rX /mnt/data1 sudo systemctl restart emby-server Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 4, 2018 Author Share Posted January 4, 2018 How do I test that this is working? I go to emby, add media library, folder add, /media/matt and its just red, tried to put /media/matt/data1/Media/4k movies in there to and it doesnt work. Thanks again Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 4, 2018 Share Posted January 4, 2018 How do I test that this is working? I go to emby, add media library, folder add, /media/matt and its just red, tried to put /media/matt/data1/Media/4k movies in there to and it doesnt work. Thanks again We've changed the mount point to "/mnt/data1" so add that. Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 4, 2018 Author Share Posted January 4, 2018 ran these 3 things again, if you need it matt@mattserver:~$ ls -hlpa "/media/matt/data1/Media/4k movies"total 362Gdrwxrwxrwx 1 matt matt 24K Jan 3 15:01 ./drwxrwxrwx 1 matt matt 4.0K Nov 20 08:32 ../-rwxrwxrwx 2 matt matt 11G Nov 11 17:58 Alien Covenant (2017).mkv matt@mattserver:~$ lsblk -o name,mountpointNAME MOUNTPOINTsdf └─sdf1sdd ├─sdd2 /media/matt/data1└─sdd1sdb └─sdb1sdg └─sdg1sde ├─sde2└─sde1sdc ├─sdc2└─sdc1sda ├─sda2 /├─sda3 [sWAP]└─sda1 /boot/efisdh └─sdh1matt@mattserver:~$ cat /etc/fstab# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a# device; this may be used with UUID= as a more robust way to name devices# that works even if disks are added and removed. See fstab(5).## <file system> <mount point> <type> <options> <dump> <pass># / was on /dev/sda2 during installationUUID=f60286d4-aaf9-4a07-b799-17711e37fca8 / ext4 errors=remount-ro 0 1# /boot/efi was on /dev/sda1 during installationUUID=91C5-2C28 /boot/efi vfat umask=0077 0 1# swap was on /dev/sda3 during installationUUID=dc02ca67-d6f4-432c-9b8d-7d96a0689201 none swap sw 0 0matt@mattserver:~$ Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 4, 2018 Author Share Posted January 4, 2018 (edited) Okay I added /mnt/data1 but there seems to be nothing in there. viewed it in the file browser that comes with ubuntu from, computer to mnt folder, to data1 and its empty Edited January 4, 2018 by splitcold Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 4, 2018 Share Posted January 4, 2018 ran these 3 things again, if you need it matt@mattserver:~$ ls -hlpa "/media/matt/data1/Media/4k movies" total 362G drwxrwxrwx 1 matt matt 24K Jan 3 15:01 ./ drwxrwxrwx 1 matt matt 4.0K Nov 20 08:32 ../ -rwxrwxrwx 2 matt matt 11G Nov 11 17:58 Alien Covenant (2017).mkv matt@mattserver:~$ lsblk -o name,mountpoint NAME MOUNTPOINT sdf └─sdf1 sdd ├─sdd2 /media/matt/data1 └─sdd1 sdb └─sdb1 sdg └─sdg1 sde ├─sde2 └─sde1 sdc ├─sdc2 └─sdc1 sda ├─sda2 / ├─sda3 [sWAP] └─sda1 /boot/efi sdh └─sdh1 matt@mattserver:~$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda2 during installation UUID=f60286d4-aaf9-4a07-b799-17711e37fca8 / ext4 errors=remount-ro 0 1 # /boot/efi was on /dev/sda1 during installation UUID=91C5-2C28 /boot/efi vfat umask=0077 0 1 # swap was on /dev/sda3 during installation UUID=dc02ca67-d6f4-432c-9b8d-7d96a0689201 none swap sw 0 0 matt@mattserver:~$ That's the output now? Nothing's changed, did those command not complete successfully? Can you show me via teamviewer what your doing? Link to comment Share on other sites More sharing options...
splitcold 0 Posted January 4, 2018 Author Share Posted January 4, 2018 Sure if i can figure out how to install it Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 4, 2018 Share Posted January 4, 2018 (edited) Just click this https://download.teamviewer.com/download/linux/teamviewer_amd64.deb Should download, double click the deb file, will open it in Gnome Software, click install. Edited January 4, 2018 by dcrdev Link to comment Share on other sites More sharing options...
dcrdev 251 Posted January 4, 2018 Share Posted January 4, 2018 FYi - I solved this. 1 Link to comment Share on other sites More sharing options...
chudak 23 Posted July 28, 2018 Share Posted July 28, 2018 FYi - I solved this. I have similar issue, see in logs: 2018-07-28 08:23:00.966 Error LibraryMonitor: Error in Directory watcher for: /media/seagatecentral/Public/Videos *** Error Report *** Version: 3.5.1.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.15.0.29 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: Access to the path '/media/seagatecentral/Public/Videos/Test_Video.DD5.1.H265-d3g' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- System.UnauthorizedAccessException No Stack Trace Available InnerException: System.IO.IOException System.IO.IOException: Permission denied Problem: on new dir/movie addition emby server scan does not automatically adds it, but on manual scan it works. Wonder if you can take a look at my info https://pastebin.com/FWQkGrnK Thx in advance Link to comment Share on other sites More sharing options...
dcrdev 251 Posted July 30, 2018 Share Posted July 30, 2018 I have similar issue, see in logs: 2018-07-28 08:23:00.966 Error LibraryMonitor: Error in Directory watcher for: /media/seagatecentral/Public/Videos *** Error Report *** Version: 3.5.1.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.15.0.29 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: Access to the path '/media/seagatecentral/Public/Videos/Test_Video.DD5.1.H265-d3g' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- System.UnauthorizedAccessException No Stack Trace Available InnerException: System.IO.IOException System.IO.IOException: Permission denied Problem: on new dir/movie addition emby server scan does not automatically adds it, but on manual scan it works. Wonder if you can take a look at my info https://pastebin.com/FWQkGrnK Thx in advance On the face of it there doesn't look like there's anything wrong with your permissions - aside from marking all files as executable (which you should never ever do) . That particular log snippet relates to the file watcher - so I'm guessing that's the bit that's not working for you? That won't work as netcore uses inotify to watch for filesystem changes and inotify does not support cifs: https://stackoverflow.com/questions/8124617/getting-file-create-notifications-for-cifs-mount-in-linux Link to comment Share on other sites More sharing options...
chudak 23 Posted July 30, 2018 Share Posted July 30, 2018 On the face of it there doesn't look like there's anything wrong with your permissions - aside from marking all files as executable (which you should never ever do) . That particular log snippet relates to the file watcher - so I'm guessing that's the bit that's not working for you? That won't work as netcore uses inotify to watch for filesystem changes and inotify does not support cifs: https://stackoverflow.com/questions/8124617/getting-file-create-notifications-for-cifs-mount-in-linux Thanks for your answer. What would you suggest to fix it? Link to comment Share on other sites More sharing options...
dcrdev 251 Posted July 30, 2018 Share Posted July 30, 2018 Thanks for your answer. What would you suggest to fix it? There isn't a way to 'fix' it - you'd have to be running local storage. 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