Bug 1984531 - Incorrectly opens DBUS_SESSION_BUS_ADDRESS with guid
Summary: Incorrectly opens DBUS_SESSION_BUS_ADDRESS with guid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: podman
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Giuseppe Scrivano
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-21 15:09 UTC by Tomasz Torcz
Modified: 2021-10-03 09:29 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-10-03 09:29:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomasz Torcz 2021-07-21 15:09:38 UTC
Description of problem:
Every time I use podman, it spews some incorrect warning messages:

% podman images
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available 
WARN[0000] For using systemd, you may need to login using an user session 
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 1001` (possibly as root) 
WARN[0000] Falling back to --cgroup-manager=cgroupfs    


From what I gathered around the internet, the message is related to missing DBUS_SESSION_BUS_ADDRESS, but I have it defined (it is Fedora 34 Workstation session):

% echo $DBUS_SESSION_BUS_ADDRESS                     
unix:path=/run/user/1001/bus,guid=817e9ffcfb383869ad17ea8360e7428a


Using strace I can confirm podman is not striping ",guid=…" part when trying to open D-Bus connection:

newfstatat(AT_FDCWD, "/run/user/1001/bus,guid=817e9ffcfb383869ad17ea8360e7428a", 0xc00060a378, 0) = -1 ENOENT (No such file or directory)

In reality, ""/run/user/1001/bus" socket exists and should be used; ""/run/user/1001/bus,guid=817e9ffcfb383869ad17ea8360e7428a" does not exist, thus the error.


Version-Release number of selected component (if applicable):
podman-3.2.3-1.fc34.x86_64

How reproducible:
always

Steps to Reproduce:
1. podman images
2.
3.

Actual results:
Throws incorrect warnings.

Expected results:
Should not print any WARN[0000] lines.

Additional info:
Should remove ",guid=…" part from DBUS_SESSION_BUS_ADDRESS before connecting to D-Bus.

Comment 1 Tomasz Torcz 2021-07-21 15:15:35 UTC
https://github.com/containers/podman/issues/8776 seems like upstream report of this issue (not fixed).

Comment 2 Giuseppe Scrivano 2021-07-26 13:11:49 UTC
opened a PR: https://github.com/containers/common/pull/695

Comment 3 Tomasz Torcz 2021-10-03 09:29:51 UTC
I no longer see the issue with podman-3.4.0-1.fc35.x86_64, thank you.


Note You need to log in before you can comment on or make changes to this bug.