Page 1 of 1

Rotate sabnzbd.error.log

Posted: March 26th, 2019, 5:54 am
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? :)

Re: Rotate sabnzbd.error.log

Posted: March 26th, 2019, 6:32 am
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.

Re: Rotate sabnzbd.error.log

Posted: March 26th, 2019, 6:51 am
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?

Re: Rotate sabnzbd.error.log

Posted: March 26th, 2019, 7:07 am
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

Re: Rotate sabnzbd.error.log

Posted: March 26th, 2019, 7:15 am
by pven
It looks like that is a binary file. When opening with vi or something like that, I can not read anything useful.

Re: Rotate sabnzbd.error.log

Posted: March 26th, 2019, 7:19 am
by sander
Strange; SAB writes just plain to it.

Well, then just delete it.

Re: Rotate sabnzbd.error.log

Posted: March 26th, 2019, 7:22 am
by pven
Ok, I will. Thanks! Consider this as solved. :-)

Re: Rotate sabnzbd.error.log

Posted: April 8th, 2019, 6:56 am
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.

Re: Rotate sabnzbd.error.log

Posted: April 8th, 2019, 7:20 am
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

Re: Rotate sabnzbd.error.log

Posted: April 8th, 2019, 7:38 am
by pven
Thanks Sander!