How to Fix D-Bus Service Failures
Abdullah Yıldız <[email protected]> Fri, 7 Mar 2025 17:29:10 +0300
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <CABvne69h1OGN48dL1o8v3d-ZvSMy9fWYtwmpCEkOHGjsAbp1pA@mail.gmail.com> |
Hi,
I have been experiencing an issue for a couple of days in our system,
and I suspect that D-Bus service somehow could not handle the requests
when there are many users active in the system.
When I check the system logs with journalctl -xe, I noticed that there
are some errors flagged:
Mar 05 07:46:08 compute-server xdg-desktop-por[35472]: error:
GDBus.Error:org.freedesktop.DBus.Error.LimitsExceeded: The maximum
number of active connections has been reached
Mar 05 07:46:18 compute-server dbus[1350]: [system] Failed to activate
service 'org.freedesktop.hostname1': timed out
Mar 05 07:46:24 compute-server dbus[1350]: [system] Connection has not
authenticated soon enough, closing it (auth_timeout=3D30000ms, elapsed:
30006ms)
...
:Mar 05 12:19:23 compute-server gnome-session[15079]:
gnome-session-binary[15079]: WARNING: Unable to inhibit system:
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
:Mar 05 12:20:47 compute-server gnome-session-binary[5917]: WARNING:
Unable to inhibit system:
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
...
Mar 06 11:16:53 compute-server dbus[1350]: [system] Connection has not
authenticated soon enough, closing it (auth_timeout=3D30000ms, elapsed:
30006ms)
Mar 06 11:16:53 compute-server sshd[7677]: pam_systemd(sshd:session):
Failed to create session: Connection reset by peer
This is what I observe when I check /usr/share/dbus-1/session.conf:
<!-- the memory limits are 1G instead of say 4G because they can't
exceed 32-bit signed int max -->
<limit name=3D"max_incoming_bytes">1000000000</limit>
<limit name=3D"max_incoming_unix_fds">250000000</limit>
<limit name=3D"max_outgoing_bytes">1000000000</limit>
<limit name=3D"max_outgoing_unix_fds">250000000</limit>
<limit name=3D"max_message_size">1000000000</limit>
<!-- We do not override max_message_unix_fds here since the
in-kernel
limit is also relatively low -->
<limit name=3D"service_start_timeout">120000</limit>
<limit name=3D"auth_timeout">240000</limit>
<limit name=3D"pending_fd_timeout">150000</limit>
<limit name=3D"max_completed_connections">900</limit>
<limit name=3D"max_incomplete_connections">92</limit>
<limit name=3D"max_connections_per_user">100000</limit>
<limit name=3D"max_pending_service_starts">10000</limit>
<limit name=3D"max_names_per_connection">50000</limit>
<limit name=3D"max_match_rules_per_connection">50000</limit>
<limit name=3D"max_replies_per_connection">50000</limit>
I want to understand that overriding some of the D-Bus specific values
(as shown below) would help to fix the issue:
<busconfig>
<!-- default for this is 900 -->
<limit name=3D"max_completed_connections">32768</limit>
<!-- default for this is 92 -->
<limit name=3D"max_incomplete_connections">1000</limit>
<!-- default for this is 100000 -->
<limit name=3D"max_connections_per_user">150000</limit>
</busconfig>
Thank you in advance.
--=20
"Bu mesaj (ve ekleri) gizli bilgi i=C3=A7ermektedir ve sadece g=C3=B6nderil=
en ki=C5=9Fiye=20
y=C3=B6neliktir. Bu e-mailin muhatab=C4=B1 de=C4=9Filseniz veya i=C3=A7eri=
=C4=9Fi ile ilginiz yoksa,=20
Yeditepe =C3=9Cniversitesinin onay=C4=B1 olmaks=C4=B1z=C4=B1n bu mesaj=C4=
=B1n okunmas=C4=B1,=20
de=C4=9Fi=C5=9Ftirilmesi, kopyalanmas=C4=B1, =C3=BC=C3=A7=C3=BCnc=C3=BC ki=
=C5=9Filere a=C3=A7=C4=B1klanmas=C4=B1, yay=C4=B1nlanmas=C4=B1,=20
if=C5=9Fa edilmesi veya iletilmesi yasakt=C4=B1r. Bu mesaj=C4=B1n g=C3=B6nd=
erilmek istendi=C4=9Fi=20
ki=C5=9Fi de=C4=9Filseniz (ya da bu e-posta'y=C4=B1 yanl=C4=B1=C5=9Fl=C4=B1=
kla ald=C4=B1ysan=C4=B1z), l=C3=BCtfen=20
yollayan ki=C5=9Fiyi hemen haberdar ediniz ve mesaj=C4=B1 sisteminizden der=
hal=20
siliniz. E-mail iletiminin g=C3=BCvenli veya hatas=C4=B1z oldu=C4=9Funun ga=
rantisi=20
olmad=C4=B1=C4=9F=C4=B1ndan ge=C3=A7 veya eksik iletim veya i=C3=A7erik ve =
bilgilerde eksiklik,=20
kay=C4=B1p, de=C4=9Fi=C5=9Fiklik veya vir=C3=BCs olabilir. Bu nedenle, bu m=
esaj=C4=B1n iletiminden=20
dolay=C4=B1, Yeditepe =C3=9Cniversitesi , i=C3=A7erikteki hata, eksiklik, d=
o=C4=9Frulu=C4=9Fun ve=20
gizlili=C4=9Fin ihlalinden veya bu yolla bilgi payla=C5=9F=C4=B1m=C4=B1, il=
etimi, depolanmas=C4=B1=20
gibi herhangi bir kullan=C4=B1m=C4=B1ndan hi=C3=A7bir =C5=9Fekilde sorumlu =
de=C4=9Fildir. Bu mesaj=C4=B1n=20
i=C3=A7eri=C4=9Fi yazar=C4=B1na ait olup, =C3=9Cniversitemizin g=C3=B6r=C3=
=BC=C5=9Flerini i=C3=A7ermeyebilir.
Bu=20
mesaj=C4=B1n i=C3=A7eri=C4=9Finde ge=C3=A7en =C3=9Cniversitemizin ad veya n=
an=C4=B1ma yarat=C4=B1lan fikri ve=20
s=C4=B1nai haklar =C3=9Cniversitemize ait olup, maddi ve manevi t=C3=BCm ha=
klar=C4=B1=20
sakl=C4=B1d=C4=B1r.=E2=80=9D
=E2=80=9CThis Message (including any attachments) contains confidential=20
information and is intended only for the individual named. If you are not=
=20
the named adressee or not related with the content of this Message, you are=
=20
forbidden to read, disseminate, distribute, copy, reproduce or modify this=
=20
mail by Yeditepe University. Please notfy the sender immediately if you=20
have received this e-mail by mistake and delete this e-mail from your=20
system. E-mail transmisson can not be guaranteed to be secure or error-free=
=20
as the mail may arrive late or incomplete or the information could be=20
intercepted, corrupted, lost, destroyed, amended, , or contain viruses.=20
Yeditepe University therefore does not accept liability for any errors,=20
loss of integrity or confidentiality or ommissions in the contents of this=
=20
Message or for the information transmission, reception, storage of use of=
=20
such in any way whatsoever, which arise as a result of e-mail transmission.=
=20
Any opinions expressed in this message are those of the author and may not=
=20
necessarily reflect the opinions of Our University.
Copyright in documents=20
created by or on behalf of our University remains vested in us, and we=20
assert all of our moral and intellectual property rights."