Page 1 of 1

sab daemon restarts every time the queue clears

Posted: January 24th, 2013, 6:36 am
by fr1day
I have an instillation of sab that has been in place and working working perfectly since 2010, but in the last month or so it's started exhibiting some unusual behaviour. Every time the queue clears the sab daemon auto-restarts. I haven't made any changes to sab at all other than upgrading whenever a there is a new release. It's running on Ubuntu 12.04.1 LTS currently running sab 0.7.9-0ubuntu1 from the repository.

The logs indicate that there is some kind of problem in handle_empty_queue() but unfortunately I'm no programmer so I don't know how to get to the bottom of it.

sabnzbd.error.log

Code: Select all

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/share/sabnzbdplus/sabnzbd/postproc.py", line 167, in run
    handle_empty_queue()
  File "/usr/share/sabnzbdplus/sabnzbd/postproc.py", line 648, in handle_empty_queue
    sabnzbd.QUEUECOMPLETEACTION(sabnzbd.QUEUECOMPLETEARG)
  File "/usr/share/sabnzbdplus/sabnzbd/__init__.py", line 761, in run_script
    startupinfo=stup, creationflags=creationflags)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
sabnzbd.log

Code: Select all

2013-01-24 10:44:57,027::INFO::[_cplogging:55] [24/Jan/2013:10:44:57] ENGINE Bus STOPPING
2013-01-24 10:45:02,560::INFO::[_cplogging:55] [24/Jan/2013:10:45:02] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8080)) shut down
2013-01-24 10:45:02,602::INFO::[_cplogging:55] [24/Jan/2013:10:45:02] ENGINE Stopped thread '_TimeoutMonitor'.
2013-01-24 10:45:02,603::INFO::[_cplogging:55] [24/Jan/2013:10:45:02] ENGINE Bus STOPPED
2013-01-24 10:45:02,603::INFO::[_cplogging:55] [24/Jan/2013:10:45:02] ENGINE Bus EXITING
2013-01-24 10:45:02,603::INFO::[_cplogging:55] [24/Jan/2013:10:45:02] ENGINE Bus EXITED
2013-01-24 10:45:02,604::INFO::[_cplogging:55] [24/Jan/2013:10:45:02] ENGINE Re-spawning /usr/bin/sabnzbdplus --daemon --autorestarted
2013-01-24 10:45:06,935::INFO::[_cplogging:55] [24/Jan/2013:10:45:06] ENGINE Bus STARTING
2013-01-24 10:45:06,956::INFO::[_cplogging:55] [24/Jan/2013:10:45:06] ENGINE Started monitor thread '_TimeoutMonitor'.
2013-01-24 10:45:07,165::INFO::[_cplogging:55] [24/Jan/2013:10:45:07] ENGINE Serving on 127.0.0.1:8080
2013-01-24 10:45:07,166::INFO::[_cplogging:55] [24/Jan/2013:10:45:07] ENGINE Bus STARTED
cherrypy.log

Code: Select all

[24/Jan/2013:10:44:57] ENGINE Bus STOPPING
[24/Jan/2013:10:45:02] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8080)) shut down
[24/Jan/2013:10:45:02] ENGINE Stopped thread '_TimeoutMonitor'.
[24/Jan/2013:10:45:02] ENGINE Bus STOPPED
[24/Jan/2013:10:45:02] ENGINE Bus EXITING
[24/Jan/2013:10:45:02] ENGINE Bus EXITED
[24/Jan/2013:10:45:02] ENGINE Re-spawning /usr/bin/sabnzbdplus --daemon --autorestarted
[24/Jan/2013:10:45:06] ENGINE Bus STARTING
[24/Jan/2013:10:45:06] ENGINE Started monitor thread '_TimeoutMonitor'.
[24/Jan/2013:10:45:07] ENGINE Serving on 127.0.0.1:8080
[24/Jan/2013:10:45:07] ENGINE Bus STARTED
Any help at all appreciated.

Re: sab daemon restarts every time the queue clears

Posted: January 24th, 2013, 7:12 am
by shypike
In the dropdown menu at the top right of the queue you can
check and disable the end-of-queue action.

Re: sab daemon restarts every time the queue clears

Posted: January 24th, 2013, 8:59 am
by fr1day
Thanks for the reply shypike. I don't see an end of queue action in there, below is what I see, am I missing something?

Image

For the dropdown menu that says 'on Finish' I have a few of options - Shutdown SABnzbd, Shutdown PC, Standby PC, and Hibernate PC. After that there are my scripts none of which mention end of queue.

Re: sab daemon restarts every time the queue clears

Posted: January 24th, 2013, 9:10 am
by fr1day
Actually ignore me I'm an idiot!

I forgot I was messing and changed the On Finish part from default to blank. default is my default script which probably does nothing when called at the end of the queue, I've since tested it and it seems much better.

Thanks for the help :)