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]: Fails to install any application: Could not unmount revokefs-fuse filesystem #5104

Closed
4 tasks done
notseanray opened this issue Sep 17, 2022 · 11 comments · Fixed by #5695
Closed
4 tasks done
Labels

Comments

@notseanray
Copy link

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.12.2

What Linux distribution are you using?

Gentoo Linux

Linux distribution version

5.18.1-gentoo-r2 #3

What architecture are you using?

x86_64

How to reproduce

  1. run flatpak install flathub com.usebottles.bottles
  2. alternatively, run flatpak install flathub org.gnome.Platform/x86_64/42

Expected Behavior

Installs bottles or the desired application

Actual Behavior

Starts to download dependencies but after each dependency is downloaded this warning is put in the terminal.

Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-JLUYS1/org.freedesktop.Platform.GL.default-G58MS1: Child
process exited with code 1

After all dependencies are installed this error occurs and it fails.

error: Failed to install org.gnome.Platform: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-JLUYS1/org.gnome.Platform-3IALS1: Child process exited with code 1

This is the case for every package I attempt to install.

image

image

Additional Information

output of stat /usr/bin/fusermount

  File: /usr/bin/fusermount
  Size: 35424           Blocks: 72         IO Block: 4096   regular file
Device: 10303h/66307d   Inode: 8785934     Links: 1
Access: (4711/-rws--x--x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-09-16 20:03:03.132608560 -0400
Modify: 2022-09-16 20:03:03.942608618 -0400
Change: 2022-09-16 20:03:05.075608700 -0400
 Birth: 2022-09-16 20:03:03.132608560 -0400

I am curious if having both of these installed causes the issue
fusermount --version

fusermount version: 2.9.9

fusermount3 --version

fusermount3 version: 3.11.0

uname -a

Linux gentoo 5.18.1-gentoo-r2 #3 SMP PREEMPT_DYNAMIC Sat Jun 18 19:33:04 EDT 2022 x86_64 AMD Ryzen 7 1700 Eight-Core Processor AuthenticAMD GNU/Linux

I looked through previous issues but could not find anyone with a similar problem.

@irfanhakim-as
Copy link

irfanhakim-as commented May 2, 2023

UPDATE

Note that THIS IS NOT NECESSARILY the cause or the solution to the OP's issue, it just so happens that our similar issue (on surface), was solved on my end. Scouring through the issues list, this problem could have varying causes from something wrong with flatpak (presumably fixed since 1.14.0-2), or with your fusermount/fusermount3. In my case it's the latter.

As stated in my issue below, my flatpak version is 1.15.4, fusermount version 2.9.9 and fusermount3 version 3.14.0. I also have a secondary PC that is also based on EndeavourOS Linux x86_64, and was set up similarly to my main machine but solely for entertainment. In my attempt to fully the update that system, including its flatpaks, everything went smoothly as it used to on my main one.

I then checked the versions of the earlier 3 packages i mentioned, and found that the fusermount3 version was slightly newer (3.14.1) on my entertainment PC. I then checked the source of fusermount3 on each machine, and found that my main machine uses $HOME/.local/podman/bin/fusermount3, while my entertainment PC uses /usr/bin/fusermount3.

Checking the /usr/bin/fusermount3 version shows that my main machine too has 3.14.1 and was probably the binary it has been using before. What changed that was, some time ago I had installed podman for distrobox, and I had $HOME/.local/podman/bin in my shell path which took priority over /usr/bin.

To fix this issue on my end, I simply had to ensure /usr/bin is higher up in my $PATH list, which then now uses the correct fusermount3 version 3.14.1 (/usr/bin/fusermount3). Performing flatpak update now works perfectly, as intended.

Old Issue

I am only now just having this error when running flatpak update, or by attempting to update flatpak packages using plasma-discover, the Discover app would just crash. Never had this issue previously, and nothing in mind was done to have caused this.

I saw that this issue may also be present in one of the unstable version of SteamOS 3 on Steam Decks, as detailed in this Steam Community Bug Report on April 27 2023: Flatpak applications unable to be installed or updated on Main.

This issue seems to also be related and has been closed, but the solution seems to have been to upgrade to a particular Flatpak 1.14.0 version, which isn't really helpful in my case: #5073.

Flatpak version

1.15.4

What Linux distribution are you using?

EndeavourOS Linux x86_64

Linux distribution version

6.2.13-arch1-1

What architecture are you using?

x86_64

Additional Information

fusermount version

2.9.9

fusermount3 version

3.14.0

Result of updating all pending apps using flatpak update

❯ flatpak update
Looking for updates…

New com.discordapp.Discord permissions:
    dbus access [1]

    [1] org.freedesktop.ScreenSaver

New org.kde.audiotube permissions:
    bus ownership [1]

    [1] org.mpris.MediaPlayer2.AudioTube


        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [—] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [✗] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [✗] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [✗] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [✗] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [✗] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [✗] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
        ID                                                         Branch             Op             Remote             Download
 1. [✗] io.mpv.Mpv.Locale                                          stable             u              flathub                1.0 kB / 46.8 kB
 2. [✗] org.freedesktop.Platform.GL.nvidia-530-41-03               1.4                u              flathub              344.3 MB / 345.2 MB
 3. [✗] org.freedesktop.Platform.GL32.nvidia-525-89-02             1.4                u              flathub              414.1 MB / 415.0 MB
 4. [✗] org.freedesktop.Platform.GL32.nvidia-530-41-03             1.4                u              flathub              344.3 MB / 345.2 MB
 5. [✗] org.gnome.Platform.Compat.i386                             43                 u              flathub                1.1 kB / 198.9 MB
 6. [✗] org.gnome.Platform.Locale                                  43                 u              flathub                1.0 kB / 340.6 MB
 7. [✗] org.gnome.Platform.Locale                                  44                 u              flathub                1.0 kB / 340.5 MB
 8. [\] org.gnome.Platform                                         44                 u              flathub                1.0 kB / 326.4 MB
 9. [ ] com.github.tchx84.Flatseal                                 stable             u              flathub            < 151.7 kB
10. [ ] org.gnome.Platform                                         43                 u              flathub            < 329.3 MB
11. [ ] org.gimp.GIMP                                              stable             u              flathub            < 127.4 MB
12. [ ] com.visualstudio.code                                      stable             u              flathub             < 92.4 MB
13. [ ] org.signal.Signal                                          stable             u              flathub            < 150.0 MB
14. [ ] io.mpv.Mpv                                                 stable             u              flathub             < 38.4 MB
15. [ ] com.microsoft.Edge                                         stable             u              flathub            < 148.6 MB
16. [ ] com.discordapp.Discord                                     stable             u              flathub             < 96.1 MB
17. [ ] org.kde.audiotube                                          stable             u              flathub             < 11.4 MB
18. [ ] com.borgbase.Vorta                                         stable             u              flathub             < 15.0 MB
19. [ ] org.kde.kdenlive.Locale                                    stable             u              flathub              < 2.7 MB (partial)
20. [ ] org.kde.kdenlive                                           stable             u              flathub             < 81.7 MB
21. [ ] org.mozilla.Thunderbird.Locale                             stable             u              flathub             < 41.7 MB (partial)
22. [ ] org.mozilla.Thunderbird                                    stable             u              flathub             < 81.0 MB
23. [ ] org.mozilla.firefox.Locale                                 stable             u              flathub             < 49.5 MB (partial)
24. [ ] org.mozilla.firefox                                        stable             u              flathub             < 90.7 MB
25. [ ] org.telegram.desktop.Locale                                stable             u              flathub              < 2.8 MB (partial)
26. [ ] org.telegram.desktop                                       stable             u              flathub             < 78.8 MB

Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/io.mpv.Mpv.Locale-WRBS41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/io.mpv.Mpv.Locale-WRBS41: Child process exited with code 1
(internal error, please report)
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL.nvidia-530-41-03-X2WD41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL.nvidia-530-41-03-X2WD41: Child process exited with code 1
(internal error, please report)
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL32.nvidia-525-89-02-Q2SR41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL32.nvidia-525-89-02-Q2SR41: Child process exited with code 1
(internal error, please report)
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL32.nvidia-530-41-03-XUGT41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL32.nvidia-530-41-03-XUGT41: Child process exited with code 1
(internal error, please report)
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform.Compat.i386-DKTJ41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform.Compat.i386-DKTJ41: Child process exited with code 1
(internal error, please report)
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform.Locale-HGSC41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform.Locale-HGSC41: Child process exited with code 1
(internal error, please report)
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform.Locale-GLTH41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform.Locale-GLTH41: Child process exited with code 1
(internal error, please report)
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform-OGRJ41: Child process exited with code 1
Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.gnome.Platform-OGRJ41: Child process exited with code 1

(flatpak update:145467): GLib-CRITICAL **: 14:09:03.979: g_propagate_error: assertion 'src != NULL' failed

(flatpak update:145467): GLib-CRITICAL **: 14:09:03.979: g_error_copy: assertion 'error != NULL' failed

(flatpak update:145467): GLib-CRITICAL **: 14:09:03.979: g_propagate_error: assertion 'src != NULL' failed
**
GLib:ERROR:../glib/glib/gerror.c:1156:g_propagate_prefixed_error: assertion failed: (*dest != NULL)
Bail out! GLib:ERROR:../glib/glib/gerror.c:1156:g_propagate_prefixed_error: assertion failed: (*dest != NULL)
fish: Job 1, 'flatpak update' terminated by signal SIGABRT (Abort)

Result of updating a single flatpak app (org.kde.audiotube) using plasma-discover

❯ plasma-discover
fetch ratings! false
adding empty sources model QStandardItemModel(0x5632c2c782d0)
no component found for "com'.endeavouros.endeavouros"
file:https:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:https:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:https:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:https:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:https:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:https:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/ToolBarPageHeader.qml:80:13: QML Binding: Binding loop detected for property "value"
file:https:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/ToolBarPageHeader.qml:86:13: QML Binding: Binding loop detected for property "value"
fusermount3: failed to unmount /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL.nvidia-530-41-03-AG4T41: Operation not permitted

(process:180088): flatpak-WARNING **: 17:44:05.525: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL.nvidia-530-41-03-AG4T41: Child process exited with code 1
fusermount3: failed to unmount /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL.nvidia-530-41-03-AG4T41: Operation not permitted

(process:180088): flatpak-WARNING **: 17:44:05.532: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-E6FG41/org.freedesktop.Platform.GL.nvidia-530-41-03-AG4T41: Child process exited with code 1

(process:180088): GLib-CRITICAL **: 17:44:05.536: g_propagate_error: assertion 'src != NULL' failed
fish: Job 1, 'plasma-discover' terminated by signal SIGSEGV (Address boundary error)

@rstanuwijaya
Copy link

Also experienced the same issue, SteamOS 3 main channel.

@rjshrjndrn

This comment was marked as off-topic.

@smcv
Copy link
Collaborator

smcv commented Jun 2, 2023

Same error for audiotube

No, what you quoted there is not the same error at all. It looks like an unrelated bug in the app itself.

@smcv
Copy link
Collaborator

smcv commented Jun 2, 2023

@irfanhakim-as:

I then checked the source of fusermount3 on each machine, and found that my main machine uses $HOME/.local/podman/bin/fusermount3, while my entertainment PC uses /usr/bin/fusermount3.

flatpak will have been running the first fusermount3 or fusermount that is found in the PATH, and expecting that to be correct. It seems unlikely that a copy of fusermount that is installed per-user can work reliably, because fusermount needs to be setuid root to do its job (at least on older distributions, perhaps not true any more on very new distribution versions) and something that you have installed into your home directory will not be setuid root.

If this is a common failure mode, then the way to resolve it would be for flatpak to detect the path to a known-good fusermount or fusermount3 at build-time, and run that.

@smcv
Copy link
Collaborator

smcv commented Jun 2, 2023

@notseanray:

I am curious if having both [fusermount and fusermount3] installed causes the issue

Perhaps. FUSE 3's version of fusermount (usually installed as fusermount3) can unmount filesystems that were mounted using either FUSE 3 or FUSE 2, so on the Linux distributions I'm familiar with (such as Debian), /usr/bin/fusermount is just a symbolic link to /usr/bin/fusermount3. Does Gentoo not do that?

If this is a common failure mode, then the way to resolve it would be for flatpak to either use fusermount3 when it was compiled using the FUSE 3 library, or have a build-time option to set and hard-code the appropriate FUSE unmount executable for this particular distribution (which Gentoo would presumably set to fusermount3 or even /usr/bin/fusermount3).

@smcv
Copy link
Collaborator

smcv commented Jun 2, 2023

@rstanuwijaya: There is not enough information in your comment to diagnose whether your situation is the same as @notseanray, or the same as @irfanhakim-as, or something different. What is the output of command -v fusermount , command -v fusermount3, fusermount --version and fusermount3 --version on your system?

@dtantono
Copy link

dtantono commented Nov 17, 2023

Hi
it looks like Flatpak and distrbox cannot get along between each other
image

@dtantono
Copy link

@irfanhakim-as I saw this problem happens on SteamOS 3.5.5 stable version and I need to delete the .local/podman folder and i want to reinstall it from scratch (curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/uninstall | sh -s -- --prefix ~/.local) But, when I tried to create new container I got this:
distrobox create --image archlinux:latest archlinux

Image archlinux:latest not found.
Do you want to pull the image now? [Y/n]: y
ERRO[0000] validating network configs invalid cni_plugin_dirs: /home/deck/.local/podman/lib/cni
What do you think?

@13013SwagR
Copy link

I had the same issue and have podman/distrobox installed, moving /usr/bin up in the $PATH fixed the problem and distrobox still works.

@landonepps
Copy link

landonepps commented Jan 27, 2024

For me this was caused by a different version of libfuse I installed via homebrew. Running brew unlink libfuse fixed it.

pabloyoyoista added a commit to pabloyoyoista/flatpak that referenced this issue Feb 16, 2024
The hard-coding is not appropriate. According to libfuse 3.0.0 release
notes: "The fusermount and mount.fuse binaries have been renamed to
fusermount3 and mount.fuse3 to allow co-installation of libfuse 2.x
and 3.x". Some distributions seem to install a symlink, but this is
not upstream's default behavior.

In addition, fusermount might be provided from non-distro sources. So
a build-time option takes precedence over auto-detection logic.

Fixes flatpak#5104

Fixes flatpak#5694
pabloyoyoista added a commit to pabloyoyoista/flatpak that referenced this issue Feb 16, 2024
The hard-coding is not appropriate. According to libfuse 3.0.0 release
notes: "The fusermount and mount.fuse binaries have been renamed to
fusermount3 and mount.fuse3 to allow co-installation of libfuse 2.x
and 3.x". Some distributions seem to install a symlink, but this is
not upstream's default behavior.

In addition, fusermount might be provided from non-distro sources. So
a build-time option takes precedence over auto-detection logic.

Fixes flatpak#5104

Fixes flatpak#5694
pabloyoyoista added a commit to pabloyoyoista/flatpak that referenced this issue Feb 17, 2024
The hard-coding is not appropriate. According to libfuse 3.0.0 release
notes: "The fusermount and mount.fuse binaries have been renamed to
fusermount3 and mount.fuse3 to allow co-installation of libfuse 2.x
and 3.x". Some distributions seem to install a symlink, but this is
not upstream's default behavior.

In addition, fusermount might be provided from non-distro sources. So
a build-time option takes precedence over auto-detection logic.

Fixes flatpak#5104

Fixes flatpak#5694
smcv pushed a commit that referenced this issue Feb 19, 2024
The hard-coding is not appropriate. According to libfuse 3.0.0 release
notes: "The fusermount and mount.fuse binaries have been renamed to
fusermount3 and mount.fuse3 to allow co-installation of libfuse 2.x
and 3.x". Some distributions seem to install a symlink, but this is
not upstream's default behavior.

In addition, fusermount might be provided from non-distro sources. So
a build-time option takes precedence over auto-detection logic.

Fixes #5104

Fixes #5694
GeorgesStavracas pushed a commit to GeorgesStavracas/flatpak that referenced this issue Apr 26, 2024
The hard-coding is not appropriate. According to libfuse 3.0.0 release
notes: "The fusermount and mount.fuse binaries have been renamed to
fusermount3 and mount.fuse3 to allow co-installation of libfuse 2.x
and 3.x". Some distributions seem to install a symlink, but this is
not upstream's default behavior.

In addition, fusermount might be provided from non-distro sources. So
a build-time option takes precedence over auto-detection logic.

Fixes flatpak#5104

Fixes flatpak#5694
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.

8 participants