Opened 3 years ago

Last modified 8 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: firedefender1@googlemail.com

Description

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/daemon_entry.py", line 122, in run_daemon
  daemon.start()
File "/usr/lib/python3/dist-packages/deluge/core/daemon.py", line 164, in start
  reactor.run()
File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line 1315, in run
  self.mainLoop()
File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line 1325, in mainLoop
  reactorBaseSelf.runUntilCurrent()
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line 991, in runUntilCurrent
  call.func(*call.args, **call.kw)
File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 345, in _on_alert_session_stats
  self._update_session_cache_hit_ratio()
File "/usr/lib/python3/dist-packages/deluge/core/core.py", 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, 21 months ago

Cc: firedefender1@googlemail.com added

comment:2 by ngdangtu, 15 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: 2.0.5.0
  • 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 15 months ago by ngdangtu (previous) (diff)
Note: See TracTickets for help on using tickets.