Jump to content

Emby Library network share & Emby refresh ?


Recommended Posts

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.



Link to post
Share on other sites

Can you give an idea of the paths it is with and without the mount? What is it, what should the path be?





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 by tealc59
Link to post
Share on other sites
  • 2 weeks later...

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,

Link to post
Share on other sites

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  :-\

Link to post
Share on other sites

Why can't the Emby dashboard find the share? What happens when you try?





please find below what i can see  (i hope it's not too heavy) :
















Link to post
Share on other sites

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)



Link to post
Share on other sites

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:




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,

Link to post
Share on other sites

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




Link to post
Share on other sites
This topic is now closed to further replies.
  • Create New...