Page 1 of 1

0.7.0Beta3 crashes

Posted: April 30th, 2012, 10:17 am
by newk
Hello!

I'm having some problem with this awesome application.
I THINK it started after I upgraded to beta3 but I'm not 100% sure.

This is what is happening. And after that it just restarts itself over and over.

Code: Select all

2012-04-30 17:05:49,407::INFO::[downloader:375] 17@ssl-eu.astraweb.com:563: Initiating connection
2012-04-30 17:05:49,407::INFO::[downloader:375] 18@ssl-eu.astraweb.com:563: Initiating connection
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/share/sabnzbdplus/sabnzbd/downloader.py", line 479, in run
    BPSMeter.do.update(server.id, bytes)
  File "/usr/share/sabnzbdplus/sabnzbd/bpsmeter.py", line 205, in update
    self.grand_total[server] += amount
TypeError: unsupported operand type(s) for +=: 'datetime.timedelta' and 'int'

^C2012-04-30 17:06:01,502::WARNING::[__init__:160] Signal 2 caught, saving and exiting...
2012-04-30 17:06:01,502::INFO::[nzbqueue:174] Saving queue
Linux newk 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 17:34:21 UTC 2012 i686 i686 i386 GNU/Linux
Python 2.7.2+

Any ideas?
Thanks!

Re: 0.7.0Beta3 crashes

Posted: April 30th, 2012, 10:24 am
by shypike
What a bizarre error.
About the only thing I can think of that it is caused by a corrupt
~/.sabnzbd/admin/totals9.sab file.
What happens if you stop SABnzbd, remove the file and start again?
(You will lose your byte counters and quota info.)

Re: 0.7.0Beta3 crashes

Posted: April 30th, 2012, 10:34 am
by newk
So far so good! That seem to have done the trick =)
And I still have the counter at the bottom with total downloaded etc.

Thanks for the fast answer!

Re: 0.7.0Beta3 crashes

Posted: April 30th, 2012, 2:06 pm
by shypike
Did this happen right after upgrading SABnzbd?

Re: 0.7.0Beta3 crashes

Posted: April 30th, 2012, 3:17 pm
by newk
shypike wrote:Did this happen right after upgrading SABnzbd?
I can't say for sure but I think it did.
And now I get this too:

2012-04-30 20:44:39,336::INFO::[__init__:877] Saving data for totals9.sab in /home/niuck/.sabnzbd/admin/totals9.sab
Segmentation fault

And it shuts down.

Everything has been perfect until the last week or so.

Re: 0.7.0Beta3 crashes

Posted: April 30th, 2012, 3:21 pm
by shypike
Segmentation faults indicate serious bugs in Python or one of its libraries.
It's not possible for a normal Python program (like SABnzbd) to cause
segmentation faults, as it's an interpreted language.
It can certainly trigger bugs in the run-time system.
Either that or hardware issues.

Re: 0.7.0Beta3 crashes

Posted: April 30th, 2012, 3:25 pm
by newk
Ok, I will play around with different versions of python a bit and see if that can fix it.
I wouldn't surprise me if it's the hardware that causes it though.

I'm getting all sorts of weird errors now.

2012-04-30 22:24:58,819::ERROR::[__init__:922] Loading /home/niuck/.sabnzbd/admin/postproc1.sab failed
2012-04-30 22:24:58,819::INFO::[__init__:923] Traceback:
Traceback (most recent call last):
File "/usr/share/sabnzbdplus/sabnzbd/__init__.py", line 914, in load_admin
data = cPickle.load(f)
EOFError
2012-04-30 22:24:58,820::INFO::[__init__:901] Loading data for queue9.sab from /home/niuck/.sabnzbd/admin/queue9.sab

edit: Same error with python2.6
edit2: And with sabnzbd 0.6.8