Jump to content

SMB Library Share and Lost Database


Recommended Posts

Posted

I'm trying out Emby on a separate machine from my NAS (faster database access and better CPU for transcoding).  No issues getting the SMB shares to link and read.

One issue I noticed - if the NAS is not available when Emby boots up (like during a power outage where the NAS takes longer to boot), my "/mnt/Movies" will be empty and Emby will clear my library.  Quite an inconvenience, not to mention it web scrapes all the data again once the NAS is re-scanned.  Any way to prevent this from happening, some sort of scan to check the SMB share?  This seems to be an Achilles with Emby not supporting SMB directly within its app.

Posted

Hi, this has nothing to do with direct smb support. It's something we're looking at improving. Thanks for reporting.

Posted

If it was direct SMB support, then Emby could easily check the status of the share (meaning actual connection availability) and could disable the library update/deletion when no connection was detected.

Right now Emby just sees an empty /mnt/Movies folder and blindly thinks I've deleted all the files.  But it can still be handled.  One fairly easy solution (for linux anyway) would be an option on the folder to say "it's a network share".  On library update Emby could perform a "mount -t cifs" and compare the mounted folders to the ones selected.

I'll have to continue running Emby directly on my NAS now as without a check I'll be in an endless library delete/add situation.

mastrmind11
Posted

there's a FR for this from like 2 yeas ago.  I thought it had been resolved by now.  Doesn't seem like a hard thing to fix.

Posted
3 hours ago, mediaGuy said:

If it was direct SMB support, then Emby could easily check the status of the share (meaning actual connection availability) and could disable the library update/deletion when no connection was detected.

Right now Emby just sees an empty /mnt/Movies folder and blindly thinks I've deleted all the files.  But it can still be handled.  One fairly easy solution (for linux anyway) would be an option on the folder to say "it's a network share".  On library update Emby could perform a "mount -t cifs" and compare the mounted folders to the ones selected.

I'll have to continue running Emby directly on my NAS now as without a check I'll be in an endless library delete/add situation.

We can still do those same kind of checks either way, so no, not related to that.

Posted

Easier yet, just have the checkbox (in library folder setup) for network share and if the folder is completely empty during scan, don't scan it (don't delete).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...