Jump to content

About real time monitoring


Recommended Posts

Posted

Hello,

i'd like to have a suggestion about real time monitoring.

 

I have on my server 2 usb hdd and gdrive mounted with rclone.

 

If i keep real time enable if my internet connection goes down or if for any reason my hdd get umounted emby library looses all movies on gdrive or on my hdd and after remount emby has to rescan again all the library.

 

Is there a way to use real time monitoring without loosing all in case of internet failure?

 

I know that plex put movies in trash before delete them so after internet come back the movies are still in library.

 

What sould be best way in my case.

 

I'd like emby finds movies when added but without the risk to destroy library.

 

Tnx

mastrmind11
Posted

this was supposedly fixed a long time ago.  I haven't lost connection to my NAS in quite some time so I can't confirm, but there is a discussion or 2 over in the FR area about it.

Posted

So you are saying that if my mount point goes down it does not destroy library?

Do you know from when it is so?

Posted

Well, i missed it.

So let's try to enable real time monitoring and cross fingers.

Posted

Yea you should not lose your library anymore, thanks.

Posted

Hi @@fbrassin,

 

I would very much appreciate your experience report with this feature. Also using rclone but not using real-time monitoring because I read somewhere it doesn't work with a rclone mount thus never tested it tbh.

Posted

OK, i'll try.

I'll add a movie and see if it will be read at once

Posted

I can confirm that real time monitoring doesn't work with rclone mount.

 

@@Luke Do you think anything can be made about this?

 

Tnx

Posted

IIRC then this is a fuse mount issue. Again iirc ncw (developer of rclone) knows about this.

 

I might be mistaken though...

Posted

Exceuse me, but what is IIRC?

mastrmind11
Posted

Exceuse me, but what is IIRC?

If I Recall Correctly

Posted

And is this something rclone developer is working at?

I'm not able to find anything about it on rclone forum

Posted

I can confirm that real time monitoring doesn't work with rclone mount.

 

@@Luke Do you think anything can be made about this?

 

Tnx

.net core real-time monitor uses inotify, so it will work with whatever that supports.

  • 1 month later...
fbrassin
Posted

Hello, 

yesterday i had this situation.

My rclone mount drop down for a problem in my configuration, so after a scan of emby i lost the library as emby didn't see any movie and deleted all library.

Now i have to rebuild all the library.

It should be better in my opinion put those movie in a sort of trash can as in plex so that i don't have to rebuild all library in this case.

 

Do you think is it possible?

fbrassin
Posted

It happened once again tonight.

My rclone mount failed and emby scan removed all item in the library, so today i have to rescan all. This will take about 2 days.

 

Here is my server log.

https://paste2.org/0OnCdv90

 

Where you find "................." it is because i had many similar lines that i removed as the log was huge.

  • 2 weeks later...
Posted

Are you still running into this?

fbrassin
Posted

My mount point hasn't went down anymore, but if it will happen i'm sure emby will delete movies from library if not present in the folder, if you didn't change anything in embyserver.

If delete a movie from movie folder emby removes it from library, so it will happen if gdrive is not mounted.

fbrassin
Posted

In order to solve this, i made a script that every minute checks if gdrive is mounted, in the case it isn't, it shuts down emby.

Not too well but better then having to rebuild library.

Posted

Wondering how it gets unmounted in the first place. Mine is has been mounted for months without a single crash, it's absolutely rock stable.

fbrassin
Posted

Normally it doesn't get unmounted, but sometimes i try new config that could fail or sometimes my internet connect fails.

That's why sometimes it gets unmounted.

Posted

We'll look into this, thanks.

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