Jump to content

Library deleted when network shares failed to mount


Recommended Posts

Posted

Hi,

Last night, my network and server equipment was unexpectedly power cycled, causing my media server to load up before my NAS was done booting, which meant that my network shares did not mount automatically.  Since Emby (via a a docker managed by Unraid) came up before my Synology NAS and network shares, it appears to have dropped all metadata for the entire library, even upon remounting the shares and restarting Emby.  The network shares were unmounted for approximately 24 hours before I realized, and manually fixed them.

I have an extensive media library, and it's going to take a very long time to download all of the meta data again, not to mention the manual work of going through and correcting anything I dislike. Is there any way to avoid losing all my of library information and metadata if this happens in the future?

I run a Plex server on the same device (force of habit, I am generally transitioned to Emby for personal use), and upon restarting Plex that server was able to pick the library up again with no issue. If I can make Emby act like this for any future issues, that would be great.

Thanks in advance.

Posted

Hi there, can you please attach the emby server log from when this happened? Thanks.

mastrmind11
Posted

this scenario has happened to me in the past, but nothing was actually physically deleted.  are you sure files were removed?  you likely just have to run a library scan manually once your nas drives are mounted.

Posted

Hi, 

Thanks for the response. Please find the log attached. As you can see, it removed the media during the scan after starting up, since /mnt was empty after Unraid failed to mount the network shares from my still rebooting Synology NAS. 

Please let me know if there are any options I can set to avoid this happening in the future. It feels like this must be a configuration error on my part somehow. 

Thanks. 

 

embyserver-63757324809.txt

mastrmind11
Posted
12 hours ago, Valyth said:

Hi, 

Thanks for the response. Please find the log attached. As you can see, it removed the media during the scan after starting up, since /mnt was empty after Unraid failed to mount the network shares from my still rebooting Synology NAS. 

Please let me know if there are any options I can set to avoid this happening in the future. It feels like this must be a configuration error on my part somehow. 

Thanks. 

 

embyserver-63757324809.txt 3.85 MB · 1 download

right, but the media was not physically deleted, so just remount the share and run a library scan.

Posted

Yea this is a tricky one that we'll have to come up with a plan for. Unlike other kinds of shares, this doesn't throw an error that we can easily detect, but rather, it just returns an empty list of files. We'll look into improving it. Thanks.

Posted
12 hours ago, mastrmind11 said:

right, but the media was not physically deleted, so just remount the share and run a library scan.

This is sub-optimal as large media libraries will take hours and hours to re-download metadata, images, recreate thumbnails, etc. A ton of work goes in to maintaining media servers, and even when a library is fully managed by Sonarr or Radarr there will be matching issues, failed image downloads etc. It's a huge headache 

1 hour ago, Luke said:

Yea this is a tricky one that we'll have to come up with a plan for. Unlike other kinds of shares, this doesn't throw an error that we can easily detect, but rather, it just returns an empty list of files. We'll look into improving it. Thanks.

Thanks for the consideration, Luke. Perhaps rather than simply deleting all of the data as soon as a file disappears, Emby could hold it in a recycling bin of sorts temporarily, and schedule it to be deleted a few days later. That way if the file is restored Emby can re-enable the metadata, rather than treating it as a new file.

Posted

We'll take a look at it. Thanks for the feedback.

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...