Opened 2 years ago

Last modified 4 months ago

#3512 new bug

builtins.KeyError: 'disk.num_blocks_cache_hits' log spam

Reported by: Etienne Dechamps Owned by:
Priority: minor Milestone: needs verified
Component: Unknown Version: 2.0.3
Keywords: Cc:


My Deluge daemon is currently flooding its text output with:

15:21:04 [CRITICAL][twisted                       :147 ] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/deluge/core/", line 122, in run_daemon
File "/usr/lib/python3/dist-packages/deluge/core/", line 164, in start
File "/usr/lib/python3/dist-packages/twisted/internet/", line 1315, in run
File "/usr/lib/python3/dist-packages/twisted/internet/", line 1325, in mainLoop
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/internet/", line 991, in runUntilCurrent
  call.func(*call.args, **
File "/usr/lib/python3/dist-packages/deluge/core/", line 345, in _on_alert_session_stats
File "/usr/lib/python3/dist-packages/deluge/core/", line 361, in _update_session_cache_hit_ratio
  self.session_status['disk.num_blocks_cache_hits'] / blocks_read
builtins.KeyError: 'disk.num_blocks_cache_hits'

This is logged multiple times per second, resulting in massive flooding. This doesn't seem to impair the operation of Deluge itself though.

Running Debian Sid with package versions:

  • deluge 2.0.3-3.1
  • python3-twisted 22.2.0-1
  • python3-libtorrent 2.0.5-6
  • libtorrent-rasterbar2.0 2.0.5-6

Change History (2)

comment:1 by MotoFckr9k, 16 months ago

Cc: added

comment:2 by ngdangtu, 10 months ago

I think I got the same bug, and the error keeps printing out whenever I use deluge-console or in the terminal I run deluged:

  • deluged 2.0.3
  • libtorrent:
  • Python: 3.10.12
  • OS: Linux TUXEDO OS 22.04 jammy

The installing source is from Tuxedo OS repo which is based on Ubuntu.

Last edited 10 months ago by ngdangtu (previous) (diff)
Note: See TracTickets for help on using tickets.