Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.27k stars 437 forks source link

bwrap: Permission Denied #4102

Open ObiWanPEZ opened 2 weeks ago

ObiWanPEZ commented 2 weeks ago
          > Worked up until this update, I think. Click "Play," shows "Launching," then goes back to idle. Log attached for attempting to play "Among the Sleep". [aa78f7be2ee64193b6b6444c5fc50157-lastPlay.log](https://github.com/user-attachments/files/17452760/aa78f7be2ee64193b6b6444c5fc50157-lastPlay.log)

this is not a heroic issue, something wrong on your system

Originally posted by @Etaash-mathamsetty in https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/4030#issuecomment-2439616911

Ubuntu 24.04 : received the following error: "[cli] INFO: Launching [key# omitted]..." "pressure-vessel-wrap[11882]: E: Child process exited with code 1: bwrap: setting up uid map: Permission denied." I have been told to check the /etc/subuid & /etc/subgid files to ensure both have: [username]:100000:65536 , which both do. Next, I was told to install uidmap, then log out & back in. I have also restarted since doing this, and my problem still exists. The next step I wasn't sure about, so I came here for verification: "Ubuntu 24.04 uses AppArmor, which may be blocking bwrap", referring to the permission fault. "Create a file, apparmor.d/[gamename], containing the following: /usr/bin/bwrap { /[game path]/ rm->, /[game path]/ rw->, } and restart AppArmor: sudo apparmor_parser -r /etc/apparmor.d/[yourgame]"

Any explanation of what this might do, or if any of this is incorrect, would be welcome. Thanks!

ObiWanPEZ commented 2 weeks ago

I'd be happier if there was a single solution for the program, rather than each individual game.

Etaash-mathamsetty commented 1 week ago

Are you using the snap ?

ObiWanPEZ commented 1 week ago

I am not, but did open / reinstall the new version, when it ceased to work.

Etaash-mathamsetty commented 1 week ago

apparmor shouldn't be involved here at all unless something fishy is happening (like using the snap)