12vibes 5 Posted January 6, 2021 Share Posted January 6, 2021 Hi I am trying to setup Emby on Pi 4. Have media on an external NTFS drive. It is mounted at /mnt/3TB. I can see all the directories and files in File Manager. However in Emby I can see the directories and video files but music (Flac) files do not appear. Jpeg also do not appear. Here is a screen shot showing the permission on the /mnt/3TB/Flac directory. Thanks for any help Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 6, 2021 Share Posted January 6, 2021 check the permissions on the entire tree, not just the files. Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 6, 2021 Author Share Posted January 6, 2021 Thanks. But not sure how to do that. Thanks again Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 6, 2021 Author Share Posted January 6, 2021 Hi here is Fstab line which I thought gave emby permission over the drive mounted at /mnt/3TB UID="8858A17A58A16820" /mnt/3TB ntfs defaults,auto,uid=emby,gid=users,rw,nofail,unmask=000,noatime 0 0 Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 6, 2021 Share Posted January 6, 2021 4 hours ago, 12vibes said: Thanks. But not sure how to do that. Thanks again just start at the root of the mount and ls -l like you did for the files. do it for each directory. Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 8, 2021 Author Share Posted January 8, 2021 Thanks will do that John Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 8, 2021 Author Share Posted January 8, 2021 Here is root of mnt/3tb pi@raspberrypi:/mnt/3TB $ ls -l total 196 drwxrwxrwx 1 emby users 0 Nov 21 15:55 '$RECYCLE.BIN' drwxrwxrwx 1 emby users 163840 Nov 21 19:15 Flac drwxrwxrwx 1 emby users 4096 Nov 24 14:33 Pictures drwxrwxrwx 1 emby users 0 Nov 21 10:18 'System Volume Information' drwxrwxrwx 1 emby users 32768 Nov 21 15:51 'TV after Sept 2017' pi@raspberrypi:/mnt/3TB $ Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 8, 2021 Author Share Posted January 8, 2021 Here is Pictures pi@raspberrypi:/mnt/3TB/Pictures $ ls -l total 120 drwxrwxrwx 1 emby users 8192 Nov 24 10:47 '1998 Old Post Office' drwxrwxrwx 1 emby users 0 Nov 24 10:47 '1999 Eclipse' drwxrwxrwx 1 emby users 4096 Nov 24 10:48 Misc drwxrwxrwx 1 emby users 0 May 13 2020 'New Folder' drwxrwxrwx 1 emby users 0 Nov 24 10:48 'Pictures 2000' drwxrwxrwx 1 emby users 4096 Nov 24 10:48 'Pictures 2001' drwxrwxrwx 1 emby users 4096 Nov 24 10:49 'Pictures 2002' drwxrwxrwx 1 emby users 4096 Nov 24 10:50 'Pictures 2003' drwxrwxrwx 1 emby users 4096 Nov 24 10:51 'Pictures 2004' drwxrwxrwx 1 emby users 8192 Nov 24 10:52 'Pictures 2005' drwxrwxrwx 1 emby users 8192 Nov 24 10:54 'Pictures 2006' drwxrwxrwx 1 emby users 4096 Nov 24 10:56 'Pictures 2007' drwxrwxrwx 1 emby users 4096 Nov 24 10:58 'Pictures 2008' drwxrwxrwx 1 emby users 4096 Nov 24 11:03 'Pictures 2009' drwxrwxrwx 1 emby users 4096 Nov 24 11:07 'Pictures 2010' drwxrwxrwx 1 emby users 4096 Nov 24 11:10 'Pictures 2011' drwxrwxrwx 1 emby users 4096 Nov 24 11:13 'Pictures 2012' drwxrwxrwx 1 emby users 4096 Nov 24 11:22 'Pictures 2013' drwxrwxrwx 1 emby users 4096 Nov 24 11:25 'Pictures 2014' drwxrwxrwx 1 emby users 8192 Nov 24 11:31 'Pictures 2015' drwxrwxrwx 1 emby users 12288 Nov 24 11:38 'Pictures 2016' drwxrwxrwx 1 emby users 4096 Nov 24 11:42 'Pictures 2017' drwxrwxrwx 1 emby users 4096 Nov 24 11:43 'Pictures 2018' drwxrwxrwx 1 emby users 12288 Nov 24 11:50 'Pictures 2019' drwxrwxrwx 1 emby users 4096 Nov 24 11:50 'Pictures 2020' pi@raspberrypi:/mnt/3TB/Pictures $ Here is one directory Misc pi@raspberrypi:/mnt/3TB/Pictures/Misc $ ls -l total 59964 -rwxrwxrwx 1 emby users 31616366 May 21 2020 Anthony.JPG -rwxrwxrwx 1 emby users 326955 Mar 24 2000 emma1.jpg -rwxrwxrwx 1 emby users 540403 Jul 19 2002 'Family Tree 1.jpg' -rwxrwxrwx 1 emby users 521787 Jul 19 2002 'Family Tree 2.jpg' -rwxrwxrwx 1 emby users 605089 May 22 2000 front_area1.jpg -rwxrwxrwx 1 emby users 634745 May 22 2000 front.jpg -rwxrwxrwx 1 emby users 257735 Mar 24 2000 inprac1.jpg -rwxrwxrwx 1 emby users 296298 Mar 24 2000 inprac2.jpg -rwxrwxrwx 1 emby users 372315 Mar 24 2000 jacque1.jpg -rwxrwxrwx 1 emby users 86930 Sep 15 2000 Maid1b.jpg -rwxrwxrwx 1 emby users 5760054 May 22 2000 me.bmp drwxrwxrwx 1 emby users 4096 Nov 24 10:48 'Misc 2003' -rwxrwxrwx 1 emby users 332823 May 13 2020 SERGEI2.JPG -rwxrwxrwx 1 emby users 53891 Jul 3 2000 Sev_int_1b.jpg -rwxrwxrwx 1 emby users 55920 Jul 3 2000 Sev_int_2b.jpg -rwxrwxrwx 1 emby users 307338 Jul 28 2000 Sev_jacqui_1.jpg -rwxrwxrwx 1 emby users 20747 Jul 3 2000 Sev_JSW_1b.jpg -rwxrwxrwx 1 emby users 262196 Mar 24 2000 sev_jsw_1.jpg -rwxrwxrwx 1 emby users 230215 Mar 24 2000 sev_jwood_1.jpg -rwxrwxrwx 1 emby users 247269 Mar 24 2000 sev_jwood_2.jpg -rwxrwxrwx 1 emby users 35508 Jul 3 2000 Sev_outside_1b.jpg -rwxrwxrwx 1 emby users 50123 Jul 3 2000 Sev_Rob_1b.jpg -rwxrwxrwx 1 emby users 18622917 May 21 2020 steve2a.JPG drwxrwxrwx 1 emby users 0 Nov 24 10:48 'temp movies' -rwxrwxrwx 1 emby users 112404 Feb 8 2002 'Wilkinsons logo_1.gif' pi@raspberrypi:/mnt/3TB/Pictures/Misc $ The permissions seem ok but none of the jpg files are turning up in Emby Thanks John Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 8, 2021 Share Posted January 8, 2021 what user is your emby server running as? also NTFS sucks. try using the uid/gid ids instead of the names in your fstab, then remount with umount -a && mount -a Link to comment Share on other sites More sharing options...
Luke 37273 Posted January 9, 2021 Share Posted January 9, 2021 What folders did you add to each of your emby libraries? Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 9, 2021 Author Share Posted January 9, 2021 Hi Not sure I am logged in as Pi The left hand mixed Content Library is /home/Pi/Tower2016 and this seems to work fine. Except the album image jpeg shows up on the album but when you click on the album each track is missing the image. Centre mixed content is /mnt/3TB. so FLac, Pictures, TV after Sept 2017, are visible. The .mp4 files in the TV folder are visible and work ok. But .flac and .jpeg the folders show up but no files. Video files are visible in these folders Music is /mnt/3TB/Flac again the 542 albums show up but not the individual tracks. Thank you for your help John Link to comment Share on other sites More sharing options...
mark-in-dallas 86 Posted January 9, 2021 Share Posted January 9, 2021 (edited) Okay, lets look to see what groups emby has access to with this command: groups emby If it does not list the users group, then lets add it to the emby account with this command: usermod -a -G users emby. I suspect that the 3TB drive is probably owned by and assigned to the pi group, and if the emby user is not also a member of the pi group it will not be able to access any files or directories within it, so you will want to add the emby user to that group as well, with this command: usermod -a -G pi emby. Edited January 9, 2021 by mark-in-dallas Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 9, 2021 Author Share Posted January 9, 2021 Hi Thanks for your help Groups emby gives the result emby : emby video render Here is screenshot Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 9, 2021 Author Share Posted January 9, 2021 Done a reboot No difference. I dont understand why I can see folders and can play .mp4 files and they are in emby correctly. I can play any content with File Manager in the /mnt/3TB folder. Thanks John Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 9, 2021 Share Posted January 9, 2021 try adding emby to the users group. Link to comment Share on other sites More sharing options...
mark-in-dallas 86 Posted January 9, 2021 Share Posted January 9, 2021 (edited) 49 minutes ago, 12vibes said: Groups emby gives the result emby : emby video render There's your problem. the emby user does not have access to the "users" group, and therefore cannot see or access any files assigned to that group. Run the command I gave you in my last post. usermod -a -G users emby Edited January 9, 2021 by mark-in-dallas Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 9, 2021 Author Share Posted January 9, 2021 If you look at latest screenshot I have done that. No difference. Note on this screen shot from Mixed Content the the TV folder is showing the correct 343 files. Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 9, 2021 Share Posted January 9, 2021 On 1/6/2021 at 9:20 AM, 12vibes said: Hi here is Fstab line which I thought gave emby permission over the drive mounted at /mnt/3TB UID="8858A17A58A16820" /mnt/3TB ntfs defaults,auto,uid=emby,gid=users,rw,nofail,unmask=000,noatime 0 0 unmask=000 isn't a real parameter. you want umask=000 not sure if that's the problem here, it could be, but fstab is definitely not doing what you think it is at the moment. fix that and umount -a && mount -a Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 9, 2021 Author Share Posted January 9, 2021 Hi Thanks. Corrected that but still no difference. John Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 9, 2021 Share Posted January 9, 2021 3 minutes ago, 12vibes said: Hi Thanks. Corrected that but still no difference. John assuming you remounted the drive, try a library scan. Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 9, 2021 Author Share Posted January 9, 2021 Hi Rebooted and done library scan. No difference. Thanks Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 9, 2021 Share Posted January 9, 2021 this is truly bizarre. ok delete your emby log file and rescan, then post the new log file here. Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 9, 2021 Author Share Posted January 9, 2021 Thanks Am in the UK. Time for a beer as we are all in lockdown. Will do this tomorrow. John Link to comment Share on other sites More sharing options...
12vibes 5 Posted January 10, 2021 Author Share Posted January 10, 2021 Hi I couldnt delete the emby logs. permission was refused. I have enabled debugging rescaned libraries and here are the log files. Thanks embyserver.txt embyserver-63745574463.txt embyserver-63745660863.txt embyserver-63745747263.txt embyserver-63745797715.txt embyserver-63745802649.txt embyserver-63745805648.txt embyserver-63745833614.txt ffmpeg-transcode-48aeb599-4e48-413c-a2fe-b77114394df5_1.txt ffmpeg-transcode-ac002536-63ec-4e85-ba09-95a0e2ffe201_1.txt hardware_detection-63745797731.txt hardware_detection-63745802666.txt hardware_detection-63745805664.txt Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted January 10, 2021 Share Posted January 10, 2021 you need to use the sudo rm to delete stuff not owned by the pi user. You should also turn off automatic port mapping if you're not planning to use it because it's spamming your logs with errors. anyway, i can see where you inititated the library scan, and emby sees the folders. at this point I'm at a loss as to why these files are unable to be viewed in emby. 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