Bug 2156830

Summary: [abrt] abrt-tui: call_blocking(): connection.py:634:call_blocking:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened
Product: [Fedora] Fedora Reporter: Sergio Basto <sergio>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: abrt-devel-list, abrt-sig, mgrabovs, michal.toman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/dd3169f3217672bd3f32ae937742dc719ca5d7f3
Whiteboard: abrt_hash:aac17a15db6fa8c99db8bb6558479c25f4700768;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-06 11:50:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Sergio Basto 2022-12-28 22:57:43 UTC
Description of problem:
on startup 

Version-Release number of selected component:
abrt-tui-2.15.1-6.fc37

Additional info:
reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-67dcc8897c5440ffad573c87037ad4d1.scope
cmdline:        /usr/bin/python3 /usr/bin/abrt status --since=1672268141 --not-reported --quiet
crash_function: call_blocking
exception_type: dbus.exceptions.DBusException
executable:     /usr/bin/abrt
interpreter:    python3-3.11.1-1.fc37.x86_64
kernel:         6.0.15-300.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
connection.py:634:call_blocking:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened

Traceback (most recent call last):
  File "/usr/bin/abrt", line 41, in <module>
    namespace.func(namespace)
  File "/usr/lib/python3.11/site-packages/abrtcli/cli/status.py", line 22, in run
    problems = match_lookup(['*'],
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/abrtcli/match.py", line 72, in match_lookup
    problems = problem.list(auth=authenticate)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/problem/__init__.py", line 356, in list
    return [tools.problemify(prob, __proxy) for prob in fun()]
                                                        ^^^^^
  File "/usr/lib64/python3.11/site-packages/problem/proxies.py", line 91, in list
    return [str(prob) for prob in self._dbus_call('GetProblems')]
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/problem/proxies.py", line 53, in _dbus_call
    return getattr(self._iface, fun_name)(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/proxies.py", line 72, in __call__
    return self._proxy_method(*args, **keywords)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/connection.py", line 634, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened

Local variables in innermost frame:
self: <dbus._dbus.SystemBus (system) at 0x7f9f530ada30>
bus_name: dbus.String(':1.83')
object_path: '/org/freedesktop/problems'
dbus_interface: 'org.freedesktop.problems'
method: 'GetProblems'
signature: ''
args: ()
timeout: -1.0
byte_arrays: False
kwargs: {}
get_args_opts: {'byte_arrays': False}
message: <dbus.lowlevel.MethodCallMessage path: /org/freedesktop/problems, iface: org.freedesktop.problems, member: GetProblems dest: :1.83>

Comment 1 Sergio Basto 2022-12-28 22:57:45 UTC
Created attachment 1934799 [details]
File: backtrace

Comment 2 Sergio Basto 2022-12-28 22:57:47 UTC
Created attachment 1934800 [details]
File: cpuinfo

Comment 3 Sergio Basto 2022-12-28 22:57:48 UTC
Created attachment 1934801 [details]
File: environ

Comment 4 Sergio Basto 2022-12-28 22:57:49 UTC
Created attachment 1934802 [details]
File: mountinfo

Comment 5 Sergio Basto 2022-12-28 22:57:50 UTC
Created attachment 1934803 [details]
File: namespaces

Comment 6 Sergio Basto 2022-12-28 22:57:52 UTC
Created attachment 1934804 [details]
File: open_fds

Comment 7 Sergio Basto 2023-07-12 18:27:20 UTC
Similar problem has been detected:

I startup my kde envoirment with on konsole with more than 10 tabs , which are more than 10 shells 
so it try to run abrt-cli more than 10 times in same second 

reporter:       libreport-2.17.11
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-c173760161ed4096916eab639aaa46c1.scope
cmdline:        /usr/bin/python3 /usr/bin/abrt status --since=1688929449 --not-reported --quiet
crash_function: call_blocking
exception_type: dbus.exceptions.DBusException
executable:     /usr/bin/abrt
interpreter:    python3-3.11.4-1.fc37.x86_64
kernel:         6.3.12-100.fc37.x86_64
package:        abrt-tui-2.17.1-1.fc37
reason:         connection.py:634:call_blocking:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened
runlevel:       N 5
type:           Python3
uid:            1000

Comment 8 Sergio Basto 2023-09-04 14:21:07 UTC
this happens because my kde session open one konsole with 12 tabs each tab is one terminal bash  


reporter:       libreport-2.17.11
runlevel:       N 5
interpreter:    python3-3.11.4-1.fc37.x86_64
cmdline:        /usr/bin/python3 /usr/bin/abrt status --since=1693762759 --not-reported --quiet
executable:     /usr/bin/abrt
kernel:         6.4.12-100.fc37.x86_64
package:        abrt-tui-2.17.1-1.fc37
exception_type: dbus.exceptions.DBusException
crash_function: call_blocking
type:           Python3
uid:            1000
comment:        this happens because my kde session open one konsole with 12 tabs each tab is one terminal bash  
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-73c92b1a97d64f49845f9bfe30133d51.scope
reason:         connection.py:634:call_blocking:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened

Comment 9 Aoife Moloney 2023-11-23 00:51:40 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 10 Aoife Moloney 2023-12-06 11:50:36 UTC
Fedora Linux 37 entered end-of-life (EOL) status on None.

Fedora Linux 37 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.