How to proceed after failed update?

When I updated to the latest kodi version (September?) on Monday 23rd of September 2024, Kodi ended up in a restart loop because the OOM killer killed kodi.bin :confused:

I needed a quick remedy and installed my last backup which, unfortunately, was one year agoā€¦

That works quite well, but (at least) the youtube plugin doesnā€™t work anymore and anyhow, Iā€™d like to have a newer version.

So what are my options?

  1. Is it possible to update to the August (or another version from this year) version of OSMC?
  2. Update to the current version and fight with the restart loop
  3. ???

Iā€™d like 1. best, if that would be possible, since Iā€™d have a working, almost current version. From there Iā€™d create a backup and then maybe do 2.

Any suggestions?

Iā€™d install an image with Kodi v20 and restore your backup; then upgrade to Kodi v21 via My OSMC.

Thatā€™s a bit difficult: my backup is an image of the sd-card. Easy to install with dd, but it would overwrite the the Kodi v20 imageā€¦

But if you took the backup of the whole SD card a year ago, it will be based on Kodi v20, so you should be able to upgrade from that, unless I didnā€™t understand you correctly.

Stupid question: I have a another raspberry with the same version that worked before the mentioned upgrade. So if I could use that one, my problem would be solved.
But: the messed up raspberry is a Pi4, the working one a Pi3 ā€¦ I guess I canā€™t just use the image of the Pi3?

Yes, Itā€™s a kodi 20.1
But if I upgrade via My OSMC now, Iā€™ll get the version that caused the restart loop, wonā€™t I?

They are different images.

Well ā€“ it depends what is causing the reboot loop.
If itā€™s an OOM issue, you could try disabling some add-ons before upgrading; if that is causing your issue. Hopefully itā€™s not being caused by the database upgrade process.

Ok, Iā€™ll try that. After all, I still have last yearā€™s backup :grin:
Thanks for your help!

Yes, it doesnā€™t hurt to try again.
If you are running additional services on the box you could also disable them temporarily to give Kodi more headroom.

I updated (via My OSMC) again, without disabling any addons, and went into the reboot loop again. So I stopped the mediacenter, added a 4GiB swapfile and started the mediacenter again. Memory consumption of kodi.bin went to ~3GiB (!) and the start took forever, but finally, it released most of the memory again (~0.7GiB).

Great, I thought, some conversion needed a lot of memory, but thatā€™s done now - isnā€™t it?

After I restarted mediacenter again, it again used ~3GiB of memory :confused:

Next thing I tried: I moved the ~/.kodi/addons to ~/.kodi/addons-suspicious and created a new and empty ~/.kodi/addons, hoping that some add-on is the culprit. Unfortunately, even without any add-on, memory consumption went to ~3GiB again :frowning:

Iā€™ve added a debug log of a startup here: https://the-grue.de/~markus/kodi.log.xz
I wasnā€™t able to detect anything iffy.

I canā€™t keep it like this: The startup takes ages and the swap file slowly breaks the SD-Cardā€¦ I really hope you can help me.

Update: My video (and everything else) library is mounted via NFS. I unmounted it and restarted mediacenter: Tadaaa, normal memory consumption. Is something with the library update broken?
As soon as I mount it again and start a movie, memory consumption rises to ~3GiB again.

After all, it seems to me that Kodi 21 just needs much more memory on startup than Kodi 20. I donā€™t like this ā€œsolutionā€, but i bought a Pi4 with 8GiB memory and everything is ā€œfineā€ā€¦

BTW: i didnā€™t find any official memory requirements for OSMC. There is a page with supported devices, but that doesnā€™t mention the memory requirements. Did I look at the wrong place?

It should probably only need that for a large library migration; but not for actual usage.

It happens on every start of the Mediacenter and also sometimes during runtime. In the latter case, I think it was related to the movies library.
How could I check this?

My guess is the database migration is not yet fully completed.

I doubt itā€¦

  1. Kodi consumes high memory on every start, then after some minutes consumption drops
  2. It has been started many times since
  3. it has been running for several hours each time

I would think that 1. means that migration is done, 2. would mean it had several attempts to do so and 3. means it had a lot of time to do the migration.

Is there a way check this? Like in the logs or in the database itself?

Logs should show if itā€™s still doing stuff, yes.