Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't install an application on void linux (Writing content object: Need more input). #5452

Closed
4 tasks done
NEsanya opened this issue Jun 22, 2023 · 85 comments · Fixed by #5454
Closed
4 tasks done
Labels

Comments

@NEsanya
Copy link

NEsanya commented Jun 22, 2023

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.
  • If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • This issue is not a report of a security vulnerability (see here if you need to report a security issue).

Flatpak version

1.15.4

What Linux distribution are you using?

Void Linux

Linux distribution version

Linux 6.1.34_1

What architecture are you using?

x86_64

How to reproduce

  1. sudo xbps-install flatpak
  2. flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  3. Reboot system
  4. flatpak install <any_application>

Expected Behavior

An app will be installed without any problems.

Actual Behavior

flatpak install discord-screenaudio          
Looking for matches…
Found ref ‘app/de.shorsh.discord-screenaudio/x86_64/stable’ in remote ‘flathub’ (system).
Use this ref? [Y/n]: 
Required runtime for de.shorsh.discord-screenaudio/x86_64/stable (runtime/org.kde.Platform/x86_64/5.15-22.08) found in remote flathub
Do you want to install it? [Y/n]: 

de.shorsh.discord-screenaudio permissions:
    ipc      network     fallback-x11     pulseaudio     wayland     x11     devices     file access [1]     dbus access [2]

    [1] xdg-config/kdeglobals:ro, xdg-download, xdg-pictures:ro, xdg-run/pipewire-0, xdg-videos:ro
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications, org.kde.KGlobalSettings, org.kde.StatusNotifierWatcher, org.kde.kconfig.notify, org.kde.kglobalaccel


        ID                                                               Branch                   Op              Remote               Download
 1. [✗] de.shorsh.discord_screenaudio.Locale                             stable                   i               flathub                 1.6 MB / 55.3 MB
 2. [✗] org.freedesktop.Platform.GL.default                              22.08                    i               flathub                46.4 MB / 143.1 MB
 3. [✗] org.freedesktop.Platform.GL.default                              22.08-extra              i               flathub                47.8 MB / 143.1 MB
 4. [✗] org.freedesktop.Platform.openh264                                2.2.0                    i               flathub                 1.0 MB / 944.3 kB
 5. [✗] org.kde.KStyle.Adwaita                                           5.15-22.08               i               flathub                 6.2 MB / 6.6 MB
 6. [✗] org.kde.Platform.Locale                                          5.15-22.08               i               flathub                66.6 MB / 355.0 MB
 7. [✗] org.kde.PlatformTheme.QGnomePlatform                             5.15-22.08               i               flathub                10.5 MB / 10.6 MB
 8. [✗] org.kde.WaylandDecoration.QGnomePlatform-decoration              5.15-22.08               i               flathub                10.8 MB / 11.1 MB
 9. [✗] org.kde.Platform                                                 5.15-22.08               i               flathub               116.3 MB / 323.9 MB
10. [ ] de.shorsh.discord-screenaudio                                    stable                   i               flathub              < 74.0 MB

Warning: While pulling runtime/de.shorsh.discord_screenaudio.Locale/x86_64/stable from remote flathub: Writing content object: Need more input
Warning: While pulling runtime/org.freedesktop.Platform.GL.default/x86_64/22.08 from remote flathub: Writing content object: Need more input
Warning: While pulling runtime/org.freedesktop.Platform.GL.default/x86_64/22.08-extra from remote flathub: Writing content object: Need more input
Warning: While pulling runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0 from remote flathub: Writing content object: Need more input
Warning: While pulling runtime/org.kde.KStyle.Adwaita/x86_64/5.15-22.08 from remote flathub: Writing content object: Need more input
Warning: While pulling runtime/org.kde.Platform.Locale/x86_64/5.15-22.08 from remote flathub: Writing content object: Need more input
Warning: While pulling runtime/org.kde.PlatformTheme.QGnomePlatform/x86_64/5.15-22.08 from remote flathub: Writing content object: Need more input
Warning: While pulling runtime/org.kde.WaylandDecoration.QGnomePlatform-decoration/x86_64/5.15-22.08 from remote flathub: Writing content object: Invalid compressed data
Error: While pulling runtime/org.kde.Platform/x86_64/5.15-22.08 from remote flathub: Writing content object: Need more input
error: Failed to install org.kde.Platform: While pulling runtime/org.kde.Platform/x86_64/5.15-22.08 from remote flathub: Writing content object: Need more input

Additional Information

I'm using void linux with glibc, gnome, pipewire and wayland.
This bug works with any app, not only the discord-screenaudio (I've tried Epiphany, ExtensionManager and etc.)

Also I have tried to:

  • Remove the remote and set it up again
  • flatpak repair
  • sudo flatpak repair
  • flatpak repair --user
  • flatpak unsinstall --unsued
  • flatpak update
  • flatpak update --appstream
  • sudo xbps-remove -R -O flatpak; sudo xbps-install flatpak
  • sudo xbps-install -Suy
@NEsanya NEsanya added the bug label Jun 22, 2023
@nicklatch
Copy link

nicklatch commented Jun 23, 2023

I'm having the same issues. Using risiOS(Fedora 38 based). I'll post a log and additional info later.

@egfs1
Copy link

egfs1 commented Jun 23, 2023

I'm having the same problem right now, i just installed Fedora 38, i was following a tutorial and got the same error trying to install ExtensionManager. I can't install anything of the Software list using Flathub because of the same error "Writing content object: Need more input"

@motorto
Copy link

motorto commented Jun 23, 2023

Having the same issue with installing/updating apps.

log with --verbose
$ flatpak update --assumeyes  --verbose
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 /home/cerqueira/.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 266775a2576740a3a495acb8e60917c3a3f560a0ec2370e90fc641acc1efd15c from cache for remote ‘flathub’
F: Transaction: update flathub:app/com.github.tchx84.Flatseal/x86_64/stable[*]
F: Transaction: update flathub:app/com.github.xournalpp.xournalpp/x86_64/stable[*]
F: Transaction: update flathub:app/com.stremio.Stremio/x86_64/stable[*]
F: Transaction: update flathub:app/net.lutris.Lutris/x86_64/stable[*]
F: Transaction: update flathub:app/org.gephi.Gephi/x86_64/stable[*]
F: Transaction: update flathub:app/org.keepassxc.KeePassXC/x86_64/stable[*]
F: Transaction: update flathub:app/org.libreoffice.LibreOffice/x86_64/stable[*]
F: Transaction: update flathub:app/org.mozilla.firefox/x86_64/stable[*]
F: Transaction: update flathub:app/org.qbittorrent.qBittorrent/x86_64/stable[*]
F: Transaction: update flathub:app/org.signal.Signal/x86_64/stable[*]
F: Transaction: update flathub:runtime/com.github.xournalpp.xournalpp.Locale/x86_64/stable[*]
F: Transaction: update flathub:runtime/com.stremio.Stremio.Locale/x86_64/stable[*]
F: Transaction: update flathub:runtime/net.lutris.Lutris.Locale/x86_64/stable[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/21.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08-extra[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL32.default/x86_64/22.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL32.default/x86_64/22.08-extra[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.Locale/x86_64/22.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/21.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/22.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.ffmpeg_full.i386/x86_64/22.08[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.0[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0[*]
F: Transaction: update flathub:runtime/org.freedesktop.Platform/x86_64/22.08[*]
F: Transaction: update flathub:runtime/org.gnome.Platform.Compat.i386/x86_64/44[*]
F: Transaction: update flathub:runtime/org.gnome.Platform.Locale/x86_64/44[*]
F: Transaction: update flathub:runtime/org.gnome.Platform/x86_64/44[*]
F: Transaction: update flathub:runtime/org.gtk.Gtk3theme.Adwaita-dark/x86_64/3.22[*]
F: Transaction: update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/5.15-21.08[*]
F: Transaction: update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/5.15-22.08[*]
F: Transaction: update flathub:runtime/org.kde.Platform.Locale/x86_64/5.15-21.08[*]
F: Transaction: update flathub:runtime/org.kde.Platform.Locale/x86_64/5.15-22.08[*]
F: Transaction: update flathub:runtime/org.kde.Platform/x86_64/5.15-21.08[*]
F: Transaction: update flathub:runtime/org.kde.Platform/x86_64/5.15-22.08[*]
F: Transaction: update flathub:runtime/org.libreoffice.LibreOffice.Locale/x86_64/stable[*]
F: Transaction: update flathub:runtime/org.mozilla.firefox.Locale/x86_64/stable[*]
F: Transaction: update flathub:runtime/org.winehq.Wine.DLLs.dxvk/x86_64/stable-22.08[*]
F: Transaction: update flathub:runtime/org.winehq.Wine.gecko/x86_64/stable-22.08[*]
F: Transaction: update flathub:runtime/org.winehq.Wine.mono/x86_64/stable-22.08[*]
F: Looking for remote metadata updates for flathub
F: marking op update:runtime/org.winehq.Wine.mono/x86_64/stable-22.08 resolved to 2973908700eabf97779270ddc161836de2eec5f90f4aa71ca19fff0132304083
F: marking op update:runtime/org.winehq.Wine.gecko/x86_64/stable-22.08 resolved to db7632b6dac3e28f2d6635da992c7087755e0e39e983fe9be11438995dde628e
F: marking op update:runtime/org.winehq.Wine.DLLs.dxvk/x86_64/stable-22.08 resolved to 2b35b6b538313178e3c9a9cde84de5f0eb82352d0bad8ec8b60a499f429a404e
F: marking op update:runtime/org.mozilla.firefox.Locale/x86_64/stable resolved to 629b0bf5b15750c61a7db4e2c91bc0b2e049f59ed8124afe1d2e876f72fdfe2b
F: marking op update:runtime/org.libreoffice.LibreOffice.Locale/x86_64/stable resolved to 75ec2b4bba1d3d6902b3f17765c11fe30388bedb61e364c707735220f12c48f4
F: marking op update:runtime/org.kde.Platform/x86_64/5.15-22.08 resolved to 8d617f2296599d8c4d50a21b0cd183277f6a785f4c955098ba8002ea5ca85cce
F: marking op update:runtime/org.kde.Platform/x86_64/5.15-21.08 resolved to ec3331446a3fb6e8f293a3bc2fae03342cc6732a2d0f8422201241a29e630e18
F: marking op update:runtime/org.kde.Platform.Locale/x86_64/5.15-22.08 resolved to d937718687493324cecab035b29124b90d649f2a3b402d002c0b3958be13562a
F: marking op update:runtime/org.kde.Platform.Locale/x86_64/5.15-21.08 resolved to d53910d2eacf91ca26b450ac33208dcca24c99cb7a7e20d9aeb6a8424e17cc35
F: marking op update:runtime/org.kde.KStyle.Adwaita/x86_64/5.15-22.08 resolved to 1a3515edf77406ea82e51b14ac7ecf8dd5bbb0a4c93c02156e5480e0a0ce4956
F: marking op update:runtime/org.kde.KStyle.Adwaita/x86_64/5.15-21.08 resolved to 811d090059b2dbc3a3edd4b3efd3248e92d2922a41faf2fdc0642d4e3249fecd
F: marking op update:runtime/org.gtk.Gtk3theme.Adwaita-dark/x86_64/3.22 resolved to 7c055bbc0667524f34ca715abd67473480de93a176797a8fe4b7f7a71c4e3324
F: marking op update:runtime/org.gnome.Platform/x86_64/44 resolved to bcaf01ac12cddc49dd34d1c186f0d19cab9fb01ded47e063eb39327ef4602945
F: marking op update:runtime/org.gnome.Platform.Locale/x86_64/44 resolved to 34c182252c28c9d73d174286e1674217198b07cea7966b9485fa7ed45e342b82
F: marking op update:runtime/org.gnome.Platform.Compat.i386/x86_64/44 resolved to 5b1415da26031b5bc55c61b29494333c276d623e617765d499a8f93026c7af0c
F: marking op update:runtime/org.freedesktop.Platform/x86_64/22.08 resolved to 74b5ae6a53e3f39258f90c664a63ef256097bd77c4229fc11e96bc2dbd2ce0cf
F: marking op update:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0 resolved to bf24f23f3ba385f6e8c9215ed94d979db99814b0b614504a23a6d0751dc5f063
F: marking op update:runtime/org.freedesktop.Platform.openh264/x86_64/2.0 resolved to bdc77b1e945ddddcd027dadb9dd93c23437ffc7aca6407b43b385fa1b53a225d
F: marking op update:runtime/org.freedesktop.Platform.ffmpeg_full.i386/x86_64/22.08 resolved to bd6a228797106f82241599f26400f7c290a5b35ad3f5c58ed956bbd32347d45e
F: marking op update:runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 resolved to bc9424944b162fefec4a4dbf36683cc050dc05721cd906766d77a2aaef19efb5
F: marking op update:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/22.08 resolved to bc032ebb18a11fb2e56b24aa423d845b1f6472db393b192f1b977f85e4971fbf
F: marking op update:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/21.08 resolved to 7c60e27ab555e0b80c651e4434662b82aca3900fde2d83b847e680b11139a2c2
F: marking op update:runtime/org.freedesktop.Platform.Locale/x86_64/22.08 resolved to 4140d85aa7410bf434376fe37cd2b256d476d46e44ac028e781bce80be68b0a4
F: marking op update:runtime/org.freedesktop.Platform.GL32.default/x86_64/22.08-extra resolved to 65d76ce6c626814ee843bee414ca72ae3b5ff40af0baed6a3adf9fdbd4149b08
F: marking op update:runtime/org.freedesktop.Platform.GL32.default/x86_64/22.08 resolved to 72ad8741986152e7f2d365a77d2b2fba1fb9b89a027f5fea4b90abd0808e9786
F: marking op update:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08-extra resolved to e781cbdb0e17ea22365c55bcfdabfb6430c5f0a364c5307bdd5e1131c1a8680e
F: marking op update:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08 resolved to 8b4ee41cce832ad87e6a806fd8359ac295ea23768cf515d88c502a0dcab54ca2
F: marking op update:runtime/org.freedesktop.Platform.GL.default/x86_64/21.08 resolved to 455319fb180e673a05b1156dabba36dd41fd13ccaa71a9fe477710eddbc8f2a0
F: marking op update:runtime/net.lutris.Lutris.Locale/x86_64/stable resolved to 3bf2da4223961ddfdcb54343b983d33f37e0af4b3b702a703b11b2ed1d648ddf
F: marking op update:runtime/com.stremio.Stremio.Locale/x86_64/stable resolved to b08893b6d9df7765c0dc269201218bceddf107983a2bbdddededf9c21466e081
F: marking op update:runtime/com.github.xournalpp.xournalpp.Locale/x86_64/stable resolved to c44756c8333ea7b8b0d05e6982794abf19c85525a2f76e825a172b25882277a7
F: marking op update:app/org.signal.Signal/x86_64/stable resolved to 9a52e0a4b709d7274caf059ca666ac97f1876921899ddcea2e2d0096fb4e32f4
F: marking op update:app/org.qbittorrent.qBittorrent/x86_64/stable resolved to e823edad96d3d6d45346071cec111e3d8d45c0e6a27435e5a04eeab6344d7a3c
F: marking op update:app/org.mozilla.firefox/x86_64/stable resolved to efd4e2492e49d9208f2a3ed50ba6d898eed4f8a92b902ccbd2a9a4cc703b8257
F: marking op update:app/org.libreoffice.LibreOffice/x86_64/stable resolved to 2388f20a78dbb8cbcfd7028fd7d7ce0aee60e7cd0d07022a88676ddfe82c8017
F: marking op update:app/org.keepassxc.KeePassXC/x86_64/stable resolved to 1861b7e64eafd7600f1261c9ec33f46fea960df90faa3b38d1b581824bd1efab
F: marking op update:app/org.gephi.Gephi/x86_64/stable resolved to c6efd6a630014ec21528a0652c51f4e1d894b90c0885a3d3562427c9334bd443
F: marking op update:app/net.lutris.Lutris/x86_64/stable resolved to 2e580c2d27b44e1d2313ad7c73df33c2705aec8ef4b030e5a209278c0e0771e1
F: marking op update:app/com.stremio.Stremio/x86_64/stable resolved to ffe627ffd655f9a8418c84e956e16a291b6cd70d6d860a08cce4b0b8f9179d81
F: marking op update:app/com.github.xournalpp.xournalpp/x86_64/stable resolved to 952c4b3633085b8bb8e5d4d0f14765bf5d83f457f615436a5b944a54427f08e2
F: marking op update:app/com.github.tchx84.Flatseal/x86_64/stable resolved to b5b8f7a9e3b5d7d34b1b56a68754f3992c82a143ce20aa996b84ab5572b7d073
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0[*]
F: Transaction: install/update flathub:runtime/org.gtk.Gtk3theme.Adwaita-dark/x86_64/3.22[*]
F: Transaction: install/update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/5.15-22.08[*]
F: Transaction: install/update flathub:runtime/org.kde.Platform.Locale/x86_64/5.15-22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/21.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/21.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.0[*]
F: Transaction: install/update flathub:runtime/org.gtk.Gtk3theme.Adwaita-dark/x86_64/3.22[*]
F: Transaction: install/update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/5.15-21.08[*]
F: Transaction: install/update flathub:runtime/org.kde.Platform.Locale/x86_64/5.15-21.08[*]
F: Transaction: install/update flathub:runtime/org.gnome.Platform.Locale/x86_64/44[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08-extra[*]
F: Transaction: install/update flathub:runtime/org.gtk.Gtk3theme.Adwaita-dark/x86_64/3.22[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.08-extra[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.Locale/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.gtk.Gtk3theme.Adwaita-dark/x86_64/3.22[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0[*]
F: Transaction: install/update flathub:runtime/org.mozilla.firefox.Locale/x86_64/stable[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.libreoffice.LibreOffice.Locale/x86_64/stable[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL32.default/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.ffmpeg_full.i386/x86_64/22.08[*]
F: Transaction: install/update flathub:runtime/org.winehq.Wine.gecko/x86_64/stable-22.08[*]
F: Transaction: install/update flathub:runtime/org.winehq.Wine.mono/x86_64/stable-22.08[*]
F: Transaction: install/update flathub:runtime/org.winehq.Wine.DLLs.dxvk/x86_64/stable-22.08[*]
F: Transaction: install/update flathub:runtime/org.gnome.Platform.Compat.i386/x86_64/44[*]
F: Transaction: install/update flathub:runtime/net.lutris.Lutris.Locale/x86_64/stable[*]
F: Transaction: install/update flathub:runtime/com.stremio.Stremio.Locale/x86_64/stable[*]
F: Transaction: install/update flathub:runtime/com.github.xournalpp.xournalpp.Locale/x86_64/stable[*]
F: Checking installation ‘system’ for EOL unused refs
F: Checking installation ‘system’ by checking for dependent refs in ‘user’


 1.             org.signal.Signal       stable  u       flathub < 155.0 MB


Updating…
F: Calling system helper: GetRevokefsFd
F: Calling system helper: GetRevokefsFd
F: flatpak_dir_pull: Using commit 9a52e0a4b709d7274caf059ca666ac97f1876921899ddcea2e2d0096fb4e32f4 for pull of ref app/org.signal.Signal/x86_64/stable from remote flathub
Updating…                        0%  0 bytes/s
Updating… █▌                     8%
Updating… ██                    10%
Updating… ██▏                   11%
Updating… ██▌                   13%  7.8 MB/s
Updating… ██▊                   14%  9.9 MB/s
Updating… ███▏                  16%  12.1 MB/s
Updating… ███▍                  17%  7.1 MB/s
Updating… ███▌                  18%  8.2 MB/s
Updating… ████                  20%  9.2 MB/s
Updating… ████▏                 21%  6.9 MB/s
Updating… ████▌                 23%  7.6 MB/s
Updating… ████▊                 24%  8.4 MB/s
Updating… █████▏                26%  9.1 MB/s
Updating… █████▍                27%  7.4 MB/s  00:10
Updating… █████▊                29%  8.0 MB/s  00:09
Updating… ██████                30%  8.5 MB/s  00:09
Updating… ██████▏               31%  7.2 MB/s  00:11
Updating… ██████▌               33%  7.7 MB/s  00:10
Updating… ██████▊               34%  8.1 MB/s  00:09
Updating… ███████▏              36%  7.1 MB/s  00:10
Updating… ███████▍              37%  7.5 MB/s  00:10
F: Calling system helper: CancelPull
F: Calling system helper: CancelPull
Error: While pulling app/org.signal.Signal/x86_64/stable from remote flathub: Writing content object: Need more input
Updates complete.
error: There were one or more errors

@Mishra-Suraj
Copy link

Mishra-Suraj commented Jun 23, 2023

Same here.
OS - Fedora Kionite Rawhide
flatpak version - Flatpak 1.15.4

Also getting this error - Aborted due to failure (While pulling runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0 from remote flathub: Input buffer too small)

I can access and download the installer files from the flathub website, but I am not able to install it.

@SalahuddinAhammed

This comment was marked as duplicate.

@tommysalt

This comment was marked as duplicate.

@witchonabike

This comment was marked as duplicate.

@cowboysmall

This comment was marked as duplicate.

@gzfs

This comment was marked as duplicate.

@VarLad
Copy link

VarLad commented Jun 23, 2023

To Fedora users here, until an official fix comes, you can downgrade flatpak via:
sudo dnf install "https://kojipkgs.fedoraproject.org//packages/ostree/2023.3/3.fc38/x86_64/ostree-libs-2023.3-3.fc38.x86_64.rpm"

To SilverBlue/Kinoite users here, just run that command in your fedora toolbox, and use flatpak from the toolbox, it will work just fine, until the fix comes. This way you don't have to change the version of your distro's flatpak :)

This should work for others as well.

@VarLad
Copy link

VarLad commented Jun 23, 2023

(Also, pinging @amigadave to take a look here. I think flatpak broke for the latest version for all flatpak users)

@yuntaz0
Copy link

yuntaz0 commented Jun 23, 2023

After the most recent update on my Fedora rpm-ostree system, I am also unable to download Flatpak apps :( The issue can be resolved by rolling back to the previous image (38.20230622.0 (2023-06-22T02:16:55Z)). The list of downgrade in rpm-ostree rollback are as follows:

Downgraded:
  btrfs-progs 6.3.2-1.fc38 -> 6.3.1-1.fc38
  cups 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
  cups-client 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
  cups-filesystem 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
  cups-ipptool 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
  cups-libs 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
  emacs-filesystem 1:28.2-7.fc38 -> 1:28.2-4.fc38
  gstreamer1 1.22.4-1.fc38 -> 1.22.3-2.fc38
  libaom 3.6.1-1.fc38 -> 3.6.0-1.fc38
  ostree 2023.4-1.fc38 -> 2023.3-3.fc38
  ostree-grub2 2023.4-1.fc38 -> 2023.3-3.fc38
  ostree-libs 2023.4-1.fc38 -> 2023.3-3.fc38
  sudo 1.9.13-2.p2.fc38 -> 1.9.13-1.p2.fc38
  sudo-python-plugin 1.9.13-2.p2.fc38 -> 1.9.13-1.p2.fc38

I'm unsure which package update is causing this issue...

@VarLad
Copy link

VarLad commented Jun 23, 2023

@yuntaz0 Are you sure its not flatpak itself? Downgrading flatpak works fine, even if from toolbox. Look at the above comment #5452 (comment)

@yuntaz0
Copy link

yuntaz0 commented Jun 23, 2023

Thank you for your suggestion, @VarLad

Sorry I can't definitively say whether the issue originates from Flatpak itself or not. However, I can confirm that rolling back and downgrading the packages listed resolves the issue. This procedure is quite simple in the ostree system.

@larryorwell
Copy link

On Fedora 38 it started after upgrading ostree packages to 2023.4-1, doesn't happen with 2023.3-3

@SalahuddinAhammed
Copy link

I am having dependency issue with the command in Fedora 38.

> sudo dnf install "https://kojipkgs.fedoraproject.org//packages/flatpak/1.14.4/1.fc37/x86_64/flatpak-1.14.4-1.fc37.x86_64.rpm" "https://kojipkgs.fedoraproject.org//packages/flatpak/1.14.4/1.fc37/x86_64/flatpak-session-helper-1.14.4-1.fc37.x86_64.rpm"

Error: 
 Problem: problem with installed package selinux-policy-targeted-38.17-1.fc38.noarch
  - package flatpak-1.14.4-1.fc37.x86_64 from @commandline requires (flatpak-selinux = 1.14.4-1.fc37 if selinux-policy-targeted), but none of the providers can be installed
  - conflicting requests
(try to add '--skip-broken' to skip uninstallable packages)

To Fedora users here, until an official fix comes, you can downgrade flatpak via: sudo dnf install "https://kojipkgs.fedoraproject.org//packages/flatpak/1.14.4/1.fc37/x86_64/flatpak-1.14.4-1.fc37.x86_64.rpm" "https://kojipkgs.fedoraproject.org//packages/flatpak/1.14.4/1.fc37/x86_64/flatpak-session-helper-1.14.4-1.fc37.x86_64.rpm"

To SilverBlue/Kinoite users here, just run that command in your fedora toolbox, and use flatpak from the toolbox, it will work just fine, until the fix comes. This way you don't have to change the version of your distro's flatpak :)

This should work for others as well.

@coalexandr

This comment was marked as off-topic.

@Jan200101
Copy link

install an rpm package is unrelated to flatpak.

Looking into Fedora (since thats been reported to be affected and I have an insight into that), the last builds for a stable release where 3 months ago, so things should not suddenly break out of nowhere.

This appears to be an issue with flathub triggering an edge case in flatpak.

@VarLad
Copy link

VarLad commented Jun 23, 2023

@Jan200101 I can confirm this is not an issue with Flathub specifically as this happens for other flatpak repos as well (like GNOME-nightly or kdeapps)
But you're right in the fact that last stable build was 3 months ago

I feel like its an issue with the updating of packages @yuntaz0 mentioned

Downgraded:
btrfs-progs 6.3.2-1.fc38 -> 6.3.1-1.fc38
cups 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
cups-client 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
cups-filesystem 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
cups-ipptool 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
cups-libs 1:2.4.5-1.fc38 -> 1:2.4.4-1.fc38
emacs-filesystem 1:28.2-7.fc38 -> 1:28.2-4.fc38
gstreamer1 1.22.4-1.fc38 -> 1.22.3-2.fc38
libaom 3.6.1-1.fc38 -> 3.6.0-1.fc38
ostree 2023.4-1.fc38 -> 2023.3-3.fc38
ostree-grub2 2023.4-1.fc38 -> 2023.3-3.fc38
ostree-libs 2023.4-1.fc38 -> 2023.3-3.fc38
sudo 1.9.13-2.p2.fc38 -> 1.9.13-1.p2.fc38
sudo-python-plugin 1.9.13-2.p2.fc38 -> 1.9.13-1.p2.fc38

@smcv
Copy link
Collaborator

smcv commented Jun 23, 2023

Looking into Fedora (since thats been reported to be affected and I have an insight into that), the last builds for a stable release where 3 months ago, so things should not suddenly break out of nowhere.

Flatpak uses the libostree shared library (ostree-libs on Fedora), so if Fedora has recently updated ostree-libs from 2023.3 to 2023.4, that is a possible reason for Flatpak to stop working. If it's a new ostree-libs version that triggered this, then it's most likely to be an ostree-libs bug rather than a Flatpak bug.

@NEsanya, did Void Linux also recently upgrade libostree?

@Jan200101
Copy link

libostree ended up in Fedora stable about 12 hours ago
https://bodhi.fedoraproject.org/updates/FEDORA-2023-3ef0a90a6f
it appears to have sneaked past 3 different reviewers.

Void had the package pushed yesterday but I don't know their update flow
void-linux/void-packages@346f84e

@smcv
Copy link
Collaborator

smcv commented Jun 23, 2023

install an rpm package is unrelated to flatpak.

That's not true if the RPM package is something that Flatpak itself uses internally. Flatpak apps don't use the operating system's libraries, but the flatpak(1) tool and its dependencies are part of the operating system, not part of a Flatpak app.

@smcv
Copy link
Collaborator

smcv commented Jun 23, 2023

Void had the package pushed yesterday

The timing is certainly suspicious, then. I've opened ostreedev/ostree#2900.

@garrett
Copy link

garrett commented Jun 23, 2023

For Silverblue (Fedora 38 specifically), you can fix this by downgrading the ostree package with an override to replace the shipped version of ostree:

rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2023-cab8a89753

When successful, it'll include a lot of info, notably:

Downgraded:
  ostree 2023.4-1.fc38 -> 2023.3-3.fc38
  ostree-grub2 2023.4-1.fc38 -> 2023.3-3.fc38
  ostree-libs 2023.4-1.fc38 -> 2023.3-3.fc38

And you can revert to normal with:

rpm-ostree override reset

@VarLad
Copy link

VarLad commented Jun 23, 2023

@SalahuddinAhammed The cause has been pinpointed to ostree-libs (and I can confirm that downgrading it works)
You can downgrade it in Fedora, as well as just the toolbox if you're a toolbox user. Both will work. I've edited my comment until its officially fixed.
@garrett Thanks for the command! I'll note that it works within toolboxes as well.

@NEsanya
Copy link
Author

NEsanya commented Jun 23, 2023

@smcv yep, void updated libostree yesterday

void-linux/void-packages@346f84e

@NEsanya
Copy link
Author

NEsanya commented Jun 23, 2023

I've downgraded ostree and everything is working!
Quick guide how to do it on void:

git clone https://github.com/void-linux/void-packages/
cd void-packages
git reset --hard be92627
./xbps-src binary-bootstrap
./xbps-src pkg ostree
sudo xbps-remove flatpak
sudo xbps-remove ostree
sudo xbps-install --repository hostdir/binpkgs ostree
sudo xbps-install flatpak

@SalahuddinAhammed
Copy link

@VarLad Thanks, it works!

@smcv
Copy link
Collaborator

smcv commented Jun 25, 2023

This seems to be a libostree bug, not a Flatpak bug, so there is no Flatpak change that will fix it.

Please do not comment here to say "me too": that's just drowning out the useful information here. We do not need any more reports that say that upgrading libostree to 2023.4 makes Flatpak regress in this way.

In other words, what version of "ostree" should we be looking out for where this might be fixed

That's an ostree question, not a flatpak question. Please see ostreedev/ostree#2900 for the libostree side of this.

Until that issue is closed, the answer is: there is no newer version fixing this.

After that issue is closed, it will be possible to say what version it was (or is going to be) fixed in.

@Sabering1

This comment was marked as duplicate.

@gentildpinto

This comment was marked as duplicate.

@smcv
Copy link
Collaborator

smcv commented Jun 26, 2023

Before commenting on a noisy issue like this one, please consider whether your comment is genuinely adding information. The more comments there are here, the longer it is going to take anyone to wade through it and find the relevant parts. If you want an issue to be solved, slowing down developers who might be able to solve it is counterproductive!

The first few comments from people on different distributions were useful information, but as soon as we had found the common pattern, "distros that already upgraded to libostree 2023.4", it became unnecessary for users of other distros to confirm that - and especially if someone has already said that a specific distro/version like Fedora 38 is affected, telling us that Fedora 38 is affected is no longer useful.

Similarly, if someone has provided a workaround, replies that say "I tried your workaround and it was successful" are not giving us any new information after the first few.

I've marked many of the "me too" replies as hidden (duplicate), to draw more attention to comments that add information.

I would also like to remind commenters that this project has a code of conduct which includes "Exercise consideration and respect in your speech and actions". Please behave accordingly.

@tazihad
Copy link

tazihad commented Jun 26, 2023

another easy solution for Fedora kinoite 38 is to switch to 2023-06-19 update. which is:

rpm-ostree deploy 3e6ac12125aa6d8fc38074a8dc7859c57a8187b52b17cbc4ea8ee6424418a51d
reboot

And of course don't update system until all of this is fixed.

@andrebatista2
Copy link

andrebatista2 commented Jun 26, 2023

Guys, to finish the discussion for Fedora users, as the flatpak developers talked about, the problem is in libostree. Just run the libostree downgrade and use dnf-plugins-extras-versionlock to prevent libostree upgrade:

sudo dnf downgrade ostree
sudo dnf install dnf-plugins-extras-versionlock
sudo dnf versionlock exclude ostree-2023.4-1.fc38.x86_64
sudo dnf versionlock exclude ostree-libs-2023.4-1.fc38.x86_64

# To remove versionlock exclusions, in future:
sudo dnf versionlock clear

This solution was mentioned here, by @RedBearAK

I suggest to collaborators to close this issue.

@osalbahr
Copy link

FYI, uBlue does the downgrades for you and other quality of life improvements in case you want to rebase.

@Error504TimeOut
Copy link

I also have this Issue on Arch Linux. sudo flatpak repair does nothing.

@waldher
Copy link

waldher commented Jun 26, 2023

On ArchLinux, updating ostree to the latest version (2023.4-2) fixes the issue:
sudo pacman -Sy ostree

@davidstrauss
Copy link

Fedora has a staged update that supposedly fixes this bug. It corresponds to build ostree-2023.4-2.fc38, and I'm hoping to get advice on testing the staged package on Fedora Silverblue 38 (surely one of the most severely impacted distros).

I get this error when I attempt to overlay the package:

[straussd@phoenix Downloads]$ rpm-ostree install ostree-libs-2023.4-2.fc38.x86_64.rpm
[...]
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: cannot install both ostree-libs-2023.4-2.fc38.x86_64 from @commandline and ostree-libs-2023.4-1.fc38.x86_64 from @System
  - conflicting requests

I suspect this means that it's required as a key, specific dependency of @System. Is there a way I can still test the new package?

@kaushalyap
Copy link

I have tried fedora repair, flatpak install --no-static-deltas <package_name> but did not had success only sudo flatpak install <package_name> worked.

@RedBearAK
Copy link

@kaushalyap

The temporary solution while we wait for a full fix is still here, earlier in the thread, if you are on Fedora 38:

#5452 (comment)

@Mishra-Suraj
Copy link

Mishra-Suraj commented Jun 27, 2023

Patch has been deployed but the build is failing because of one test - https://openqa.fedoraproject.org/tests/1992040#step/_console_avc_crash/7

But everything else looks good to me after testing it for like 5 minutes lol. Here's a thread with some other people who have confirmed it works - https://bodhi.fedoraproject.org/updates/FEDORA-2023-464fae1680

So you guys can either wait for all the tests to pass or test what fails, your choice -

Step - 1 $ rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2023-464fae1680

that will upgrade to the patched version of this issue.

Step - 2 $ systemctl reboot

that will reboot the system

Step - 3 $ Flatpak upgrade

that will check if it's working or not.

If you are still facing issues then comment with error logs. Else just give a thumbs up or whatever to this comment to show that it works for you.

My config -

NAME="Fedora Linux" VERSION="Rawhide.20230625.n.0 (Kinoite Prerelease)" ID=fedora VERSION_ID=39 VERSION_CODENAME="" PLATFORM_ID="platform:f39" PRETTY_NAME="Fedora Linux Rawhide.20230625.n.0 (Kinoite Prerelease)" ANSI_COLOR="0;38;2;60;110;180" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:39" DEFAULT_HOSTNAME="fedora" HOME_URL="https://kinoite.fedoraproject.org" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-kinoite/" SUPPORT_URL="https://ask.fedoraproject.org/" BUG_REPORT_URL="https://pagure.io/fedora-kde/SIG/issues" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=rawhide REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=rawhide SUPPORT_END=2024-05-14 VARIANT="Kinoite" VARIANT_ID=kinoite OSTREE_VERSION='Rawhide.20230625.n.0'

@ElijaRock
Copy link

Seems to have been fixed in: ostreedev/ostree#2901

@Worble
Copy link

Worble commented Jun 27, 2023

On ArchLinux, updating ostree to the latest version (2023.4-2) fixes the issue: sudo pacman -Sy ostree

Please don't run this, partial upgrades are unsupported on arch, always do a full system update.

https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported

@kaushalyap
Copy link

kaushalyap commented Jun 27, 2023

Can confirm that recent update on Fedora 38 fixed the issue for me, make sure to run flatpak repair before any new any flatpak package installation.

@RedBearAK
Copy link

Pleased to report that my strategy of using version lock exclusion (on Fedora 38) for the specific buggy version of ostree/ostree-libs has allowed the new version of the packages to appear in the update list and get installed via sudo dnf upgrade --refresh , without me needing to clear the exclusion list.

Upgrading:
 bluez        x86_64  5.66-6.fc38    updates  1.0 M
 bluez-cups   x86_64  5.66-6.fc38    updates   29 k
 bluez-libs   x86_64  5.66-6.fc38    updates   83 k
 bluez-obexd  x86_64  5.66-6.fc38    updates  229 k
 ostree       x86_64  2023.4-2.fc38  updates  247 k
 ostree-libs  x86_64  2023.4-2.fc38  updates  439 k

I ran flatpak repair afterward with no issues, and then removed and re-installed the Obsidian Flatpak from Flathub, also with no issues.

Also tried installing Planify, which I've never had installed before so there would be no chance of it being cached. That went fine too.

If you followed my suggestion of using the versionlock DNF plugin you should be able to do the update now and then sudo dnf versionlock clear to remove the exclusions (optional).

dbnicholson added a commit to dbnicholson/flatpak that referenced this issue Jun 27, 2023
By default, FUSE runs in cached I/O mode[1]. That means some I/O
responses will be taken from the page cache instead of being handled by
the FUSE process. For files opened for reading that's not a problem as
all the requests are just passed through.

However, that is problematic for files opened for writing since those
requests need to be handled by the backend. It's particularly bad for a
file opened `O_RDWR` since `read` responses from the page cache are
likely to be wrong. Instruct FUSE to use `direct-io` for those files so
that the page cache is bypassed.

1. https://docs.kernel.org/filesystems/fuse-io.html

Fixes: flatpak#5452
@dbnicholson
Copy link
Contributor

After much debugging with revokefs, I found the problem is triggered by ostree opening the temporary download files O_RDWR. Previously that was being done in /var/tmp, but the last ostree release contained a change to make the temporary downloads in the repo's tmp directory. If you perform a --user install or a --system install as root, this is fine. However, when you do a --system install as an unprivileged user, revokefs-fuse is used as an intermediary.

When a file is opened for writing, revokefs-fuse handles read requests by proxying them to the backend since that has the actual writable file descriptor. That's fine (although slow), but FUSE by default allows use of the kernel page cache. That can be entirely wrong for read when the actual file descriptor to read from is in the backend process. #5454 provides a simple fix that seems to work reliably in my testing.

smcv pushed a commit that referenced this issue Jun 28, 2023
By default, FUSE runs in cached I/O mode[1]. That means some I/O
responses will be taken from the page cache instead of being handled by
the FUSE process. For files opened for reading that's not a problem as
all the requests are just passed through.

However, that is problematic for files opened for writing since those
requests need to be handled by the backend. It's particularly bad for a
file opened `O_RDWR` since `read` responses from the page cache are
likely to be wrong. Instruct FUSE to use `direct-io` for those files so
that the page cache is bypassed.

1. https://docs.kernel.org/filesystems/fuse-io.html

Fixes: #5452
@chriztheanvill
Copy link

Same, in Debian cant install anything.

smcv pushed a commit to smcv/flatpak that referenced this issue Nov 14, 2023
By default, FUSE runs in cached I/O mode[1]. That means some I/O
responses will be taken from the page cache instead of being handled by
the FUSE process. For files opened for reading that's not a problem as
all the requests are just passed through.

However, that is problematic for files opened for writing since those
requests need to be handled by the backend. It's particularly bad for a
file opened `O_RDWR` since `read` responses from the page cache are
likely to be wrong. Instruct FUSE to use `direct-io` for those files so
that the page cache is bypassed.

1. https://docs.kernel.org/filesystems/fuse-io.html

Fixes: flatpak#5452
(cherry picked from commit c4738f8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.