Amusing logging issue with SABnzbd.exe.log file

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
joetf
Release Testers
Release Testers
Posts: 1
Joined: October 15th, 2009, 5:17 pm

Amusing logging issue with SABnzbd.exe.log file

Post by joetf »

So, problem is, file in question...grew a bit.

To about 700MB size, netting 6mln lines of fascinating log information (if notepad++ is to be trusted with counting lines of files that have more lines it has chars in it's code:P).

It's probably fixed, since modified date is 2010-07-01, it's still bloody amusing.

I believe that you need full information, so I took to attach offending file (nope, even 6GB ram is not enough to do c&p in windows). Will post nice, rared up archive somewhere (compression ratio is pretty impressive:P).

Log itself looks like this:

Code: Select all

  File "logging\handlers.pyo", line 73, in emit
  File "logging\handlers.pyo", line 147, in shouldRollover
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "logging\handlers.pyo", line 73, in emit
  File "logging\handlers.pyo", line 147, in shouldRollover
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "logging\handlers.pyo", line 73, in emit
  File "logging\handlers.pyo", line 147, in shouldRollover
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "logging\handlers.pyo", line 73, in emit
  File "logging\handlers.pyo", line 147, in shouldRollover
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "logging\handlers.pyo", line 73, in emit
  File "logging\handlers.pyo", line 147, in shouldRollover
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "logging\handlers.pyo", line 73, in emit
  File "logging\handlers.pyo", line 147, in shouldRollover
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "logging\handlers.pyo", line 73, in emit
  File "logging\handlers.pyo", line 147, in shouldRollover
ValueError: I/O operation on closed file


....multiplied few million times.

It's quite noteworthy, that adding datestamps would make it so much more useful.



In this particular case it's going to be fix_by_deletion, but I'm curious if the bug was squashed in the past and what could have caused it.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Amusing logging issue with SABnzbd.exe.log file

Post by shypike »

From our know issues list http://wiki.sabnzbd.org/known-issues
Sometimes logging stops.
This is a notorious bug in Python logging. SABnzbd will function as normal.
If you run from sources or use the —console option with the Win32-binary, you will see that logging continues in the console window, but nothing will be written to the log-files.
It's a long standing bug in Python (for Windows) that its developers cannot (or will not) solve.
The best advise is to set logging to just Errors/Warnings, because you don't need
the Info and Debug messages.
Post Reply