Flatpak update stuck at "Updating appstream data for remote fedora"

I just run flatpak update and it shows Nothing to update. but underneath it says Updating appstream data for remote fedora and it stucks for probably 10 minutes.

So I run flatpak update -v and this is the log I get:

~ > flatpak update -v
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/david/.local/share/flatpak
Looking for updates…
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using curl
F: Received 10001 bytes
F: Loaded indexed summary file fcd4756096be25171233b78a5355c8889059307e4fd25a64e6f48dbaf90acd65 from cache for remote ‘flathub’
F: Transaction: update flathub:app/com.github.tchx84.Flatseal/x86_64/stable[*]
F: Transaction: update flathub:app/com.vysp3r.ProtonPlus/x86_64/stable[*]
F: Transaction: update flathub:app/io.bassi.Amberol/x86_64/stable[*]
F: Transaction: update flathub:app/io.github.peazip.PeaZip/x86_64/stable[*]
F: Transaction: update flathub:app/net.nokyan.Resources/x86_64/stable[*]
F: Transaction: update flathub:app/org.nickvision.tubeconverter/x86_64/stable[*]
F: Transaction: update flathub:runtime/com.vysp3r.ProtonPlus.Locale/x86_64/stable[/en]
F: Transaction: update flathub:runtime/io.bassi.Amberol.Locale/x86_64/stable[/en]
F: Transaction: update flathub:runtime/io.github.peazip.PeaZip.Addon.i386/x86_64/stable[*]
F: Transaction: update flathub:runtime/net.nokyan.Resources.Locale/x86_64/stable[/en]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: update flathub:runtime/org.gnome.Platform.Locale/x86_64/49[/en]
F: Transaction: update flathub:runtime/org.gnome.Platform.Locale/x86_64/50[/en]
F: Transaction: update flathub:runtime/org.gnome.Platform/x86_64/49[*]
F: Transaction: update flathub:runtime/org.gnome.Platform/x86_64/50[*]
F: Transaction: update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/6.10[*]
F: Transaction: update flathub:runtime/org.kde.Platform.Locale/x86_64/6.10[/en]
F: Transaction: update flathub:runtime/org.kde.Platform/x86_64/6.10[*]
F: Looking for remote metadata updates for flathub
F: marking op update:runtime/org.kde.Platform/x86_64/6.10 resolved to 49bc183da466bec44bab4f6f641cab401584d1ee30872b428f46c3b8066527d3
F: marking op update:runtime/org.kde.Platform.Locale/x86_64/6.10 resolved to c82a355b893a0a660a384f64324a4fc513276ee1a2ff9c37212888d808034fb0
F: marking op update:runtime/org.kde.KStyle.Adwaita/x86_64/6.10 resolved to 32196ac06c5e2dc203b575032b9b042c3ce48c2ac3f9c4034b91dffd39295ee8
F: marking op update:runtime/org.gnome.Platform/x86_64/50 resolved to 772bc5b803c9ba2639b37109c95db20f0c49888fdbabba1b827ac08ec3a8e5f9
F: marking op update:runtime/org.gnome.Platform/x86_64/49 resolved to dc8c3250f24b63006dbc482cc518264c6e7a676444efcca7e370560b268b9edb
F: marking op update:runtime/org.gnome.Platform.Locale/x86_64/50 resolved to d058f95fc618ebfab2b45900732d3fdbb349001acbd405cfb6bd91db4b1062ce
F: marking op update:runtime/org.gnome.Platform.Locale/x86_64/49 resolved to c60596ea035c1cc6839e33767e2e3b45665b486a95db9f2d5ea18075ef0a7b78
F: marking op update:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra resolved to ddd3ef34856049f6d6529ca85bdf97e05a0f267e350742c2331796f274356d98
F: marking op update:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra resolved to 45661bb5fae01f8a6519ce992de46ddea8d26122ec758a56ea0ef6714ef51a47
F: marking op update:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08 resolved to 9d2c591f6563de78605ca5014122481963d3faf3bdbf47f9d07d4710ab55d489
F: marking op update:runtime/net.nokyan.Resources.Locale/x86_64/stable resolved to 31a1cc547a45b972719e2796ecc35891d49795d7c55c39162cc99c97b800d124
F: marking op update:runtime/io.github.peazip.PeaZip.Addon.i386/x86_64/stable resolved to bb9d83c1b843f9e71c626b3e352c49610509bb36be7beb0eec313c0452a8ec62
F: marking op update:runtime/io.bassi.Amberol.Locale/x86_64/stable resolved to 1b4fe0a5b94a05741cceae757edd5f8f79b110e02dcb59b90bcefedc9d1ce1fc
F: marking op update:runtime/com.vysp3r.ProtonPlus.Locale/x86_64/stable resolved to 939abf4aac884b8a0c76913f3f52196f48a2468dfa1c224752a3047b14074cb7
F: marking op update:app/org.nickvision.tubeconverter/x86_64/stable resolved to f634c9b62268a151d383926f8ff6351cdcd380e2097728875d1b52f158605f8d
F: marking op update:app/net.nokyan.Resources/x86_64/stable resolved to 8eae4d7bf309a8ab689d68d5d54db6aa6f34f38eebb30b5a49f739e1af7ea0f7
F: marking op update:app/io.github.peazip.PeaZip/x86_64/stable resolved to 6468d4e6eace5d3119964d33ba5631d247acdc0c79dc603aafd325db3fe6d994
F: marking op update:app/io.bassi.Amberol/x86_64/stable resolved to 02d56784d8b6d1bfad1d0ac2beba862f4569281a2c228971d9bdfc691aff0ce6
F: marking op update:app/com.vysp3r.ProtonPlus/x86_64/stable resolved to 7a5039cbd64cad8d20fe5e14e31b989fdb163e4a911e85fe3bbb4129f5c633a0
F: marking op update:app/com.github.tchx84.Flatseal/x86_64/stable resolved to 14ba14f237835365b3b5f2c8f6eee2dcaf7f248d92f3eaf51e00ab28cfe523b1
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/6.10[*]
F: Transaction: install/update flathub:runtime/org.kde.Platform.Locale/x86_64/6.10[/en]
F: Transaction: install/update flathub:runtime/org.gnome.Platform.Locale/x86_64/50[/en]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.gnome.Platform.Locale/x86_64/49[/en]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/net.nokyan.Resources.Locale/x86_64/stable[/en]
F: Transaction: install/update flathub:runtime/io.github.peazip.PeaZip.Addon.i386/x86_64/stable[*]
F: Transaction: install/update flathub:runtime/io.bassi.Amberol.Locale/x86_64/stable[/en]
F: Transaction: install/update flathub:runtime/com.vysp3r.ProtonPlus.Locale/x86_64/stable[/en]
F: Checking installation ‘system’ for EOL unused refs and autoprunes
F: Checking installation ‘system’ by checking for dependent refs in ‘user’

Nothing to update.
F: fedora:x86_64 appstream age 91998 is greater than ttl 86400
Updating appstream data for remote fedora
F: Calling system helper: GenerateOciSummary 
F: Failed to download optional summary: Remote peer disconnected
F: Calling system helper: DeployAppstream
Error updating: Error updating appstream: While fetching https://registry.fedoraproject.org/index/static?label%3Aorg.flatpak.ref%3Aexists=1&architecture=amd64&os=linux&tag=latest: [35] SSL connect error
F: fedora-testing:x86_64 appstream age 18446744073709551615 is greater than ttl 86400
F: flathub:x86_64 appstream age 9928 is less than ttl 86400
~ > 

As you can see, it stucks at F: Calling system helper: GenerateOciSummary for about 10 minutes and then throw me an error.

What make me curious is I didn’t update the appstream, I just run regular flatpak update and not flatpak update --appstream but it’s also trying to updating the fedora appstream (while flathub appstream isn’t though that output show flathub appstream).

There are also people here discussing similar issues but I’m not sure if my issue is the same as theirs because their output is different from mine:

basically when running flatpak update , sometimes normal sometimes like this.

it will be nightmare if you run it through Gnome Software (dunno about other DE store) cuz it will spinning “forever”.

Any fix for this?

What versions of flatpak are you using? Which Fedora version? Which fedora flavor? Is this on an atomic desktop?

What versions of flatpak are you using?

It’s flatpak-1.17.6-1.fc44.x86_64.

Which Fedora version?

Fedora 44.

Which fedora flavor?

Fedora Workstation.

Is this on an atomic desktop?

No.

Are you using a proxy? If yes, you might be running into this issue: [Bug]: `flatpak-oci-authenticator` does't use user proxy · Issue #6485 · flatpak/flatpak · GitHub

No. I’m not using it.

As I said before, sometimes normal sometimes like that.
Rn it is normal:

~ > flatpak update
Looking for updates…

Nothing to update.
~ >

Or with verbose flag:

~ > flatpak update -v
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/david/.local/share/flatpak
Looking for updates…
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using curl
F: Received 10001 bytes
F: Loaded indexed summary file 7ef41d58c60da61283d215bb672dee75a311ba2532eaa5fa3e5b9a4f12c539d5 from cache for remote ‘flathub’
F: Transaction: update flathub:app/com.github.tchx84.Flatseal/x86_64/stable[*]
F: Transaction: update flathub:app/com.vysp3r.ProtonPlus/x86_64/stable[*]
F: Transaction: update flathub:app/io.bassi.Amberol/x86_64/stable[*]
F: Transaction: update flathub:app/io.github.peazip.PeaZip/x86_64/stable[*]
F: Transaction: update flathub:app/net.nokyan.Resources/x86_64/stable[*]
F: Transaction: update flathub:app/org.nickvision.tubeconverter/x86_64/stable[*]
F: Transaction: update flathub:runtime/com.vysp3r.ProtonPlus.Locale/x86_64/stable[/en]
F: Transaction: update flathub:runtime/io.bassi.Amberol.Locale/x86_64/stable[/en]
F: Transaction: update flathub:runtime/io.github.peazip.PeaZip.Addon.i386/x86_64/stable[*]
F: Transaction: update flathub:runtime/net.nokyan.Resources.Locale/x86_64/stable[/en]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: update flathub:runtime/org.gnome.Platform.Locale/x86_64/49[/en]
F: Transaction: update flathub:runtime/org.gnome.Platform.Locale/x86_64/50[/en]
F: Transaction: update flathub:runtime/org.gnome.Platform/x86_64/49[*]
F: Transaction: update flathub:runtime/org.gnome.Platform/x86_64/50[*]
F: Transaction: update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/6.10[*]
F: Transaction: update flathub:runtime/org.kde.Platform.Locale/x86_64/6.10[/en]
F: Transaction: update flathub:runtime/org.kde.Platform/x86_64/6.10[*]
F: Looking for remote metadata updates for flathub
F: marking op update:runtime/org.kde.Platform/x86_64/6.10 resolved to 49bc183da466bec44bab4f6f641cab401584d1ee30872b428f46c3b8066527d3
F: marking op update:runtime/org.kde.Platform.Locale/x86_64/6.10 resolved to c82a355b893a0a660a384f64324a4fc513276ee1a2ff9c37212888d808034fb0
F: marking op update:runtime/org.kde.KStyle.Adwaita/x86_64/6.10 resolved to 32196ac06c5e2dc203b575032b9b042c3ce48c2ac3f9c4034b91dffd39295ee8
F: marking op update:runtime/org.gnome.Platform/x86_64/50 resolved to 772bc5b803c9ba2639b37109c95db20f0c49888fdbabba1b827ac08ec3a8e5f9
F: marking op update:runtime/org.gnome.Platform/x86_64/49 resolved to dc8c3250f24b63006dbc482cc518264c6e7a676444efcca7e370560b268b9edb
F: marking op update:runtime/org.gnome.Platform.Locale/x86_64/50 resolved to d058f95fc618ebfab2b45900732d3fdbb349001acbd405cfb6bd91db4b1062ce
F: marking op update:runtime/org.gnome.Platform.Locale/x86_64/49 resolved to c60596ea035c1cc6839e33767e2e3b45665b486a95db9f2d5ea18075ef0a7b78
F: marking op update:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra resolved to ddd3ef34856049f6d6529ca85bdf97e05a0f267e350742c2331796f274356d98
F: marking op update:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra resolved to 45661bb5fae01f8a6519ce992de46ddea8d26122ec758a56ea0ef6714ef51a47
F: marking op update:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08 resolved to 9d2c591f6563de78605ca5014122481963d3faf3bdbf47f9d07d4710ab55d489
F: marking op update:runtime/net.nokyan.Resources.Locale/x86_64/stable resolved to 31a1cc547a45b972719e2796ecc35891d49795d7c55c39162cc99c97b800d124
F: marking op update:runtime/io.github.peazip.PeaZip.Addon.i386/x86_64/stable resolved to bb9d83c1b843f9e71c626b3e352c49610509bb36be7beb0eec313c0452a8ec62
F: marking op update:runtime/io.bassi.Amberol.Locale/x86_64/stable resolved to 1b4fe0a5b94a05741cceae757edd5f8f79b110e02dcb59b90bcefedc9d1ce1fc
F: marking op update:runtime/com.vysp3r.ProtonPlus.Locale/x86_64/stable resolved to 939abf4aac884b8a0c76913f3f52196f48a2468dfa1c224752a3047b14074cb7
F: marking op update:app/org.nickvision.tubeconverter/x86_64/stable resolved to f634c9b62268a151d383926f8ff6351cdcd380e2097728875d1b52f158605f8d
F: marking op update:app/net.nokyan.Resources/x86_64/stable resolved to 8eae4d7bf309a8ab689d68d5d54db6aa6f34f38eebb30b5a49f739e1af7ea0f7
F: marking op update:app/io.github.peazip.PeaZip/x86_64/stable resolved to 6468d4e6eace5d3119964d33ba5631d247acdc0c79dc603aafd325db3fe6d994
F: marking op update:app/io.bassi.Amberol/x86_64/stable resolved to 02d56784d8b6d1bfad1d0ac2beba862f4569281a2c228971d9bdfc691aff0ce6
F: marking op update:app/com.vysp3r.ProtonPlus/x86_64/stable resolved to 7a5039cbd64cad8d20fe5e14e31b989fdb163e4a911e85fe3bbb4129f5c633a0
F: marking op update:app/com.github.tchx84.Flatseal/x86_64/stable resolved to 14ba14f237835365b3b5f2c8f6eee2dcaf7f248d92f3eaf51e00ab28cfe523b1
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/6.10[*]
F: Transaction: install/update flathub:runtime/org.kde.Platform.Locale/x86_64/6.10[/en]
F: Transaction: install/update flathub:runtime/org.gnome.Platform.Locale/x86_64/50[/en]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.gnome.Platform.Locale/x86_64/49[/en]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.codecs-extra/x86_64/25.08-extra[*]
F: Transaction: install/update flathub:runtime/net.nokyan.Resources.Locale/x86_64/stable[/en]
F: Transaction: install/update flathub:runtime/io.github.peazip.PeaZip.Addon.i386/x86_64/stable[*]
F: Transaction: install/update flathub:runtime/io.bassi.Amberol.Locale/x86_64/stable[/en]
F: Transaction: install/update flathub:runtime/com.vysp3r.ProtonPlus.Locale/x86_64/stable[/en]
F: Checking installation ‘system’ for EOL unused refs and autoprunes
F: Checking installation ‘system’ by checking for dependent refs in ‘user’

Nothing to update.
F: fedora:x86_64 appstream age 8085 is less than ttl 86400
F: fedora-testing:x86_64 appstream age 18446744073709551615 is greater than ttl 86400
F: flathub:x86_64 appstream age 20475 is less than ttl 86400
~ > 

IDK. Maybe it’s from server-side?

On Gnome Software it’s just spinning:

I’m on Silverblue, and while I don’t have any Fedora Flatpaks, only Flathub ones, I am still receiving the appstream age related errors when running flatpak update in verbose mode. Refreshing updates in GNOME Software is reasonable.

After having installed a Flatpak from Fedora, and hitting the refresh button in GNOME Software, loading the updates took somewhat longer, but still in line with expectations.

Since you’re on Workstation, could it be that appstream errors are not what’s causing the “spinning forever” issue (so not necessarily Flatpak issue, but maybe PackageKit related)?

Here’s my understanding and what I know (correct me if I’m wrong).

When I ran flatpak update -v , it stucks at F: Calling system helper: GenerateOciSummary for probably 10 minutes and then gave me an error.

And when I click refresh on Gnome Software and it’s “spinning forver” , what I know it’s “spinning forver” because it’s also stuck at F: Calling system helper: GenerateOciSummary too.

But on Gnome Software it could be “forever” because I’ve been waiting for almost 30mins and it’s still stuck, clicking stop button wouldn’t stop it and I’m ended up shutdown my PC.

This problem is inconsistent, sometimes occur sometimes isn’t.

Right now when I’m clicking refresh button on Gnome Software it’s normal but dunno in the future.

OK, I misunderstood things then, it’s not specifically a GNOME Software issue, but rather a Flatpak issue. Did you consider running a flatpak repair?

Not yet. I will run it if the problem occurs again and I will report it here.

Do I need sudo for it?

I think so, but even if run without sudo, if elevated permissions are needed, the GUI prompt for password entry will appear IIRC.

Oh yeah there’s the GUI (more precisely pop-up) prompt for password entry. Got it.