minos 15 Posted May 25, 2024 Posted May 25, 2024 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 9780 Posted May 25, 2024 Posted May 25, 2024 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.
Luke 42077 Posted May 28, 2024 Posted May 28, 2024 Hi @minoscan we please look at an example? Please attach the emby server log from when this happened: How to Report a Problem Thanks !
minos 15 Posted May 29, 2024 Author Posted May 29, 2024 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
Luke 42077 Posted May 29, 2024 Posted May 29, 2024 OK please let us know if you find anything else. Thanks !
minos 15 Posted May 30, 2024 Author Posted May 30, 2024 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 1518 Posted May 30, 2024 Posted May 30, 2024 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.
Luke 42077 Posted May 30, 2024 Posted May 30, 2024 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?
minos 15 Posted May 31, 2024 Author Posted May 31, 2024 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 9780 Posted May 31, 2024 Posted May 31, 2024 (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 May 31, 2024 by Happy2Play 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now