I’m building our own program with flatpak, with the goal of putting it on our own server and enable installation via a .flatpakref file. With previous versions, this used to work. Yesterday I tried to build a new version of our program, and do the same procedure; building the app and running it locally works just fine. After moving the repo to our server, I noticed however that any installation via .flatpakref just leads to an error outupt:
$ sudo flatpak install --verbose https://flatpak.3dct.at/openia.flatpakref
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /root/.local/share/flatpak
F: Loading https://flatpak.3dct.at/openia.flatpakref using curl
F: Received 3186 bytes
F: Loading https://flathub.org/repo/flathub.flatpakrepo using curl
F: Received 4040 bytes
F: Fetching summary index file for remote ‘openia-origin’
F: Loading https://flatpak.3dct.at/summary.idx using curl
F: Received 334 bytes
F: Fetching indexed summary file ac86708263c25ca318b4ca8e999c455dfc88790ec01b4284862e2ead894e5070.gz for remote ‘openia-origin’
F: Loading https://flatpak.3dct.at/summaries/ac86708263c25ca318b4ca8e999c455dfc88790ec01b4284862e2ead894e5070.gz using curl
F: Received 810 bytes
error: Invalid compressed data
Searching for this error didn’t give me any results that seemed to apply for my case - the only thing that stuck out as possibly remotely relevant is some bug in ostree a while back, which should be fixed by now.
Later, I noticed that I even got the same error when I host the “old” repository which I had backed up (a repository only containing the old version of our program, where installation previously used to work).
I have tested both building and installing on Fedora 40 and Ubuntu 24.04; in both cases, building, local installation and running works fine, but installing from .flatpakref fails with above error.
How can I get more information on what is actually failing here? The verbose output suggests there is something wrong with the content of summaries/ac86708263c25ca318b4ca8e999c455dfc88790ec01b4284862e2ead894e5070.gz but I have no idea what. When extracting the .gz, the resulting file does look strange (mixing text with binary data), but from what I can gather this has always looked that way?
build-update-repo
, which as far as I can tell produces these summary files, ran through successfully; I have tried the build/sign/upload procedure multiple times, and as I said, installation fails even with a repo that I’m pretty sure was working before.
So I have no clue how to figure out what’s wrong with the files or how I can produce “correct” ones?
I guess there could also be something wrong with my hosting environment that leads to this error?
In order to keep this post reasonably short I have skipped the commands I use in my build/sign procedure, but If required I can of course provide them.