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

--install with extra-data does not work #3

Open
TingPing opened this issue May 9, 2018 · 6 comments
Open

--install with extra-data does not work #3

TingPing opened this issue May 9, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@TingPing
Copy link
Member

TingPing commented May 9, 2018

error: While trying to apply extra data: Failed to execute child process “/app/libexec/flatpak-bwrap” (No such file or directory)
@TingPing TingPing added the bug Something isn't working label May 9, 2018
@nanonyme
Copy link
Collaborator

I guess this is also a question of incorrect path being used?

@nanonyme
Copy link
Collaborator

(also probably shouldn't happen inside sandbox to begin with...)

@TingPing
Copy link
Member Author

Yeah bwrap will always fail anyway.

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 10, 2021

I wonder if it would be best call to stage a wrapper into “/app/libexec/flatpak-bwrap” that would call flatpak-spawn.

@prodrigestivill
Copy link

prodrigestivill commented Dec 19, 2022

Still failing with a different error.

Example on how to reproduce, run this:

flatpak install --user org.flatpak.Builder
git clone --recurse-submodules https://github.com/flathub/com.nordpass.NordPass.git
cd com.nordpass.NordPass
flatpak run org.flatpak.Builder --verbose --force-clean --user --install build com.nordpass.NordPass.yaml

Error shown:

FB: Using Flatpak version 1.14.1
FB: Running: flatpak install --user -y --noninteractive --reinstall /home/user/com.nordpass.NordPass/.flatpak-builder/cache com.nordpass.NordPass/x86_64/master
Updating runtime/com.nordpass.NordPass.Locale/x86_64/master
Installing app/com.nordpass.NordPass/x86_64/master
bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.
Error: Failed to install com.nordpass.NordPass: While trying to apply extra data: apply_extra script failed, exit status 256
Install failed: Child process exited with code 1

Notes:

  • sysctl kernel.unprivileged_userns_clone is correctly set to 1.
  • Running flatpak install afterwards and outside the flatpak builder container does work.
    • Example: flatpak install --user -y --noninteractive --reinstall /home/user/com.nordpass.NordPass/.flatpak-builder/cache com.nordpass.NordPass/x86_64/master

@o-kotb
Copy link

o-kotb commented Jan 12, 2023

Not sure if this is related, but when running org.flatpak.Builder with --build-shell=some_module I get the same bwrap error as prodrigestivill about it not having permissions to create new namespaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants