Page 1 of 1

Queue always blank on default 0.6.x install

Posted: May 21st, 2011, 9:09 am
by opychus
Hi, I recently upgraded from 0.5.x to 0.6.1.  With the new version, the queue doesn't show active downloads, it's just blank. I am using out of the box settings with the default plush-gold skin. I tried accessing the page both in Chrome 11 and FireFox 4, and none of them show the queue. The SABnzbd chrome extension shows downloads/progress just fine, and so do the other (classic) skins. This leads me to believe that there is no problem with the queue, but rather something related to the skin/ajax calls that it makes.

Here is an example of a request from the log file:

Code: Select all

2011-05-21 15:19:04,836::INFO::[_cplogging:55] [21/May/2011:15:19:04] HTTP 
Request Headers:
  AUTHORIZATION: Basic bWVkaWFwYzo1NTU1
  REFERER: http://tower:52101/sabnzbd/
  ORIGIN: http://tower:52101
  Content-Length: 16
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
  USER-AGENT: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
  CONNECTION: keep-alive
  COOKIE: queuePerPage=20; histPerPage=10; showDetails=false; histPerPage=50; refreshRate=8; plushHistPerPage=10; plushRefreshRate=4; jqCookieJar_tablesorter=%7B%22showListTable%22%3A%5B%5B5%2C1%5D%2C%5B1%2C0%5D%5D%7D; plushQueuePerPage=10; plushMultiOps=0; session_id=8e2b07c33164086ee236d8b0d103b60b0a265b5c; plushContainerWidth=100%25; plushNoTopMenu=0
  Remote-Addr: 192.168.1.118
  X-REQUESTED-WITH: XMLHttpRequest
  HOST: tower:52101
  ACCEPT: */*
  ACCEPT-LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
  Content-Type: application/x-www-form-urlencoded
  ACCEPT-ENCODING: gzip,deflate,sdch
2011-05-21 15:19:04,838::DEBUG::[_cplogging:55] [21/May/2011:15:19:04] HTTP Traceback (most recent call last):
  File "/boot/custom/etc/sabnzbd/app/cherrypy/_cprequest.py", line 618, in respond
    cherrypy.response.body = self.handler()
  File "/boot/custom/etc/sabnzbd/app/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/boot/custom/etc/sabnzbd/app/sabnzbd/interface.py", line 635, in index
    return template.respond()
  File "_boot_custom_etc_sabnzbd_app_interfaces_Plush_templates_queue_tmpl.py", line 88, in respond
  File "/usr/lib/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
Version: 0.6.1
OS: Slackware (unRAID 4.6)
Install-type: Source
Skin (if applicable): Plush-gold

Re: Queue always blank on default 0.6.x install

Posted: May 21st, 2011, 9:34 am
by shypike
Reported before and solved by reboot.
http://forums.sabnzbd.org/index.php?topic=6912

Re: Queue always blank on default 0.6.x install

Posted: May 21st, 2011, 10:26 am
by opychus
Hm, the reboot didn't solve it for me...
I tried the code snippet from the other thread and it also produced the locale error. However, the following one didn't:

Code: Select all

import locale
locale.setlocale(locale.LC_ALL, None)
locale.format('%d', 2000000, True)
locale -a returns the following:

Code: Select all

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
C
POSIX

Not sure if that's helpful in any way.

Re: Queue always blank on default 0.6.x install

Posted: May 21st, 2011, 10:55 am
by opychus
OK, this is bizarre, but 2nd reboot fixed it... The difference is that the first two times I started SABnzbd manually through putty. The third time I added it to the unRAID startup script (/boot/config/go). It looks like either the locale gets messed up within the root's shell (which is the default user), or something gets messed up after the unRAID startup script is called.

Either way, it works now :)