[Bug 1217306] New: distrobox stuck at starting container
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306 Bug ID: 1217306 Summary: distrobox stuck at starting container Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.6 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Containers Assignee: containers-bugowner@suse.de Reporter: lubos.kocman@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Created attachment 870843 --> https://bugzilla.suse.com/attachment.cgi?id=870843&action=edit few seconds of strace -p 5212 2>&1 | tee /tmp/strace-out.log Following happened on Leap 15.6 lkocman@localhost:~/Workspace> distrobox enter mirror Error: no such container mirror Cannot find container mirror Creating the container with command: /usr/bin/distrobox-create -i registry.opensuse.org/opensuse/distrobox:latest -n mirror Trying to pull registry.opensuse.org/opensuse/distrobox:latest... Getting image source signatures Copying blob 942e611a39d7 done Copying blob 1517c1ea8bb6 done Copying config 8372decf75 done Writing manifest to image destination 8372decf752e74665fcb94d31b9b378dd1790233ab36b03d37f63dac462e0fbc Creating 'mirror' using image registry.opensuse.org/opensuse/distrobox:latest [ OK ] Distrobox 'mirror' successfully created. To enter, run: distrobox enter mirror Container mirror is not running. Starting container mirror run this command to follow along: podman logs -f mirror Starting container... # Stuck here for 30 minutes or so lkocman@localhost:~/Workspace> ps aux | grep distro lkocman 5210 0.0 0.0 11096 3328 pts/0 S+ 08:13 0:00 /bin/sh /usr/bin/distrobox enter mirror lkocman 5212 2.1 0.0 11224 3840 pts/0 S+ 08:13 0:53 /bin/sh /usr/bin/distrobox-enter mirror lkocman 27424 0.0 0.0 8212 2304 pts/1 S+ 08:56 0:00 grep --color=auto distro Strace seems that the program itself is busy Not sure if this isn't an issue rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27782, si_uid=1000, si_status=0, si_utime=2, si_stime=0} --- wait4(-1, 0x7ffc3cd5bbd0, WNOHANG, NULL) = -1 ECHILD (No child processes) rt_sigreturn({mask=[]}) = 0 openat(AT_FDCWD, "/home/lkocman/.cache/.mirror.fifo", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TCGETS, 0x7ffc3cd5c4f0) = -1 ENOTTY (Inappropriate ioctl for device) -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c1
Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c2
--- Comment #2 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
Dirk Mueller
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c3
--- Comment #3 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c4
Danish Prakash
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c5
--- Comment #5 from Dario Faggioli
Hi Lubos, which podman and distrobox version are you running? I came across this issue upstream[1][2] that has the fixes merged and discussed. Given you're running Leap, can you try configuring your podman logging driver to "file" in containers.conf?
[1] - https://github.com/89luca89/distrobox/issues/286 [2] - https://github.com/89luca89/distrobox/issues/287
Leap seems to have distrobox 1.4.2, which should have the fixes. But, yes, it's worth checking if the problem could be related to the podman logging configuration. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c6
--- Comment #6 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c7
--- Comment #7 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c8
Dario Faggioli
dario@localhost:~> distrobox enter test Error: no such container test Creating the container test Trying to pull registry.opensuse.org/opensuse/distrobox:latest... Getting image source signatures Copying blob 3f501f5dfd08 done | Copying blob 2c46e69ca941 done | Copying config 98f2e40d0f done | Writing manifest to image destination 98f2e40d0f804ddcf8a55d3e8e8905f46bf6c439ead61ac0ed17b4ca02e8cd0f Creating 'test' using image registry.opensuse.org/opensuse/distrobox:latest [ OK ] Distrobox 'test' successfully created. To enter, run:
distrobox enter test
Starting container... [ OK ] Installing basic packages... [ OK ] Setting up devpts mounts... [ OK ] Setting up read-only mounts... [ OK ] Setting up read-write mounts... [ OK ] Setting up host's sockets integration... [ OK ] Integrating host's themes, icons, fonts... [ OK ] Setting up package manager exceptions... [ OK ] Setting up rpm exceptions... [ OK ] Setting up distrobox profile... [ OK ] Setting up sudo... [ OK ] Setting up groups... [ OK ] Setting up users... [ OK ] Setting up skel... [ OK ]
Container Setup Complete! dario@test:~>
Version of distrobox in Tumbleweed is the latest:
dario@localhost:~> distrobox --version distrobox: 1.6.0.1
In /usr/share/containers/containers.conf I have
# Logging driver for the container. Available options: k8s-file and journald. # log_driver = "journald"
So, this seems to be either an old distrobox issue or an (old?) podman issue. I'm not sure when I'll be able to spend time debugging distrobox 1.4 or 1.5 on Leap. In fact, if we're still in time (are we, Lubos?), we probably should push 1.6.0.1 to, at least, Leap 15.6. If it's podman, then I don't really know... :-( -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c9
Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c10
--- Comment #10 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c11
Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c12
--- Comment #12 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c13
Dario Faggioli
I see that people complained about this before https://github.com/containers/podman/issues/18987
Yeah, they also mention:
As the error says this is not supported you have to change your event logger to journald or the container logger to k8s-file. You can set this in containers.conf, see log_driver and events_logger.
Which is what I meant when I said it might be a podman issue. distrobox should have a workaround for that, and I honestly don't see why it would not work... But, anyway, let's first check how things are with the newest release of distrobox in place. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c14
--- Comment #14 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c15
--- Comment #15 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c16
--- Comment #16 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c17
Alexandre Vicenzi
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c18
--- Comment #18 from Lubos Kocman
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c19
Alexandre Vicenzi
Not on my machine any more :-) Or at lest I do get different error, but it's no longer stuck. So imho this is resolved, and we should open a new issue.
Which OS, podman, and distrobox version you have? I can re-test to ensure it got fixed since the last time I tried. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1217306
https://bugzilla.suse.com/show_bug.cgi?id=1217306#c20
Lubos Kocman
participants (1)
-
bugzilla_noreply@suse.com