RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1764282 - systemd[XXXXX]: Failed to connect to API bus: Connection refused
Summary: systemd[XXXXX]: Failed to connect to API bus: Connection refused
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: David Tardon
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-22 16:00 UTC by SHAURYA
Modified: 2024-10-01 16:22 UTC (History)
13 users (show)

Fixed In Version: systemd-239-42.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 14:53:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github systemd-rhel rhel-8 pull 110 0 None closed (#1764282) core: remove support for API bus "started outside our own logic" 2021-02-16 08:48:26 UTC
Github systemd systemd pull 9375 0 None closed RFC: core: remove support for API bus "started outside our own logic" 2021-02-16 08:48:26 UTC
Red Hat Knowledge Base (Solution) 5660351 0 None None None 2020-12-18 11:16:55 UTC

Description SHAURYA 2019-10-22 16:00:58 UTC
Description of problem:

When using sudo -iu <user> as root to drop privileges the logs are filled with the following:

Oct 22 11:14:48 [...] systemd[1]: Started Session c403 of user XXX.
Oct 22 11:14:48 [...] sudo[34535]: pam_unix(sudo-i:session): session opened for user XXX by (uid=0)
Oct 22 11:14:48 [...] systemd[1]: Starting User Manager for UID XXXUID...
Oct 22 11:14:48 [...] systemd[34548]: pam_unix(systemd-user:session): session opened for user XXX by (uid=0)
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Started Mark boot as successful after the user session has run 2 minutes.
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Reached target Timers.
Oct 22 11:14:48 [...] systemd[34548]: Failed to connect to API bus: Connection refused
Oct 22 11:14:48 [...] systemd[34548]: Starting D-Bus User Message Bus Socket.
Oct 22 11:14:48 [...] systemd[34548]: Reached target Paths.
Oct 22 11:14:48 [...] systemd[34548]: Listening on D-Bus User Message Bus Socket.
Oct 22 11:14:48 [...] systemd[34548]: Reached target Sockets.
Oct 22 11:14:48 [...] systemd[34548]: Reached target Basic System.
Oct 22 11:14:48 [...] systemd[1]: Started User Manager for UID XXXUID.

It looks like dbus is initalized too late and that several request to dbus are being made.


Version-Release number of selected component (if applicable):

systemd-239-13.el8_0.5.x86_64

How reproducible:

Always

Steps to Reproduce:

Check desription

Actual results:

Contains error messages

Expected results:

Should not contain error messages

Additional info:

Comment 1 Jan Synacek 2019-10-23 07:46:57 UTC
Works for me with systemd-239-18.el8.x86_64.

Comment 12 fcosio 2020-09-14 18:00:49 UTC
I have this same problem with systemd-239-31.el8_2.2.x86_64 - RHEL 8.2

 Sep 12 00:00:52  systemd[1]: Started update of the root trust anchor for DNSSEC validation in unbound.
Sep 12 00:07:01  systemd[1]: Starting Generate a daily summary of process accounting...
Sep 12 00:07:01  systemd[1]: Started Generate a daily summary of process accounting.
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Failed to connect to API bus: Connection refused
Sep 12 00:16:01  systemd[947836]: Started D-Bus User Message Bus.
Sep 12 00:17:01  systemd[947836]: Stopping D-Bus User Message Bus...
Sep 12 00:17:01  systemd[947836]: Stopped D-Bus User Message Bus.
Sep 12 00:31:01  systemd[951579]: Failed to connect to API bus: Connection refused
Sep 12 00:31:01  systemd[951579]: Failed to connect to API bus: Connection refused
Sep 12 00:31:01  systemd[951579]: Failed to connect to API bus: Connection refused
Sep 12 00:31:01  systemd[951579]: Failed to connect to API bus: Connection refused
Sep 12 00:31:01  systemd[951579]: Failed to connect to API bus: Connection refused
......
......

Comment 13 David Tardon 2020-09-16 08:31:40 UTC
(In reply to fcosio from comment #12)
> I have this same problem with systemd-239-31.el8_2.2.x86_64 - RHEL 8.2

That's not surprising. It's not been fixed yet. The fix is scheduled for 8.4.

Comment 16 Lukáš Nykrýn 2020-11-02 14:16:59 UTC
fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/110

Comment 24 errata-xmlrpc 2021-05-18 14:53:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: systemd security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1611


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