SABnzbd hanging on saving settings

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
KingDaveRa
Newbie
Newbie
Posts: 2
Joined: February 28th, 2009, 1:09 pm

SABnzbd hanging on saving settings

Post 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?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: SABnzbd hanging on saving settings

Post 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.
KingDaveRa
Newbie
Newbie
Posts: 2
Joined: February 28th, 2009, 1:09 pm

Re: SABnzbd hanging on saving settings

Post by KingDaveRa »

I am.

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

Thanks for the reply :)
Post Reply