I would like to share with you about a problem that I encountered that I can’t resolve on my own (at least so far)
I have raspberry pi 3b with osmc installed.
In addition I installed:
openvpn (and configured it to connect to ivaccy vpn server)
qbittorrent
radarr
sonarr
fail2ban (with the permanent ban after 3 login attempts)
Everyting seems, at first sight, works well, but after a couple of hours, my RAM (kodi) usage jumps from +/- 300 MB to 400+. After then goes to 500 then go to 600 etc. Usually, there is some crash in the end.
Memory rise even when there is no activity (nothing to download), no one is watching video etc.
So basically my system is ready to works only for 1-2days before memory will be full.
Sure, I will but on the process list - kodi is highlighted as a process that cosumes more and more memory, while the memory consumption on sonarr and radarr is more or less on the same level.
Definitely, I will try with add-ons later today.
After switched off services of radarr and sonarr memory went from 400 MB to 288 MB, But after night my memory usage is again around 500 MB.
So neither sonarr and radarr are here to blame (qbittorrent is a service that I installed two days ago, and the problem occurs for weeks, so I can exclude it as well)
I disabled most of addons. But this dosen’t help. Then decided to disable qbitttorent with no sucess. At morning I disabled samba service, but from 7 am to now ( 6 pm) memory rose 120 MB .
BTW is there any way to “reset” kodi to default state (all addons and repositories set to default state) ?
that will completely remove all addons and repositories, if you want it back then do the same just reverse the .kodi .kodi-backup, like this “mv .kodi-backup .kodi”
Tried above method to reset kodi. Installed only one addon to watch aljazeera
Except that is “pure” kodi.
But problem hasn’t been solved.
I’m sure that despite errors in logs it’s not related to torrent and samba (both were disabled for some time with no success).
Any idea? Any other additional logs that I can provide ?
My current log after kodi reset is here (but from yesterday 400 MB, today is 650).
Little update.
I think that my osmc system has almost halted so tried to restart mediacenter - from ssh - please see below
osmc@osmc:~$ systemctl restart mediacenter
** (process:7486): WARNING **: Unable to register authentication agent: Timeout was reached
Error registering authentication agent: Timeout was reached (g-io-error-quark, 24)
Could not watch jobs: Connection timed out
Yes, it still raising Slowly but constantly.
I try to avoid format all option, as I don’t know what is the root of the problem, and I can stuck with the same problem again.
And a lot of stuff is already configured (dyndns, fail2ban & other mentioned services like vpn).
But eventually I will try to format card and install it again
Problem still persist. It’s better then before, but definitely memory is not all the time on the same level.
I see that in “idle” it’s quite good (it’s raise about 20-30 mb per night), but when I do anything on it memory raise and doesn’t want to lower even after activity stops.
I tried to implement kodi switch after powering off TV, [HowTo] for auto quit/start kodi based on TV status - #20 by tledford but it doesn’t help either.
The sensible way to debug this problem is to start with a very basic installation of OSMC – what Tom referred to above as “pure Kodi”. You should not install any Kodi add-ons, skins or external packages until you are sure that the problem is no longer there. Then, one step at a time, change the configuration of Kodi and properly test it for stability before moving to the next step.