My server crashed the other day , and I had to reinstall my entire Ubuntu 16.04 server from scratch. I do as I normally do - follow my own steps to get everything up and running. Server has 64GB memory and 2 x 512GB ssd drives in raid 0. AMD Ryzen 1700x
So the server is running, but it seems that my plexserver loose its Googledrive mount connections which I never had the problem with before.
I opened up my kern.log and I scroll through it, and it seems that my server kills the rclone process?
ex:
Out of memory: Kill process 2609 (rclone) score 972 or sacrifice child
Killed process 2609 (rclone) total-vm: 74290364kb, aron-rss:64081484kB, file-rss:0kb, shmem-rss:0kb
oom_reaper : reaped process 2609 (rclone) now aron-rss:0kb , file-rss:0kb, shmem-rss:0kb
Any clue?
Or what can I do to get details logs if my server looses connections to the mount again?
The kernel killed the rclone process, because it was running out of memory and rclone was using nearly 64 GB. Can you give us some information about your rclone setup, like the relevant parts of your rclone.conf and the used mount command?
There is a pending issue on GitHub regarding rclone using too much memory, but there is progress at the moment, since it only seem to happen very rarely and is not reproducible.
If this happens again (and you notice it before the kernel kills rclone) could you take a memory profile of your rclone process?
It should pretty simple to setup: install go, enable --rc for your rclone mount and when the memory usage is to high (maybe > 5 GB) use go tool pprof -web http://localhost:5572/debug/pprof/heap
to get a memory profile.
I will see if I can look into your install go thingy , but I dont quite monitor my server all the time. I just hear that my plex users complains when the server dont have access to my media.
Can I do a “roll back” to another version that shouldnt cause this? If yes which version it 100% sure to run?
Unfortunately, we don’t either as there isn’t much in terms of logs or anything else to look at.
If you are running out of memory, it’s most likely due to the number of open files by whatever is accessing the mount. You can run (as root) lsof on the mount and see what’s accessing files.
Or you can follow the post from a few above where he asked to grab a memory profile.
Yea but the logs are huuuuuge Ani - The only thing I can see is that the kern.log is killing rclone every time .
What in the world that is causing it, dont know ! Its sooo damn odd since I ran my reinstall , made my services which I have a copy of. Everything is made as it was before. Haven’t done any changes at all. But after the server reinstallation , it keep eating the memory.
Now im running Plexdrive which seems to be working so far , so good for now. Memory usage is insane low and not moving . 662MB used while I stream a movie direct play so far. Starting time is aprox … maybe a bit slower than rclone vfs .