Page 1 of 1

WebGUI not starting (CherrPy)

Posted: October 19th, 2009, 3:20 pm
by gray-um
Some basic info:

Version: 0.4.12
OS: Ubuntu 8.04.3 LTS Hardy
Install-type: linux repository (http://ppa.launchpad.net/jcfp/ppa/ubuntu) see http://forums.sabnzbd.org/index.php?topic=387.0
Skin: Default but not reachable
Firewall Software: None
Are you using IPV6: no

/etc/default/sabnzbdplus:

Code: Select all

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=/home/graham/.sabnzbd/sabnzbd.ini

# [optional] hostname/ip and port number to listen on:
HOST=0.0.0.0
PORT=8081

# [optional] extra command line options, if any:
EXTRAOPTS=
Ok, first off I must say of all the Usenet downloaders out there SABnzbd+ is one of the best. And I've tried several ;) For the last year I've been using it without any problem in combination with Newzbin. A great combination.

However as of last Sunday I had a problem with SABnzbd+ and Newzbin. Bookmarks weren't being downloaded, some other users had the same problem it seems. Anyways, I tried a restart of SABnzbd+ via sudo /etc/init.d/sabnzbdplus restart. This however cause a whole other problem. The webinterface wasn't reachable anymore. I've set it to run on port 8081 on interface 0.0.0.0 but no go. I did a netstat -na | grep 8081 but nothing listening on 8081.

A ps -ef | grep sabnzbdplus gives the following:
graham   23959     1  0 21:43 ?        00:00:00 /usr/bin/python -OO /usr/bin/sabnzbdplus --daemon --config-file /home/graham/.sabnzbd/sabnzbd.ini --server 0.0.0.0:8081

I've tried a full reinstall (first aptitude purge and then (Unofficial) Ubuntu repository for SABnzbd+ as before) but no go. It seems that when I look at the logging it doesn't create anything in CherryPy. Maybe this isn't starting?

Anyways some more info out of the SABnzbd+ logs. After reinstall (removed everything btw, logs, config, cache, etc)

sabnzbd.log:

Code: Select all

2009-10-19 15:47:04,804::INFO::--------------------------------
2009-10-19 15:47:04,804::INFO::sabnzbdplus-0.4.12 (rev=2799)
2009-10-19 15:47:04,804::INFO::Platform = posix
2009-10-19 15:47:04,804::INFO::Python-version = 2.5.2 (r252:60911, Jul 22 2009, 15:35:03) 
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
2009-10-19 15:47:04,805::INFO::No download_dir defined, setting value to "downloads/incomplete"
2009-10-19 15:47:04,805::INFO::No complete_dir defined, setting value to "downloads/complete"
2009-10-19 15:47:04,805::INFO::No script_dir defined, setting value to ""
2009-10-19 15:47:04,805::INFO::No nzb_backup_dir defined, setting value to ""
2009-10-19 15:47:04,806::INFO::No cache_dir defined, setting value to "cache"
2009-10-19 15:47:04,807::INFO::[sabnzbd] Loading data for rss_data.sab from /home/graham/.sabnzbd/cache/rss_data.sab
2009-10-19 15:47:04,808::INFO::[sabnzbd] Loading data for bytes7.sab from /home/graham/.sabnzbd/cache/bytes7.sab
2009-10-19 15:47:04,808::INFO::[sabnzbd] Loading data for queue7.sab from /home/graham/.sabnzbd/cache/queue7.sab
2009-10-19 15:47:04,808::WARNING::[downloader] No active primary servers defined, will not download!
2009-10-19 15:47:04,809::INFO::All processes started
2009-10-19 15:47:04,810::INFO::_yenc module... found!
2009-10-19 15:47:04,810::INFO::celementtree module... found!
2009-10-19 15:47:04,810::INFO::par2 binary... found (/usr/bin/par2)
2009-10-19 15:47:04,810::INFO::unrar binary... found (/usr/bin/rar)
2009-10-19 15:47:04,810::INFO::unzip binary... found (/usr/bin/unzip)
2009-10-19 15:47:04,810::INFO::nice binary... found (/usr/bin/nice)
2009-10-19 15:47:04,810::INFO::ionice binary... found (/usr/bin/ionice)
2009-10-19 15:47:04,810::INFO::pyOpenSSL... found (True)
2009-10-19 15:47:04,811::INFO::Web dir is /usr/share/sabnzbdplus/interfaces/Default
2009-10-19 15:47:04,815::INFO::Starting sabnzbdplus-0.4.12
2009-10-19 15:47:04,819::INFO::[nzbqueue] Saving queue
2009-10-19 15:47:04,819::INFO::[sabnzbd] Saving data for queue7.sab in /home/graham/.sabnzbd/cache/queue7.sab
2009-10-19 15:47:04,819::INFO::[sabnzbd] Saving data for bytes7.sab in /home/graham/.sabnzbd/cache/bytes7.sab
2009-10-19 15:47:04,820::INFO::[sabnzbd] Saving data for rss_data.sab in /home/graham/.sabnzbd/cache/rss_data.sab
2009-10-19 15:47:04,856::INFO::[sabnzbd.misc] URLGrabber starting up
Seems fine to me.

sabnzbd.error.log:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/sabnzbdplus", line 815, in <module>
    main()
  File "/usr/bin/sabnzbdplus", line 759, in main
    '/sabnzbd/m/static': {'staticFilter.on': True, 'staticFilter.dir': os.path.join(web_dir2, 'static')}
TypeError: update() got an unexpected keyword argument 'updateMap'
Mmm tried searching this on the forum but didn't find anything.

cherrpy.log is empty

Hope somebody knowns what the heck is going on here. I hate downloading with torrents.

Minor update. When I use the source instead of the apt-get/aptitude version it works like a charm. Using my backupped sabnzbd.ini

python /usr/local/bin/sabnzbd/SABnzbd.py -s 0.0.0.0:8081 -d -f /home/graham/.sabnzbd/sabnzbd.ini

I think there's something up with CherrPy.

Re: WebGUI not starting (CherrPy)

Posted: October 20th, 2009, 1:07 am
by jcfp
Your setup looks all sane to me. Package for old releases don't get alot of changes, and certainly none that I'd expect to have an impact on this part of the program.

Could you test what happens if you use the source release but with the included cherrypy removed? And if that brings back the bug, reinstall the python-cherrypy package and try again pls?

Re: WebGUI not starting (CherrPy)

Posted: October 20th, 2009, 6:26 am
by gray-um
jcfp wrote: Your setup looks all sane to me. Package for old releases don't get alot of changes, and certainly none that I'd expect to have an impact on this part of the program.

Could you test what happens if you use the source release but with the included cherrypy removed? And if that brings back the bug, reinstall the python-cherrypy package and try again pls?
After renaming cherrpy dir to something else, I can't get in on the GUI so that's the same and find the following in error log (sabnzbd.error.log):

Code: Select all

Traceback (most recent call last):
  File "/usr/local/bin/sabnzbd/SABnzbd.py", line 828, in <module>
    main()
  File "/usr/local/bin/sabnzbd/SABnzbd.py", line 772, in main
    '/sabnzbd/m/static': {'staticFilter.on': True, 'staticFilter.dir': os.path.join(web_dir2, 'static')}
TypeError: update() got an unexpected keyword argument 'updateMap'
And after installing python-cherrpy package:

Code: Select all

Traceback (most recent call last):
  File "/usr/local/bin/sabnzbd/SABnzbd.py", line 828, in <module>
    main()
  File "/usr/local/bin/sabnzbd/SABnzbd.py", line 772, in main
    '/sabnzbd/m/static': {'staticFilter.on': True, 'staticFilter.dir': os.path.join(web_dir2, 'static')}
TypeError: update() got an unexpected keyword argument 'updateMap'
Renamed cherrpy dir in source back to original / removed python-cherrpy package and no errors.

Re: WebGUI not starting (CherrPy)

Posted: October 20th, 2009, 6:37 am
by jcfp
Sounds like an incompatibility between hardy's cherrypy version 2.2.1 and the 2.3 - what else is new :-X - that comes with the source release and newer releases of ubuntu; probably triggered by changes in 0.4.12 (filter stuff?). Will change the ppa package for old releases (<= hardy) tonight to come with their own included copy of cherrypy rather than use the systemwide one which should fix this issue.

Re: WebGUI not starting (CherrPy)

Posted: October 20th, 2009, 6:40 am
by gray-um
jcfp wrote: Sounds like an incompatibility between hardy's cherrypy version 2.2.1 and the 2.3 - what else is new :-X - that comes with the source release and newer releases of ubuntu; probably triggered by changes in 0.4.12 (filter stuff?). Will change the ppa package for old releases (<= hardy) tonight to come with their own included copy of cherrypy rather than use the systemwide one which should fix this issue.
Ah. Thx for the info.

Re: WebGUI not starting (CherrPy)

Posted: October 20th, 2009, 11:11 am
by jcfp
Fix uploaded (build pending), once it's available please test and let me know if it works.

Re: WebGUI not starting (CherrPy)

Posted: October 22nd, 2009, 6:39 am
by gray-um
jcfp wrote: Fix uploaded (build pending), once it's available please test and let me know if it works.
I've just tried it but no go. Same issue.

For now I'm keeping with the source.

Same error in logging btw:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/sabnzbdplus", line 815, in <module>
    main()
  File "/usr/bin/sabnzbdplus", line 759, in main
    '/sabnzbd/m/static': {'staticFilter.on': True, 'staticFilter.dir': os.path.join(web_dir2, 'static')}
TypeError: update() got an unexpected keyword argument 'updateMap'

Re: WebGUI not starting (CherrPy)

Posted: October 22nd, 2009, 12:21 pm
by jcfp
Finally got around to doing some ubuntu archeology and dug up my 8.04 live-cd. Using that, I cannot reproduce this problem: program starts fine, interfaces seem ok (all with the original 0.4.12 package) and no errors in the log either, so for now I'm gonna put that back until either this bug can be reproduced in a clean environment, or more complaints start coming in...