Page 1 of 1

Queue generates error in 0.4.5

Posted: November 15th, 2008, 9:31 am
by rollOver
Clicked to remove an sfv file within a post and got this:

Code: Select all

500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy/_cphttptools.pyc", line 126, in _run
  File "cherrypy/filters/__init__.pyc", line 151, in applyFilters
  File "sabnzbd/interface.pyc", line 234, in beforeFinalize
  File "sabnzbd/interface.pyc", line 709, in index
  File "sabnzbd/codecs.pyc", line 58, in xml_name
AttributeError: 'NoneType' object has no attribute 'decode'
I now cannot access the queue tab, get this error each time I try!
This is under OS X

Re: Queue generates error in 0.4.5

Posted: November 15th, 2008, 11:10 am
by shypike
Very strange.

Start up SABnzbd with the --clean option.
You will lose the current queue and the history.

Before you do this, can you send the log file to [email protected]
including also the NZB file?

Re: Queue generates error in 0.4.5

Posted: November 24th, 2008, 7:24 pm
by rollOver
Sorry to be dim, I have looked at the manual and googled this but I cannot find where the logs are stored on OSX. I left the queue running and it went away when everything downloaded. Then today I loaded up a queue and went to remove an .nfo file and wham, the same deal. Shutdown SAB now I am trying to get you the info you asked for, I really want to help if I can, this is a great package!

I have looked in the console and don't see anything to do with SAB. I am still looking.

Alright I found them, should have known. My error log is over 300MB so I won't send the whole thing. I trimmed off the last execution with the cherry.py errors and the other two logs and I am sending them off to you now, cheers!

Re: Queue generates error in 0.4.5

Posted: November 25th, 2008, 6:19 am
by shypike
Should have asked this before.
Can you send the NZB file too?
I suspect it has to do with non-ASCII characters and the easiest way
to find out is using the NZB.
Release 0.4.5 should handle this properly, but we may have missed an issue.

Re: Queue generates error in 0.4.5

Posted: November 25th, 2008, 1:42 pm
by rAf
on OSX, if you want you can start SABnzbd from command line as is :
- launch Terminal
- type for starting :

Code: Select all

/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --clean &
if will return something like [1] 1675 <- pid of your SABnzbd

- type for stop :

Code: Select all

kill -3 1675
Hope it helps.

Re: Queue generates error in 0.4.5

Posted: November 28th, 2008, 2:27 pm
by orangeboy
Hi,
I'm having the same problem in windows (XP):

Code: Select all

500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy\_cphttptools.pyo", line 126, in _run
  File "cherrypy\filters\__init__.pyo", line 151, in applyFilters
  File "sabnzbd\interface.pyo", line 234, in beforeFinalize
  File "sabnzbd\interface.pyo", line 709, in index
  File "sabnzbd\codecs.pyo", line 60, in xml_name
AttributeError: 'NoneType' object has no attribute 'decode'
Powered by CherryPy 2.3.0
This was after shutting down, then starting with --clean from a command prompt. I dunno if the procedure to start 'clean' is different in Windows, and thus the same results...

Version: 0.4.5 Final
OS: Windows XP SP3
Install-type: Windows Installer
Skin: Default
Firewall Software: Undisclosed for security reasons
Are you using IPV6? no
Is the issue reproducible? yes

Re: Queue generates error in 0.4.5

Posted: November 28th, 2008, 2:34 pm
by switch
Please don't upload nzb files to our forum. Thanks.

Re: Queue generates error in 0.4.5

Posted: November 28th, 2008, 2:36 pm
by orangeboy
switch wrote: Please don't upload nzb files to our forum. Thanks.
Sorry about that - I missed the 'send to [email protected]' portion in the earlier post.

Re: Queue generates error in 0.4.5

Posted: November 28th, 2008, 3:07 pm
by orangeboy
It appears the issue only arises when the QUEUE has 'Show Files' enabled. When the files are hidden, there is no error.

Re: Queue generates error in 0.4.5

Posted: November 30th, 2008, 10:18 pm
by rollOver
Got this today and I know the NZB which caused it so I will send it along
Traceback (most recent call last):
  File "cherrypy/_cphttptools.pyc", line 126, in _run
  File "cherrypy/filters/__init__.pyc", line 151, in applyFilters
  File "sabnzbd/interface.pyc", line 234, in beforeFinalize
  File "sabnzbd/interface.pyc", line 709, in index
  File "sabnzbd/codecs.pyc", line 58, in xml_name
AttributeError: 'NoneType' object has no attribute 'decode'
This happens when I try to remove the sample file, I realize you can do this automatically BTW

Re: Queue generates error in 0.4.5

Posted: November 30th, 2008, 10:31 pm
by rollOver
Just a comment, I spend a good bit of time weeding out .nzb files that people include in the posted (newzbin) .nzb is there a way to remove these automatically? If not, shouldn't there be?

Re: Queue generates error in 0.4.5

Posted: November 30th, 2008, 10:37 pm
by switch
rollOver wrote: Just a comment, I spend a good bit of time weeding out .nzb files that people include in the posted (newzbin) .nzb is there a way to remove these automatically? If not, shouldn't there be?
Add .nzb to your cleanup list in config>general

In regards to the web interface error, it is due to the filename being missing for a file inside the nzb. Unfinished files are allowed to be missing the filename, and it will use the subject instead; finished files however should always have a filename. It's still unclear where exactly the issue lies, it will be clearer once me or shypike can reproduce the error and debug it.

Re: Queue generates error in 0.4.5

Posted: November 30th, 2008, 11:02 pm
by rollOver
Add .nzb to your cleanup list in config>general
Excellent thanks, but that is after download. My problem is that my setup chokes on these very small files and holds up downloads from completing.
In regards to the web interface error, it is due to the filename being missing for a file inside the nzb. Unfinished files are allowed to be missing the filename, and it will use the subject instead; finished files however should always have a filename. It's still unclear where exactly the issue lies, it will be clearer once me or shypike can reproduce the error and debug it.
Let me know if I can help in any way and thanks again for the killer software!

Re: Queue generates error in 0.4.5

Posted: November 30th, 2008, 11:23 pm
by switch
Thanks for the email. I can reproduce the issue now. It is due to files removed from the queue where no filename has been set (the filename can only be guessed if the subject is well named, nzb files unfortunately do not tell us the filenames of what to download; is only set correctly from the headers as it is downloaded).

I will issue a fix to use the subject when no filename is available. Not sure if this has time to make it into 0.4.6 we will see.

e: in the meantime, restarting sabnzbd will get rid of the message as long as you don't expand that download again to show it's files.