Bug 2026730 - twisted unhanded error when running deluge
Summary: twisted unhanded error when running deluge
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: deluge
Version: 35
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Cronenworth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-25 16:31 UTC by Tom Seewald
Modified: 2021-12-15 02:12 UTC (History)
2 users (show)

Fixed In Version: deluge-2.0.3-20.fc35
Clone Of:
Environment:
Last Closed: 2021-12-15 02:12:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tom Seewald 2021-11-25 16:31:16 UTC
Description of problem:
After running deluge-gtk for a period of time (~30 minutes to an hour) it will begin filling the system journal with the following twisted error that repeats once every second.
Stopping deluge causes the errors to cease.

plasmashell[8232]: 10:19:36 [CRITICAL][twisted                           :147 ] Unhandled Error
plasmashell[8232]: Traceback (most recent call last):
plasmashell[8232]:   File "/usr/lib/python3.10/site-packages/deluge/ui/gtk3/gtkui.py", line 246, in start
plasmashell[8232]:     reactor.run()
plasmashell[8232]:   File "/usr/lib/python3.10/site-packages/twisted/internet/_glibbase.py", line 277, in run
plasmashell[8232]:     self._run()
plasmashell[8232]:   File "/usr/lib/python3.10/site-packages/gi/overrides/Gtk.py", line 1680, in main
plasmashell[8232]:     return _Gtk_main(*args, **kwargs)
plasmashell[8232]:   File "/usr/lib/python3.10/site-packages/twisted/internet/_glibbase.py", line 308, in _simulate
plasmashell[8232]:     self.runUntilCurrent()
plasmashell[8232]: --- <exception caught here> ---
plasmashell[8232]:   File "/usr/lib/python3.10/site-packages/twisted/internet/base.py", line 994, in runUntilCurrent
plasmashell[8232]:     call.func(*call.args, **call.kw)
plasmashell[8232]:   File "/usr/lib/python3.10/site-packages/deluge/core/core.py", line 345, in _on_alert_session_stats
plasmashell[8232]:     self._update_session_cache_hit_ratio()
plasmashell[8232]:   File "/usr/lib/python3.10/site-packages/deluge/core/core.py", line 361, in _update_session_cache_hit_ratio
plasmashell[8232]:     self.session_status['disk.num_blocks_cache_hits'] / blocks_read
plasmashell[8232]: builtins.KeyError: 'disk.num_blocks_cache_hits'

Version-Release number of selected component (if applicable):
deluge-common-2.0.3-18.fc35.noarch
deluge-daemon-2.0.3-18.fc35.noarch
deluge-gtk-2.0.3-18.fc35.noarch
python3-twisted-21.7.0-2.fc35.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Start deluge-gtk
2. Wait for ~30 minutes

Actual results:
The above error and backtrace is logged to the journal once per second.

Expected results:
No errors filling the journal.

Additional info:
I have not noticed any functional problems with deluge, however having the system journal spammed is far from ideal when investigating other problems.

Comment 1 Tom Seewald 2021-12-04 16:47:16 UTC
Upstream has a fix for this [1], but it is not yet in an official release of deluge. I can confirm that with this change the errors have ceased.

[1] https://github.com/deluge-torrent/deluge/commit/89189adb24321c3db6bfa816ec557d7d8367ba24

Comment 2 Fedora Update System 2021-12-06 15:36:08 UTC
FEDORA-2021-e4348bf48a has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e4348bf48a

Comment 3 Fedora Update System 2021-12-07 01:21:35 UTC
FEDORA-2021-e4348bf48a has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e4348bf48a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e4348bf48a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-12-15 02:12:31 UTC
FEDORA-2021-e4348bf48a has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


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