Rotate sabnzbd.error.log

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
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Rotate sabnzbd.error.log

Post by pven »

When I look at the logging, sabnzbd.log is rotated. Is it possibkle to add something like that for sabnzbd.error.log also? Or is it already there, and didn't I see it? :)
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Rotate sabnzbd.error.log

Post by sander »

Well ... on a healthy setup sabnzbd.error.log should be 0 bytes, or small.

So if your sabnzbd.error.log is big, I would focus on solving the underlying problems.
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: Rotate sabnzbd.error.log

Post by pven »

When I am right, it can't be solved that easy. But I can not remember what the cause is. :-D

Can I find out by looking up the errors in sabnzbd.log?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Rotate sabnzbd.error.log

Post by sander »

pven wrote: March 26th, 2019, 6:51 am When I am right, it can't be solved that easy. But I can not remember what the cause is. :-D

Can I find out by looking up the errors in sabnzbd.log?
No, not in sabnzbd.log, but in sabnzbd.error.log
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: Rotate sabnzbd.error.log

Post by pven »

It looks like that is a binary file. When opening with vi or something like that, I can not read anything useful.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Rotate sabnzbd.error.log

Post by sander »

Strange; SAB writes just plain to it.

Well, then just delete it.
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: Rotate sabnzbd.error.log

Post by pven »

Ok, I will. Thanks! Consider this as solved. :-)
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: Rotate sabnzbd.error.log

Post by pven »

To be complete: when downloading, sometimes I get a lot of errors like the one below.

Code: Select all

ERROR 21 minutes ago [08/Apr/2019:13:34:29] HTTP 
Traceback (most recent call last):
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cprequest.py", line 663, in respond
    self.body.process()
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cpreqbody.py", line 989, in process
    super(RequestBody, self).process()
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cpreqbody.py", line 558, in process
    proc(self)
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cpreqbody.py", line 223, in process_multipart_form_data
    process_multipart(entity)
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cpreqbody.py", line 203, in process_multipart
    b = entity.readline()
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cpreqbody.py", line 480, in readline
    return self.fp.readline(size)
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cpreqbody.py", line 860, in readline
    data = self.read(chunksize)
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/_cpreqbody.py", line 824, in read
    data = self.fp.read(chunksize)
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/wsgiserver/__init__.py", line 360, in read
    data = self.rfile.read(size)
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/wsgiserver/__init__.py", line 1138, in read
    data = self.recv(left)
  File "/volume1/@appstore/sabnzbd/share/SABnzbd/cherrypy/wsgiserver/__init__.py", line 1070, in recv
    data = self._sock.recv(size)
  File "/var/packages/python/target/lib/python2.7/ssl.py", line 766, in recv
    return self.read(buflen)
  File "/var/packages/python/target/lib/python2.7/ssl.py", line 653, in read
    v = self._sslobj.read(len)
SSLError: ('The read operation timed out',)
I understood this has to do with https and slowness of my Synology, but I don't want to disable that.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Rotate sabnzbd.error.log

Post by sander »

My guess is that that error does NOT pop up in sabnzbd.error.log, so no need to rotate sabnzbd.error.log, right?

EDIT

Wow, wait: I checked my own synology, and is has a big sabnzbd.error.log too, with binary garbage in it.

I'll make a bug report of that: https://github.com/sabnzbd/sabnzbd/issues/1269
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: Rotate sabnzbd.error.log

Post by pven »

Thanks Sander!
Post Reply