-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman run leaks dbus-daemon processes #4483
Comments
Definitely looks like our linger code, or similar |
we are not enabling linger mode anymore automatically. I wonder if it is just systemd spawning these processes when required (socket activation?). Does the number keep increasing if you launch more containers or is it constant? |
It always leaks two processes, regardless of if I've already run it. |
Just did some more tests; if I have a user dbus daemon already running, it does not leak (or perhaps doesn't spawn in the first place) and dbus-daemon processes. |
so I think it is socket activation, systemd spawns dbus-daemon if it is needed and not not already running. Podman doesn't do anything to start it up, just opens a connection. |
I'm seeing this problem; is there any resolution? The user is a distcc daemon, so I can't expect it to spawn a dbus-daemon process. |
Same problem here with
spawns a new dbus-daemon process each time it is run. But in a newer system it does not happen:
|
Podman run |
Looks like this is the |
There are two dbus sessions generated.
The second one is executed when the container is stopped.
My use-case is Zabbix (the monitoring solution) having to run a container. Probably something related with "zabbix" not being a proper user. |
I have same issue with podman v1.9.0 rootless container. Seems podman expects DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus path to be present. It got resolved once I created directory /run/user/1000/bus . There is not systemd running in the base container. |
Same here on podman 1.6.4. Sufficient to run "podman ps" a number of times to get an equal amount of dbus-daemon processes. Problem started after upgrading from from RHEL 7.7 to RHEL 7.8. |
@mheon could you please re-open |
@giuseppe PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@giuseppe Did you ever get a chance to look at this? |
I'll try to cut some time next week, go-dbus probably spawns a dbus-daemon if there is not already one running. We should not try to use systemd if it is not available. |
Creating a directory named bus seems to fix issue with leaks. But considering /run/user/.../bus should be a socket, it makes me worried about possible side-effects. |
@giuseppe Did you ever get to this? |
drop check for current cgroup ownership if the cgroup manager is not set to systemd. Closes: containers#4483 Signed-off-by: Giuseppe Scrivano <[email protected]>
I've opened a PR here: #6569 |
I would like to reopen this issue. I'm experiencing this issue. podman 4.3.1 on arch linux. My I see that the parent process of the dbus-daemon processes is pid 1. It seems like they are requested to be created by podman through the system bus in |
/kind bug
Description
Running
podman run --rm busybox
(which container doesn't matter) leaks two dbus-daemon processes. I am running rootless. I do not have a user dbus daemon running, only a system one.Logs with
--log-level debug
: https://gist.github.com/ajeddeloh/4884936398d9ce6203a4ba4e40c39b73Steps to reproduce the issue:
pgrep dbus-daemon | wc -l
podman run --rm busybox
pgrep dbus-daemon | wc -l
Note that there are two more.Describe the results you received:
Two dbus-daemon processes were leaked
Describe the results you expected:
No processes are leaked
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
On laptop, running Gentoo.
The text was updated successfully, but these errors were encountered: