Page 1 of 1

sabnzbdplus-0.7.17Beta3 crashing on repair

Posted: February 28th, 2014, 4:16 am
by schmitt56
Hello,
my name is Chris, I am new to this forum. I am using SAB on my little arm device (dockstar, debian wheezy, kernel 3.2.23) for a longer time with no problems so far. However I am testing the beta relase of SABnzbd for some weeks now. Unfortunately SABnzbd keeps crashing when I am trying to repair the queue (status->Queue repair->Repair). It was never reproducable, but now I can reproduce the crash constantly.
SABnzbd just dies.
This is what I found in ~/.sabnzbd/logs/sabnzbd.log :

Code: Select all

2014-02-28 09:14:56,310::INFO::[sabnzbdplus:1250] --------------------------------
2014-02-28 09:14:56,313::INFO::[sabnzbdplus:1251] sabnzbdplus-0.7.17Beta3 (rev=35381555a95837b499a9d3a565cff3ca6e2e3d12)
2014-02-28 09:14:56,315::INFO::[sabnzbdplus:1263] Platform = posix
2014-02-28 09:14:56,317::INFO::[sabnzbdplus:1264] Python-version = 2.7.3 (default, Jan  2 2013, 22:35:13)
[GCC 4.6.3]
2014-02-28 09:14:56,320::INFO::[sabnzbdplus:1265] Arguments = /usr/bin/sabnzbdplus --pidfile /var/run/sabnzbdplus/pid
2014-02-28 09:14:56,322::INFO::[sabnzbdplus:1278] Read INI file /root/.sabnzbd/sabnzbd.ini
2014-02-28 09:14:56,436::INFO::[__init__:941] Loading data for bookmarks.sab from /root/.sabnzbd/admin/bookmarks.sab
2014-02-28 09:14:56,439::INFO::[__init__:941] Loading data for rss_data.sab from /root/.sabnzbd/admin/rss_data.sab
2014-02-28 09:14:56,442::INFO::[__init__:941] Loading data for totals9.sab from /root/.sabnzbd/admin/totals9.sab
2014-02-28 09:14:56,445::DEBUG::[bpsmeter:171] Read quota q=0.0 l=0.0 reset=0
2014-02-28 09:14:56,449::INFO::[postproc:91] Loading postproc queue
2014-02-28 09:14:56,451::INFO::[__init__:941] Loading data for postproc1.sab from /root/.sabnzbd/admin/postproc1.sab
Output starting SABnzbd in command line:
/usr/bin/python -OO /usr/bin/sabnzbdplus --pidfile /var/run/sabnzbdplus/pid

Code: Select all

2014-02-28 09:14:56,436::INFO::[__init__:941] Loading data for bookmarks.sab from /root/.sabnzbd/admin/bookmarks.sab
2014-02-28 09:14:56,439::INFO::[__init__:941] Loading data for rss_data.sab from /root/.sabnzbd/admin/rss_data.sab
2014-02-28 09:14:56,442::INFO::[__init__:941] Loading data for totals9.sab from /root/.sabnzbd/admin/totals9.sab
2014-02-28 09:14:56,445::DEBUG::[bpsmeter:171] Read quota q=0.0 l=0.0 reset=0
2014-02-28 09:14:56,449::INFO::[postproc:91] Loading postproc queue
2014-02-28 09:14:56,451::INFO::[__init__:941] Loading data for postproc1.sab from /root/.sabnzbd/admin/postproc1.sab
Traceback (most recent call last):
  File "/usr/bin/sabnzbdplus", line 1834, in <module>
    main()
  File "/usr/bin/sabnzbdplus", line 1289, in main
    init_ok = sabnzbd.initialize(pause, clean_up, evalSched=True, repair=repair)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 31, in newFunction
    return f(*args, **kw)
  File "/usr/share/sabnzbdplus/sabnzbd/__init__.py", line 316, in initialize
    NzbQueue.do.read_queue(repair)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 107, in read_queue
    self.scan_jobs(not folders)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 131, in scan_jobs
    items = sabnzbd.proxy_build_history()[0]
  File "/usr/share/sabnzbdplus/sabnzbd/__init__.py", line 1121, in proxy_build_history
    return sabnzbd.api.build_history()
  File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 1791, in build_history
    rating = Rating.do.get_rating_by_nzo(item['nzo_id'])
AttributeError: 'NoneType' object has no attribute 'get_rating_by_nzo'
Whats wrong here ?

Regards,
Chris

Re: sabnzbdplus-0.7.17Beta3 crashing on repair

Posted: February 28th, 2014, 10:15 am
by shypike
Please upgrade to 0.7.17RC1

Re: sabnzbdplus-0.7.17Beta3 crashing on repair

Posted: March 1st, 2014, 4:57 am
by schmitt56
Unfortunately with RC1 I get the same error:


~/.sabnzbd/logs/sabnzbd.log :

Code: Select all

2014-03-01 10:34:18,482::INFO::[SABnzbd:1262] --------------------------------
2014-03-01 10:34:18,484::INFO::[SABnzbd:1263] SABnzbd.py-0.7.17RC1 (rev=bbb2b27157c7debf41fe08ca787820f27a2f067a)
2014-03-01 10:34:18,487::INFO::[SABnzbd:1275] Platform = posix
2014-03-01 10:34:18,489::INFO::[SABnzbd:1276] Python-version = 2.7.3 (default, Jan  2 2013, 22:35:13)
[GCC 4.6.3]
2014-03-01 10:34:18,491::INFO::[SABnzbd:1277] Arguments = /root/sabcompile/SABnzbd-0.7.17RC1/SABnzbd.py --pidfile /var/run/sabnzbdplus/pid
2014-03-01 10:34:18,494::INFO::[SABnzbd:1290] Read INI file /root/.sabnzbd/sabnzbd.ini
2014-03-01 10:34:18,504::INFO::[__init__:941] Loading data for bookmarks.sab from /root/.sabnzbd/admin/bookmarks.sab
2014-03-01 10:34:18,507::INFO::[__init__:941] Loading data for rss_data.sab from /root/.sabnzbd/admin/rss_data.sab
2014-03-01 10:34:18,510::INFO::[__init__:941] Loading data for totals9.sab from /root/.sabnzbd/admin/totals9.sab
2014-03-01 10:34:18,513::DEBUG::[bpsmeter:171] Read quota q=0.0 l=0.0 reset=0
2014-03-01 10:34:18,516::INFO::[postproc:91] Loading postproc queue
2014-03-01 10:34:18,519::INFO::[__init__:941] Loading data for postproc1.sab from /root/.sabnzbd/admin/postproc1.sab

/usr/bin/python /root/sabcompile/SABnzbd-0.7.17RC1/SABnzbd.py --pidfile /var/run/sabnzbdplus/pid :

Code: Select all

2014-03-01 10:34:18,510::INFO::[__init__:941] Loading data for totals9.sab from /root/.sabnzbd/admin/totals9.sab
2014-03-01 10:34:18,513::DEBUG::[bpsmeter:171] Read quota q=0.0 l=0.0 reset=0
2014-03-01 10:34:18,516::INFO::[postproc:91] Loading postproc queue
2014-03-01 10:34:18,519::INFO::[__init__:941] Loading data for postproc1.sab from /root/.sabnzbd/admin/postproc1.sab
Traceback (most recent call last):
  File "/root/sabcompile/SABnzbd-0.7.17RC1/SABnzbd.py", line 1846, in <module>
    main()
  File "/root/sabcompile/SABnzbd-0.7.17RC1/SABnzbd.py", line 1301, in main
    init_ok = sabnzbd.initialize(pause, clean_up, evalSched=True, repair=repair)
  File "/root/sabcompile/SABnzbd-0.7.17RC1/sabnzbd/decorators.py", line 31, in newFunction
    return f(*args, **kw)
  File "/root/sabcompile/SABnzbd-0.7.17RC1/sabnzbd/__init__.py", line 316, in initialize
    NzbQueue.do.read_queue(repair)
  File "/root/sabcompile/SABnzbd-0.7.17RC1/sabnzbd/nzbqueue.py", line 107, in read_queue
    self.scan_jobs(not folders)
  File "/root/sabcompile/SABnzbd-0.7.17RC1/sabnzbd/nzbqueue.py", line 131, in scan_jobs
    items = sabnzbd.proxy_build_history()[0]
  File "/root/sabcompile/SABnzbd-0.7.17RC1/sabnzbd/__init__.py", line 1121, in proxy_build_history
    return sabnzbd.api.build_history()
  File "/root/sabcompile/SABnzbd-0.7.17RC1/sabnzbd/api.py", line 1791, in build_history
    rating = Rating.do.get_rating_by_nzo(item['nzo_id'])
AttributeError: 'NoneType' object has no attribute 'get_rating_by_nzo'
Besides the "Repair" button does not change anything. I mean, i push on the "Repair" button, but after a while nothing happens, and when manually looking in "Queue repair" tab, there still is the orphaned job listed.
I can only reproduce the above error, when clicking on Status->Queue repair->Repair, quitting sabnzbd and restarting it.

Perhaps I did not install RC1 correctly. I just downloaded the source, untarred and started SABnzbd.py as described above. The previous sabnzbd was installed with apt-get.

BTW, using non beta version works, and the queue is beeing repaired.

Regards,
Chriss

Re: sabnzbdplus-0.7.17Beta3 crashing on repair

Posted: March 1st, 2014, 5:22 am
by shypike
Make sure the "rating feedback" stuff at the bottom of Config-> Switches is all off.

Re: sabnzbdplus-0.7.17Beta3 crashing on repair

Posted: March 1st, 2014, 6:17 am
by schmitt56
Tried that, it is still crashing.

Re: sabnzbdplus-0.7.17Beta3 crashing on repair

Posted: March 3rd, 2014, 4:15 pm
by shypike
Ok, back to the debugger :(

Re: sabnzbdplus-0.7.17Beta3 crashing on repair

Posted: March 7th, 2014, 8:11 am
by shypike
Race condition.
Fixed in next release.