-
Notifications
You must be signed in to change notification settings - Fork 40
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
Build always fails: PermissionError: [Errno 13] Permission denied and alike #210
Comments
Thanks for the report! Hmm at first glance, this seems to podman related, could you give it a try with Docker to narrow the issue down? |
It's also happening with docker, I didn't have it I freshly installed it and I'm using default configuration. Now I just saw that it tries to build with userpriv usersandbox features enabled. There's another issue talking about that iirc. I tried with BOB_FEATURES and FEATURES in my kubler.conf to disable these features but it's not changing anything |
Confirmed. If I use interactive build mode and disable userpriv usersandbox in make.conf it works. How can I disable them for every image build? |
Hmm odd, I'm planning to do the monthly rebuild this Friday, let's see if I can replicate this. Modifying BOB_FEATURES should be enough to unset |
I talked to fast. I tried again, I set -userpriv -usersandbox and it fails after doing |
docker info:
build.log
Files in kubler's distfiles are owned by root:portage |
Did you revert the
As it has write permissions for the group, portage has no issue downloading stuff. All files are owned by |
portage group has write permission to ~/.kubler/distfiles directory and files inside it. I didn't change features. I even have them twice unset
|
Ok, so portage should be running as root but can't write anyways. Do you have some extra hardening on the host that might prevent docker/podman from writing to a host mount? |
I'm using a gentoo hardened profile, but afaik i didnt change anything from defaults for security related config. SELinux is disabled, and I don't know what else I could have nor how i could debug it |
Hmm let's try to narrow it down:
If that fails there is most likely some host related issue. |
It's working fine |
Ok progess. :)
Let's check how the permissions for |
|
Sorry for the delay, I hope you could resolve the issue, it looked liked something specific to your setup as I couldn't replicate the problem. Feel free to reopen if you still need help with this. |
OS: Gentoo hardened amd64
Kubler version: 0.9.8
Build isn't always failing at the same stage. Sometime was when trying to download to /distfiles and sometime when writing to /var/tmp/portage. From my last try from scratch the error was: "portage.exception.PermissionDenied: [Errno 13] Permission denied: b'/var/tmp/portage/virtual/libcrypt-1-r1/.ipc/lock'"
I tried deleting everything (
kubler clean -N; podman rm -a; podman rmi -a; rm -rf ~/.local/share/containers ~/.kubler
) and start from scratch a few times.I also tried to set
BOB_FEATURES="-userfetch -userpriv"
podman info:
The text was updated successfully, but these errors were encountered: