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

"bwrap: Can't make symlink at /home: File exists" when running flatpak steam on fedora atomic workstation #1278

Closed
markus-zimmermann opened this issue Dec 27, 2017 · 12 comments

Comments

@markus-zimmermann
Copy link

markus-zimmermann commented Dec 27, 2017

On Fedora Atomic Workstation, when I run

flatpak run com.valvesoftware.Steam

I get the following error message

bwrap: Can't make symlink at /home: File exists

The flatpak version is 0.10.2. I cleanly installed Atomic Workstation and rpm-ostree status gives:

Version: 27.26 (2017-12-22 14:44:29)
BaseCommit: d0da7129dd883735b91c3c1d2e041974d13689ae53b5da5bb1dc4d3fe07cfd66

I'd like to add that so far with atomic workstation everything else worked like a charm and that all the other flatpaks I've installed run without issues.

@mwleeds
Copy link
Collaborator

mwleeds commented Dec 27, 2017

Sounds similar to #959

@markus-zimmermann
Copy link
Author

Retested with

fedora-workstation:fedora/27/x86_64/workstation
Version: 27.57 (2018-01-25 06:57:44)
BaseCommit: d39f7bd0496a874d93b4df12b566ef7476d4abc5b3d92b6fca633f87a09514e7

flatpak version 0.10.2.1

Error still persists.

@cgwalters
Copy link
Collaborator

I haven't fully tried to debug this but offhand I suspect flatpak (or possibly bwrap) needs to chase symlinks when setting up bind mounts.

alexlarsson added a commit to alexlarsson/flatpak that referenced this issue Feb 15, 2018
On atomic /home is a symlink to /var/home, so when we bind-mount
the persistent directories we need to early-resolve the symlinks
to avoid running into issues with /newroot.

In most cases we do this already by calling flatpak_bwrap_add_bind_arg,
but the persistent dir case did not, because that function required
the target to exist, and the persistent directoried might not.
However, these days flatpak_bwrap_add_bind_arg is fine if the base
dir doesn't exists but the target does, which is the case here,
so we can use it now.

This fixes e.g. steam: flatpak#1278
rh-atomic-bot pushed a commit that referenced this issue Feb 15, 2018
On atomic /home is a symlink to /var/home, so when we bind-mount
the persistent directories we need to early-resolve the symlinks
to avoid running into issues with /newroot.

In most cases we do this already by calling flatpak_bwrap_add_bind_arg,
but the persistent dir case did not, because that function required
the target to exist, and the persistent directoried might not.
However, these days flatpak_bwrap_add_bind_arg is fine if the base
dir doesn't exists but the target does, which is the case here,
so we can use it now.

This fixes e.g. steam: #1278

Closes: #1422
Approved by: cgwalters
alexlarsson added a commit that referenced this issue Feb 19, 2018
On atomic /home is a symlink to /var/home, so when we bind-mount
the persistent directories we need to early-resolve the symlinks
to avoid running into issues with /newroot.

In most cases we do this already by calling flatpak_bwrap_add_bind_arg,
but the persistent dir case did not, because that function required
the target to exist, and the persistent directoried might not.
However, these days flatpak_bwrap_add_bind_arg is fine if the base
dir doesn't exists but the target does, which is the case here,
so we can use it now.

This fixes e.g. steam: #1278

Closes: #1422
Approved by: cgwalters
@markus-zimmermann
Copy link
Author

Issue solved! Retested with

ostree:https://fedora-workstation:fedora/28/x86_64/workstation
Version: 28.20180402.n.0 (2018-04-02 12:17:17)
BaseCommit: 2be6a2da62810d97d4af7fe00bbdc20102fe49796c101ef951cd49659356d333

flatpak --version
Flatpak 0.11.3

@noark9
Copy link

noark9 commented Apr 13, 2018

On Fedora Workstation 28, when I run

flatpak run com.valvesoftware.Steam

I get the following error message

bwrap: Can't make symlink at /home/username/.local: File exists

flatpak --version
Flatpak 0.11.3

Error still here.

I make a symlink for ~/.local to another driver before. Seems like my symlink cause this error.

@Firstyear
Copy link

Hi. I think this need to be reopened because the updates do not correct issues such as flathub/org.darktable.Darktable#6 . I believe that there are further issues, and this should be examined better. Thanks,

@omichalek
Copy link

I have the same problem:

$ flatpak run org.darktable.Darktable
bwrap: Can't make symlink at /var/run: File exists

Flatpak 0.11.8.3 (Tumbleweed version)

@PorcelainMouse
Copy link

I don't have Atomic, but I still get this error. Why is steam screwing with this, anyway??

@drschwabe
Copy link

Workaround for Steam, just delete or move the ~/Pictures folder (mine was a symlink) and then restore it after your done playing/using it.

@RossComputerGuy
Copy link

I'm having the same problem on nixOS, it says it wants to symlink ~/.nix-profile which if I remove it, could screw up my user.

@beh-10257
Copy link

@RossComputerGuy any workarounds
I just symlinked my ./local/share/icons to .icons
and now its broken

@beh-10257
Copy link

beh-10257 commented Dec 13, 2023

so supposedly in this image
image

there is no filesystem access in the first place and yet it still wants to access my .icons directory

flatpak run -vv output

steam will not even follow the theme is there a way to just ignore bwrap error and move on

containers/bubblewrap#577
found this hopefully it gets merged soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants