Package: deluged
Version: 2.0.3-4
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I am a recent convert from Gentoo to Debian and installed bookworm yesterday.
I installed deluged to host my large selection of torrents.
In bookworm stable, deluged uses considerably more CPU time than it did under
gentoo, showing > 40% regularly in htop.
I was seeing single digits in Gentoo.
I did some troubleshooting, including starting the daemon directly from the
command line to see if deluged is sending any messages to stdout.
It appears there are a slew of exceptions being handled all day long when it is
operating, saturating the terminal
when it is run directly by the user with -d to keep it attached. I think this
is why the CPU load is so high.
Being Debian stable, this kind of surprised me, which is why I am filing a bug
report.
I have about a 700kB file of a terminal log, but, I will provide a snipplet
below of one of the exceptions.
If you'd like the full file, please let me know and I'll post it if you'd like.
I did have apt remove deluged, deluge-console and then autoremove the unused
deps, and reinstalled it.
No Changes.
Here is one of the exceptions:
Unhandled error in Deferred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/deluge/core/torrentmanager.py", line
697, in add_async_callback
torrent = self._add_torrent_obj(
File "/usr/lib/python3/dist-packages/deluge/core/torrentmanager.py", line
668, in _add_torrent_obj
log.info(
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1905,
in unwindGenerator
return _cancellableInlineCallbacks(gen)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1815,
in _cancellableInlineCallbacks
_inlineCallbacks(None, gen, status)
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660,
in _inlineCallbacks
result = current_context.run(gen.send, result)
File "/usr/lib/python3/dist-packages/deluge/log.py", line 69, in info
yield LoggingLoggerClass.info(self, msg, *args, **kwargs)
File "/usr/lib/python3.11/logging/__init__.py", line 1489, in info
self._log(INFO, msg, args, **kwargs)
File "/usr/lib/python3.11/logging/__init__.py", line 1622, in _log
fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
builtins.TypeError: Logging.findCaller() takes from 1 to 2 positional arguments
but 3 were given
Temporarily disabling observer LegacyLogObserverWrapper(<bound method
TwistedLoggingObserver.emit of <deluge.log.TwistedLoggingObserver object at
0x7f089b3d7ed0>>) due to exception: [Failure instance: Traceback: <class
'TypeError'>: Logging.findCaller() takes from 1 to 2 positional arguments but 3
were given
/usr/lib/python3/dist-packages/twisted/internet/defer.py:1794:_cancellableInlineCallbacks
/usr/lib/python3/dist-packages/twisted/internet/defer.py:344:__del__
/usr/lib/python3/dist-packages/twisted/logger/_logger.py:190:failure
/usr/lib/python3/dist-packages/twisted/logger/_logger.py:142:emit
--- <exception caught here> ---
/usr/lib/python3/dist-packages/twisted/logger/_observer.py:81:__call__
/usr/lib/python3/dist-packages/twisted/logger/_legacy.py:90:__call__
/usr/lib/python3/dist-packages/deluge/log.py:204:emit
/usr/lib/python3.11/logging/__init__.py:1536:critical
/usr/lib/python3.11/logging/__init__.py:1622:_log
]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1794,
in _cancellableInlineCallbacks
def handleCancel(result: Failure) -> Deferred[object]:
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 344, in
__del__
log.failure(format, self.failResult, debugInfo=debugInfo)
File "/usr/lib/python3/dist-packages/twisted/logger/_logger.py", line 190, in
failure
self.emit(level, format, log_failure=failure, **kwargs)
File "/usr/lib/python3/dist-packages/twisted/logger/_logger.py", line 142, in
emit
self.observer(event)
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/logger/_observer.py", line 81,
in __call__
observer(event)
File "/usr/lib/python3/dist-packages/twisted/logger/_legacy.py", line 90, in
__call__
self.legacyObserver(event)
File "/usr/lib/python3/dist-packages/deluge/log.py", line 204, in emit
getattr(LoggingLoggerClass, event_dict['log_level'].name)(
File "/usr/lib/python3.11/logging/__init__.py", line 1536, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "/usr/lib/python3.11/logging/__init__.py", line 1622, in _log
fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
builtins.TypeError: Logging.findCaller() takes from 1 to 2 positional arguments
but 3 were given
-- System Information:
Debian Release: 12.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64
Kernel: Linux 6.1.0-17-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages deluged depends on:
ii adduser 3.134
ii deluge-common 2.0.3-4
ii init-system-helpers 1.65.2
ii python3 3.11.2-1+b1
ii python3-libtorrent 2.0.8-1+b1
ii sysvinit-utils [lsb-base] 3.06-4
deluged recommends no packages.
deluged suggests no packages.
-- Configuration Files:
/etc/default/deluged changed [not included]
/etc/init.d/deluged changed [not included]
-- no debconf information