Repository navigation
Closed
Labels
Description
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.14.0
What Linux distribution are you using?
Fedora Silverblue
Linux distribution version
37
What architecture are you using?
x86_64
How to reproduce
- Add a systemd automount in fstab
//172.21.0.208/Partage /mnt/srv-data-3 cifs x-systemd.automount,x-systemd.idle-timeout=60,_netdev,credentials=/var/home/gnumdk/.local/share/mount/smbcredentials,uid=1000,gid=1000,x-gvfs-hide 0 0
Expected Behavior
Flatpak applications run even if automount host not available
Actual Behavior
sept. 22 20:42:08 xps13 kernel: CIFS: Attempting to mount \\172.21.0.208\Partage
sept. 22 20:42:08 xps13 systemd[1]: Mounting var-mnt-srv\x2ddata\x2d3.mount - /var/mnt/srv-data-3...
sept. 22 20:42:08 xps13 systemd[1404]: dbus-:[email protected]: Failed with result 'exit-code'.
sept. 22 20:42:08 xps13 systemd[1404]: dbus-:[email protected]: Main process exited, code=exited, status=1/FAILURE
sept. 22 20:42:08 xps13 systemd[1]: var-mnt-srv\x2ddata\x2d3.automount: Got automount request for /var/mnt/srv-data-3, triggered by 2732 (gvfsd-r>
sept. 22 20:42:08 xps13 flatpak[12081]: error: Failed to sync with dbus proxy
sept. 22 20:42:08 xps13 flatpak[12089]: bwrap: Can't bind mount /oldroot/var on /newroot/var: Unable to remount recursively with correct flags: N>
sept. 22 20:42:08 xps13 systemd[1]: Failed to mount var-mnt-srv\x2ddata\x2d3.mount - /var/mnt/srv-data-3.
sept. 22 20:42:08 xps13 systemd[1]: var-mnt-srv\x2ddata\x2d3.mount: Failed with result 'exit-code'.
sept. 22 20:42:08 xps13 systemd[1]: var-mnt-srv\x2ddata\x2d3.mount: Mount process exited, code=exited, status=32/n/a
sept. 22 20:42:08 xps13 kernel: CIFS: VFS: cifs_mount failed w/return code = -115
sept. 22 20:42:08 xps13 kernel: CIFS: VFS: Error connecting to socket. Aborting operation.
sept. 22 20:42:08 xps13 mount[12067]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
sept. 22 20:42:08 xps13 mount[12067]: mount error(115): Operation now in progress
Additional Information
At work, all is working as expected: server is available.
At home, no more flatpak apps run.
F36 is pinned in Silverblue, rebooting to F36 and all is working as expected. So it's a regression.
Reacted by Simon Marquardt, wil-m, Marco Neumann, biberino, Ige, Evan Chang, NickSkier , plutonic1, Martin Carton, nivkner and 5 more
Activity
[-][Bug]: [/-][+][Bug]: Flatpak applications do not run if a systemd automount failed to mount[/+]Ige-fi commentedon Jan 7, 2024
I'm experiencing the same issue on Fedora Workstation 38 with my Flatpak apps. The Flatpak version is 1.15.4. It’s weird that this is blocking the applications from starting even though they have nothing to do with the automount filesystem. I'm using an automount setup precisely because my home server's NFS share is in no way mandatory for my desktop PC to function.
Non-Flatpak apps like Nautilus launch just fine even if the automount filesystem can't be mounted.
evanc577 commentedon Jan 28, 2024
Also saw this today with an sshfs automount, all flatpak apps failed to start until the network share became available.
Arch Linux
Flatpak 1.15.6
systemd 255 (255.2-2-arch)
eblanshey commentedon Sep 8, 2024
I just had an issue where no flatpaks could start/run due to an inaccessible NFS mount. What's the relation to running flatpaks?
smcv commentedon Sep 9, 2024
Flatpak doesn't know which top-level directories your OS relies on to be able to run arbitrary host executables like
xdg-dbus-proxy: normally the answer is just/bin,/lib*and/usr, but some OSs use different top-level directories like/opt,/nixand/gnu, and in principle you might have compiled your ownxdg-dbus-proxythat was linked to libraries in/mnt/extra-libraries/lib. So when Flatpak is setting up a host-system-like namespace to runxdg-dbus-proxy, it has to make the pessimistic assumption that every top-level directory is functionally necessary.crepererum commentedon Sep 9, 2024
I think this issue is not only about top-level directories. The original post mentions
/mnt/srv-data-3and I've experienced similar issues with network mounts under/mnt.smcv commentedon Sep 9, 2024
Each top-level directory gets remounted recursively, so any failure to access a mount point below the top-level is fatal.
This is not strictly necessary for the
xdg-dbus-proxyuse-case, because the namespace we're creating forxdg-dbus-proxyis only for identification and not a security boundary, unlike the namespace we create for the actual application - but bubblewrap doesn't know that (and there is currently no mechanism by which that information can be communicated to it), so it must pessimistically assume that a failure to set mount flags on any mount point would be a security vulnerability (undermining the intended security boundary of the sandbox), and must therefore "fail closed".crepererum commentedon Sep 9, 2024
Could the mount point forwarding maybe not force-mount automount points, i.e. leave them as automount?
smcv commentedon Sep 9, 2024
Not really: bubblewrap is not in a position to prove that this would not cause a security vulnerability. It needs to remount all mount points to apply
MS_NODEV(if not using--dev-bind),MS_NOSUID(always), andMS_RDONLY(if using--ro-bind), and it is not possible to change the flags on an automount point without accessing and mounting it.Something like containers/bubblewrap#653 could potentially mitigate this, by giving Flatpak a way to tell bubblewrap "actually, this isn't a security boundary, so just do your best" when it runs
xdg-dbus-proxy.eblanshey commentedon Sep 11, 2024
Thank you for trying to address this. It took a lot of frustration to determine why the majority of my applications weren't starting. I can't imagine a non-techie person figuring out via a cli command that no apps would open due to a mount that was set up in the
/mntdirectory, so I'm glad the issue is getting addressed.smcv commentedon Sep 11, 2024
To be fair, I can't imagine a non-techie person setting up an NFS automount in the first place...
crepererum commentedon Sep 11, 2024
I agree with the "NFS is for techies", but I think it's the UX implication that is weird and hence impactful: you set the automount up, start your Flatpak Apps via UI interaction (e.g. Gnome app launcher), go on a trip and then none of your apps start. To dig out THAT connection (esp. when your browser no longer starts as well) is not that trivial, esp. if you don't know the Flatpak/bubblewrap design.
eblanshey commentedon Sep 12, 2024
I set up Linux machines and recommend them to other non-techie people, as well. Dreaming to get as close to "Linux is just as good as Windows/Mac" scenario as I can!
@crepererum that is literally what happened to me :D
Leonito2003 commentedon Jul 10, 2025
Is there any news on this ? My flatpaks often fail to start because of an automount on Ubuntu 24.04, flatpak 1.14.7.
At least a workaround would be nice, my mount is only available if a certain vpn is connected so most of the time it is unavailable
1 remaining item
crepererum commentedon Jul 24, 2025
Here's what I did, but I'm not sure if that even counts as a "workaround": I was using systemd automounts, which had the effect that is described in this very ticket. I then removed the automount and just kept the
.mountunits, which I just start on demand (i.e. whenever I wanna access files from my NAS). So no automount anymore, but since I don't need it that often it's fine.Chocolateandmilkwin commentedon Aug 21, 2025
+1 I would love to be able to open my programs while my NAS is powered down.
You really realize of much of a single point of failure flatpaks are, when you suddenly can't even open your browser to search for a solution to your problem.
swick commentedon Aug 21, 2025
Getting rid of the xdg-dbus-proxy (for which we kind of have a long term plan) would fix this issue. Until then, I don't see how we could work around it.
carpediem29 commentedon Sep 14, 2025
My Work around is to stop all automount services when I don't want to power up my NAS but we need this bug to be fixed.
It's a pity : I moved my NAS mounts from autofs to systemd thinking this would be better.
rriemann commentedon Sep 17, 2025
I also bumped into this very issue. I had troubles to google this issue. So I drop here a few more keywords: I used autofs with systemd on Fedora to reach my NAS. Respective line in fstab:
After trying several times to lauch Kmail, it worked eventually.
Do you have a trick on how reliably get flatpak apps to work once faced with this issue?
rriemann commentedon Sep 18, 2025
I found a trick myself. With
sudo journalctl -fI found out the name of the automount systemd unit (for mevar-mnt-sun.automount). Then, I stopped it. My flatpak app that was hanging before opened immediately.check the status:
disabling permanently:
carpediem29 commentedon Sep 21, 2025
@rriemann It's what I mentioned in my previous post.
It's best to disable the Automount services (through systemctl disable) & just start them whenever we need to use our NAS.
bubblewrap: Add `--not-a-security-boundary` flag to enable fail-open …
bubblewrap: Add `--not-a-security-boundary` flag to enable fail-open …
bubblewrap: Add `--not-a-security-boundary` flag to enable fail-open …
bubblewrap: Add `--not-a-security-boundary` flag to enable fail-open …
eumelzocker commentedon Jun 13, 2026
Unfixed bug since almost 4 years...
Came from Windows a couple of weeks ago. It seems like I bet on the wrong horse with my flatpack based distro...
eblanshey commentedon Jun 13, 2026
It's possible that setting an NFS mount to be a "soft" rather than "hard" mount could solve the issue, as I didn't encounter it anymore for some time after making the change. I can't experiment anymore as I've switched to NixOS but hopefully it helps someone.
smcv commentedon Sep 22, 2026
With bubblewrap 0.13.0 (released today) on Linux kernel 5.2 or later, bubblewrap will attempt to use
mount_setattr()to set mount flags recursively, without waiting for automount points to resolve.If you have services that are not always available, then yes, I would recommend not having them be part of your filesystem in a known-non-working state when on networks where they are not available.