Hello, happy user of OSMC since many many years. Today I did a fresh install of the latest OSMC on a new Raspberry Pi 4. Everything works except that I cannot get add-ons from the official repository. I checked that Internet is working, and I can ping the server from osmc.
from kodi.log: error <general>: CRepository: https://download.osmc.tv/kodi/addons/nexus/addons.xml.gz index has wrong digest ddd1dbf853afd5fceb820e04e302d0e692b87fa21b7c11fb5433fa9e175bc8aa, expected: 1b042469279febb1638951f124bb3714a72f6c518a3c3e1d05a5acf2c091c177
If I download the addons.xml.gz file with wget, and do sha256sum addons.xml.gz, I get the wrong hash… I tried retrieving the file with curl and also get the wrong hash.
Additional info: I downloaded the same addons.xml.gz on a different machine (Windows), connected to a different network. The checksum is also not correct (ddd1dbf853afd… instead of 1b04…).
It looked like a similar issue. Kodi was expecting the same digest reported by the OP as wrong one, but was getting another.
Now both expected and actual digests match when I do the checks manually. Could it be that digest is not calculated immediately when addons.xml.gz is updated?
I’m in Vancouver, BC, Canada. When I tried last night, the addons.xml.gz file was being served from a few different locations – for requests over a course of around 20 minutes, I got 302 redirected to:
All of these four locations hashed to 44b31b35bb9160dddbe7682289d00cd8707da27259e8ad462b86fa665dfe6b16 with shasum256 locally.
Requesting the server hash (https://download.osmc.tv/kodi/addons/nexus/addons.xml.gz?sha256) always seemed to be served directly from https://download.osmc.tv, no 302 redirect. I guess it was this hash that was stale, as the four different mirrors all had matching data.
As of this morning, the server hash now matches that of the four files I retrieved last night, and everything works correctly: