Page 1 of 1

SABnzbd hanging on saving settings

Posted: February 28th, 2009, 1:21 pm
by KingDaveRa
Hi,

I'm running Version 0.4.7 on OpenSuSE 11.1. It's installed from sources.

The issue is related to the configuration dialogue. SABnzbd will start up quite happily, and I can download with it. If I go into the configuration dialogue, make a change, and save it, SABnzbd.py will go to 100% CPU useage, and stay there. I've started SABnzbd with logging at full, and I get this on STDOUT:

Code: Select all

192.168.0.32 - - [28/Feb/2009:17:18:32] "GET /sabnzbd/ HTTP/1.1" 200 - "" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
192.168.0.32 - - [28/Feb/2009:17:18:36] "POST /sabnzbd/ HTTP/1.1" 200 - "http://storage.lan:8080/sabnzbd/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
192.168.0.32 - - [28/Feb/2009:17:18:39] "GET /sabnzbd/config/ HTTP/1.1" 200 - "http://storage.lan:8080/sabnzbd/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
192.168.0.32 - - [28/Feb/2009:17:18:43] "GET /sabnzbd/config/directories/ HTTP/1.1" 200 - "http://storage.lan:8080/sabnzbd/config/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
2009-02-28 17:18:49,437::INFO::SABnzbd shutting down...
2009-02-28 17:18:49,438::DEBUG::Stopping URLGrabber
2009-02-28 17:18:49,439::INFO::[sabnzbd.misc] URLGrabber shutting down
2009-02-28 17:18:49,440::DEBUG::Stopping dirscanner
2009-02-28 17:18:49,441::INFO::[sabnzbd] Saving data for watched_data.sab in /home/sabnzbd/.sabnzbd/cache/watched_data.sab
2009-02-28 17:18:49,442::INFO::[sabnzbd.misc] Dirscanner shutting down
2009-02-28 17:18:49,586::DEBUG::Stopping downloader
2009-02-28 17:18:49,588::INFO::[downloader] Shutting down
2009-02-28 17:18:49,589::DEBUG::Stopping assembler
2009-02-28 17:18:49,590::INFO::[assembler] Shutting down
2009-02-28 17:18:49,591::DEBUG::Stopping postprocessor
2009-02-28 17:18:49,592::INFO::[nzbqueue] Saving queue
2009-02-28 17:18:49,593::INFO::[sabnzbd] Saving data for queue7.sab in /home/sabnzbd/.sabnzbd/cache/queue7.sab
2009-02-28 17:18:49,595::INFO::[sabnzbd] Saving data for bytes7.sab in /home/sabnzbd/.sabnzbd/cache/bytes7.sab
2009-02-28 17:18:49,596::INFO::[sabnzbd] Saving data for rss_data.sab in /home/sabnzbd/.sabnzbd/cache/rss_data.sab
2009-02-28 17:18:49,597::INFO::[sabnzbd] Saving data for watched_data.sab in /home/sabnzbd/.sabnzbd/cache/watched_data.sab
2009-02-28 17:18:49,598::DEBUG::Stopping scheduler
The last line is as far as it gets when it hangs. In this instance, I logged in, navigated to the config page, changed the download directory permissions to something else, and hit save. Then it does the above, and hangs. It'll do it on any configuration setting. Oddly, it does save the changes, it just never returns control. The browser will stay on a blank screen all the time, and the only way out is to kill the pid.

Looking at the startup, it finds everything it wants, and there's no errors except for:

Code: Select all

/opt/SABnzbd-0.4.7/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/opt/SABnzbd-0.4.7/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
Which strikes me as a cherrypy issue, and it's only a warning anyway. hashlib is installed, but it made no different (didn't expect it to).

I'm running SABnzbd under its own user, thus:

/usr/bin/sudo -u sabnzbd -H /opt/SABnzbd/SABnzbd.py -f /home/sabnzbd/.sabnzbd/sabnzbd.ini

It can read and write all those files, and like I say, the changes are saved, it just seems to hang on restarting that scheduler. So I'm all out of ideas. Hopefully somebody else can shed some light?

Re: SABnzbd hanging on saving settings

Posted: February 28th, 2009, 1:30 pm
by switch
Sounds like you are using python 2.6? If so we don't support it, try installing python 2.5 and using that.

Re: SABnzbd hanging on saving settings

Posted: February 28th, 2009, 1:34 pm
by KingDaveRa
I am.

Right, I'll see if I can somehow convince OpenSuSE to run 2.5. Somehow...

Thanks for the reply :)