89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.78k stars 398 forks source link

[Error] fakeroot hangs #678

Closed tak2hu closed 1 year ago

tak2hu commented 1 year ago

Describe the bug When running makepkg on arch linux container, it hangs on running fakeroot. The same with running makedeb on an ubuntu focal container, it hangs on running fakeroot.

To Reproduce On archlinux container, I typed yay -S python-fugashi and hangs at running fakeroot. Same on ubuntu with makedeb but with a custom simple PKGBUILD I wrote. I even distrobox create --root, also hangs.

Expected behavior In a normal docker container with exec -it, makedeb runs with no problem

Logs I'll send later

Desktop:

Curve commented 1 year ago

Can confirm this.
Seems to be new, haven't experienced this in the past

Also, even though it does hang for a while, it does resume after some time and everything works normally. So there's just a huge delay when entering fakeroot, this can also be seen when invoking the fakeroot binary manually.

89luca89 commented 1 year ago

Hi @tak2hu @Curve I'm not able to reproduce this on any combination of host/guest I've tried (both rootless and rootful) fakeroot works instantly for me

At least with podman Can you try with podman and let me know?

If podman works then we can investigate if that's a docker-only problem, thanks

actionless commented 1 year ago

add --ulimit nofile=1024:524288 to docker build

89luca89 commented 1 year ago

I've tried again both on podman and docker yay -S python-fugashi and I didn't occur this

I'll close this as I cannot reproduce

D3vil0p3r commented 6 months ago

It can be reproduced by trying to build a tool. Just take a PKGBUILD, as example ffuf, and run makepkg -f -src --noconfirm.

Ashark commented 5 months ago

I can reproduce when using distrobox with debian:11 image, and trying to build a fdupes debian package (following their tutorial).

I did the following:

> docker pull debian:11
> distrobox create --image debian:11 --name debian 11
> distrobox enter debian 11
... # preparation steps to download the package, install dependencies, etc
$ debuild -b -uc -us
... # some info messages
 fakeroot debian/rules clean  # <- hangs at this line

Is there any workaround for this?