tealc59 6 Posted September 25, 2017 Posted September 25, 2017 Hello experts, I'm a KODI user, with Emby for KODI addon installed (LibreELEC / KODI 17). I have an external usb disk, which isn't always plugged, plus it's on a remote computer (another room). If this usb disk is plugged on the remote computer, a script mounts it in LibreELEC as a network cifs share (if unplugged, it's unmounted). But, it seems Emby doesn't detect the changes : - it doesn't appear automatically in library sources if i try to add a new folder (seems normal). - if i try to restart Emby (i did a "systemctl restart service.emby.service"), I notice Emby restarts itself, then i see the mountpoint's path created, but without any subfolders from the share. Folders are accessible in LibreELEC after the mount. How can Emby detect changes in mount points ? Thanks for your assistance. Regards,
Angelblue05 4131 Posted September 25, 2017 Posted September 25, 2017 Can you give an idea of the paths it is with and without the mount? What is it, what should the path be? @@Luke
tealc59 6 Posted September 26, 2017 Author Posted September 26, 2017 (edited) Can you give an idea of the paths it is with and without the mount? What is it, what should the path be? @@Luke Hello Angelblue05, I'll try to give maximum details and update. 1. At OS level Remote Computer : - when computer is up, it's shared as "josspc" network share. LibreELEC : - when remote computer above is up, a script mounts it in /media/josspc. Folder creation (chmod 777 just in case) + mount -t cifs "//josspc/JossPC" /media/josspc -o username=xyz,password=xyz,rw This is working as expected. 2. In Emby - when remote computer is off : In LibreELEC /media/josspc does not exist, so nothing is mounted (expected). In Emby only existing folders are shown in Libraries (expected). - if remote computer turns on : In LibreELEC /media/josspc is then mounted as a network share (accessible with subfolders from remote host as expected). In Emby the /media/josspc is detected BUT without any subfolder from the remote host (it doesn't see the network share but only the created folder /media/josspc at OS level) My goal would be Emby detects the network share in /media/josspc when it becomes available/mounted (i'm ok with an Emby restart to find it, if needed). Thanks for your assistance. Best regards, Edited October 10, 2017 by tealc59
tealc59 6 Posted October 10, 2017 Author Posted October 10, 2017 Hello experts , Is someone able to help me ? Or have ideas of what can cause my problem ? I'm still blocked and don't know what to do. Best regards,
Luke 38980 Posted October 10, 2017 Posted October 10, 2017 Have you tried running a library scan to pick up the new changes?
tealc59 6 Posted October 11, 2017 Author Posted October 11, 2017 Have you tried running a library scan to pick up the new changes? Yes i already tried to run library scans
Luke 38980 Posted October 11, 2017 Posted October 11, 2017 Does the emby web app pick up the changes?
tealc59 6 Posted October 11, 2017 Author Posted October 11, 2017 Does the emby web app pick up the changes? In KODI, the share is found because it was added as an uPNP source. But in the Emby for KODI addon nothing is found. In Emby Web Dashboard if a try to add a new folder in a library it can't find the share when it's available (only the created folder but with no subfolder from the share). I also tried to reboot KODI/Emby with remote share always up and mount done in autostart.sh script, no change :-\
Luke 38980 Posted October 11, 2017 Posted October 11, 2017 Why can't the Emby dashboard find the share? What happens when you try?
tealc59 6 Posted October 11, 2017 Author Posted October 11, 2017 Why can't the Emby dashboard find the share? What happens when you try? Thanks, please find below what i can see (i hope it's not too heavy) : Regards,
Luke 38980 Posted October 11, 2017 Posted October 11, 2017 sounds like the server doesn't have permission to that location. the emby server can could help us confirm that. 1
tealc59 6 Posted October 11, 2017 Author Posted October 11, 2017 folder was with 755 permissions (root:root), i'm now trying with 777 but still nothing in Emby Library : what more permissive options could i try ? (and the folders have 755 and are found in Emby, only difference is that this problematic share is Windows with 'Everyone' + 'Administrators' in sharing security area) Regards,
Luke 38980 Posted October 11, 2017 Posted October 11, 2017 If there's a permissions problem then the emby server log can help us determine that. you can learn how to obtain an emby server log here: https://emby.media/community/index.php?/topic/739-how-to-report-a-problem/ thanks !
tealc59 6 Posted October 12, 2017 Author Posted October 12, 2017 If there's a permissions problem then the emby server log can help us determine that. you can learn how to obtain an emby server log here: https://emby.media/community/index.php?/topic/739-how-to-report-a-problem/ thanks ! Hello Luke, Can i send you the server logs ? when searching for terms "josspc", i can only find 2 errors because Emby can't find the share (that exists as CIFS mount point in LibreELEC) : System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/media/josspc/Films'. Info LibraryMonitor: Skipping realtime monitor for /var/media/josspc/Films because the path does not exist i think this is because i created a Movie library with 'forced' share path : Best regards,
Luke 38980 Posted October 12, 2017 Posted October 12, 2017 Directory not found means the server just can't see the path at all so that is likely permissions.
tealc59 6 Posted October 20, 2017 Author Posted October 20, 2017 Directory not found means the server just can't see the path at all so that is likely permissions. Hello Luke, After testing a bit, i suppose it linked to CIFS share (creating new folders on any LibreELEC folder, even with 755 permissions,are correctly displayed in Emby Library paths instantly, that's not the case with the CIFS mount point). I don't know what to do to mount CIFS share in LibreELEC to be visible in Emby :-\ Another option that would be nice would be to be able to "mount" upnp windows shares in Emby Regards,
Recommended Posts