Bug 2110272 - manifest hash in downloaded content does not match ref
Summary: manifest hash in downloaded content does not match ref
Keywords:
Status: NEW
Alias: None
Product: Fedora Modules
Classification: Fedora
Component: flatpak-runtime
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Owen Taylor
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-25 05:33 UTC by Alessio
Modified: 2022-07-26 12:52 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alessio 2022-07-25 05:33:28 UTC
Probably after flatpak-runtime-f36-3620220713115040.1

$ flatpak update
Looking for updates…

        ID                                   Branch          Op          Remote          Download
 1. [✗] org.fedoraproject.Platform           f36             u           fedora          74.6 MB / 662.3 MB

Error: fedora: manifest hash in downloaded content does not match ref runtime/org.fedoraproject.Platform/x86_64/f36
Updates complete.
error: There were one or more errors



https://ask.fedoraproject.org/t/failed-update-flatpak-org-fedoraproject-platform/24690
https://discussion.fedoraproject.org/t/flatpak-fedora-platform-update-error/40821
https://github.com/fedora-silverblue/issue-tracker/issues/318

Comment 1 Pete Walter 2022-07-25 09:34:44 UTC
I am seeing the same here in a clean install. Could it be an infra issue instead?

$ flatpak install firefox
Looking for matches…
Found ref ‘app/org.mozilla.Firefox/x86_64/stable’ in remote ‘fedora’ (system).
Use this ref? [Y/n]: y
Required runtime for org.mozilla.Firefox/x86_64/stable (runtime/org.fedoraproject.Platform/x86_64/f36) found in remote fedora
Do you want to install it? [Y/n]: y

org.mozilla.Firefox permissions:
    ipc                      network                       pcsc       pulseaudio       wayland       x11       devices       file access [1]       dbus access [2]
    bus ownership [3]        system dbus access [4]

    [1] /run/.heim_org.h5l.kcm-socket, home:ro, xdg-download, xdg-run/gvfs, xdg-run/gvfsd, xdg-run/pipewire-0, ~/.cache/firefox:create, ~/.mozilla:create
    [2] org.a11y.Bus, org.freedesktop.FileManager1, org.freedesktop.Notifications, org.freedesktop.ScreenSaver, org.gnome.SessionManager, org.gtk.vfs.*
    [3] org.mozilla.firefox.*, org.mpris.MediaPlayer2.firefox.*
    [4] org.freedesktop.NetworkManager


        ID                                   Branch          Op          Remote          Download
 1. [✗] org.fedoraproject.Platform           f36             i           fedora            662.3 MB / 662.3 MB
 2. [ ] org.mozilla.Firefox                  stable          i           fedora          < 132.8 MB

Error: fedora: manifest hash in downloaded content does not match ref runtime/org.fedoraproject.Platform/x86_64/f36
error: Failed to install org.fedoraproject.Platform: fedora: manifest hash in downloaded content does not match ref runtime/org.fedoraproject.Platform/x86_64/f36

Comment 2 Andras Kovacs 2022-07-25 10:54:32 UTC
I have exactly the same issue (on a Fedora 35 host). Flatpak repair did not help.

Comment 3 Nickolas Gupton 2022-07-25 11:22:53 UTC
Seeing the same issue on Fedora 36, Flatpak repair also does not help here. 
Same issue happens with both GNOME Software and using the terminal.

Terminal output:

$ flatpak repair
Working on the system installation at /var/lib/flatpak
[105/105] Verifying fedora:runtime/org.fedoraproject.Platform/x86_64/f35…
Checking remotes...

$ flatpak update
Looking for updates…


        ID                                   Branch          Op          Remote          Download
 1. [✗] org.fedoraproject.Platform           f36             u           fedora          74.6 MB / 662.3 MB

Error: fedora: manifest hash in downloaded content does not match ref runtime/org.fedoraproject.Platform/x86_64/f36
Updates complete.
error: There were one or more errors

Comment 4 Owen Taylor 2022-07-25 18:22:02 UTC
flatpak-indexer bug triggering the problem is fixed by:
https://github.com/owtaylor/flatpak-indexer/commit/e1cbc30a62269b84a6c90895f6a5451b031dc0a1

Request to redeploy: https://pagure.io/fedora-infrastructure/issue/10828

Underlying Flatpak issue is filed as: https://github.com/flatpak/flatpak/issues/5011 - won't really matter here once the index is fixed.


Note You need to log in before you can comment on or make changes to this bug.