Jump to content

Emby loses database entries if second NAS is not connected


Recommended Posts

Posted

I've had a problem for ages now. I have two NAS and have connected them via SMB, now the second NAS only starts once a day to scan the database and then sleeps again. Every few months, however, the SMB folders are not mounted correctly and Emby then deletes all the media files that are on this NAS. That means every few months I manually adjust the whole 40tb and select covers. Would it be possible to add an option to separate the clean up, the deletion of unavailable files and the media scan? that you can always trigger the clean up manually? I'm really annoyed because it's always a lot of work. best regards and thank you for the great work

Happy2Play
Posted
11 hours ago, minos said:

I've had a problem for ages now. I have two NAS and have connected them via SMB, now the second NAS only starts once a day to scan the database and then sleeps again. Every few months, however, the SMB folders are not mounted correctly and Emby then deletes all the media files that are on this NAS. That means every few months I manually adjust the whole 40tb and select covers. Would it be possible to add an option to separate the clean up, the deletion of unavailable files and the media scan? that you can always trigger the clean up manually? I'm really annoyed because it's always a lot of work. best regards and thank you for the great work

It is not a cleanup task that is causing this, it is library scan itself seeing the media does not exist and purges.  So technically you can disable Realtime Monitoring if enabled per library and disable scheduled tasks to scan library.  But now would require you to manually run scans when you add media.

Devs will probably need to see server log for when this happens as changes have been added to try and prevent this per many other topics.

Posted

No, I don't know exactly when that happened. I'm often away from the NAS for a while and then the database is empty again because the media scan ran through and the folders from the second NAS weren't connected. My idea was to do it like Kodi, where there's an option where you can delete it manually.

 

Now I have switched it to manual media scan and test before each scan whether everything is connected correctly

 

 

Posted

OK please let us know if you find anything else. Thanks !

Posted

but luke the solution would be so close that you could add an option that prohibits the deletion of films and series from the database as long as it is activated, if you want to clean up your db and are sure that all NAS or disks are connected you can turn the option off. wouldn't that be an idea for an option?

Neminem
Posted
10 hours ago, minos said:

but luke the solution would be so close that you could add an option that prohibits the deletion of films and series from the database as long as it is activated, if you want to clean up your db and are sure that all NAS or disks are connected you can turn the option off. wouldn't that be an idea for an option?

What if you delete 1 movie.

Posted
17 hours ago, minos said:

but luke the solution would be so close that you could add an option that prohibits the deletion of films and series from the database as long as it is activated, if you want to clean up your db and are sure that all NAS or disks are connected you can turn the option off. wouldn't that be an idea for an option?

Are you able to get this situation to happen again?

Posted

yes I can do that but then I'll lose about 40 TB of covers and descriptions that I've spent two weeks manually entering.

I just need to connect the disks from the 2nd NAS to the 1st NAS that are connected via SMB not correctly, so that they are offline and do a scan.

now I've switched everything to manual scan and only do this when I'm sure that the 2nd NAS is online and all disks are connected correctly via SMB

 

Normally I have a timer that starts both NAS at 11am and then does the media scan, but for some reason it happens every 4-6 months that the second NAS is not connected correctly and then it deletes all media from the DB

Happy2Play
Posted (edited)

Technically that is the point of Backup and Restore plugin but really is no different than a personal backup plan as restoring a db does not take any time at all.  Now if you are not saving images with media the backup would have you covered also if configured via plugin.  But a full backup of Emby programdata should be in everyone's backup plan.

Edited by Happy2Play
  • Agree 1

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