Queue generates error in 0.4.5

Report & discuss bugs found in 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
User avatar
rollOver
Newbie
Newbie
Posts: 9
Joined: November 15th, 2008, 9:24 am

Queue generates error in 0.4.5

Post 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
Last edited by rollOver on November 15th, 2008, 11:02 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Queue generates error in 0.4.5

Post 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?
User avatar
rollOver
Newbie
Newbie
Posts: 9
Joined: November 15th, 2008, 9:24 am

Re: Queue generates error in 0.4.5

Post 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!
Last edited by rollOver on November 24th, 2008, 7:38 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Queue generates error in 0.4.5

Post 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.
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: Queue generates error in 0.4.5

Post 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.
orangeboy
Newbie
Newbie
Posts: 18
Joined: November 28th, 2008, 2:17 pm

Re: Queue generates error in 0.4.5

Post 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
Last edited by orangeboy on November 28th, 2008, 3:16 pm, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Queue generates error in 0.4.5

Post by switch »

Please don't upload nzb files to our forum. Thanks.
orangeboy
Newbie
Newbie
Posts: 18
Joined: November 28th, 2008, 2:17 pm

Re: Queue generates error in 0.4.5

Post 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.
orangeboy
Newbie
Newbie
Posts: 18
Joined: November 28th, 2008, 2:17 pm

Re: Queue generates error in 0.4.5

Post by orangeboy »

It appears the issue only arises when the QUEUE has 'Show Files' enabled. When the files are hidden, there is no error.
User avatar
rollOver
Newbie
Newbie
Posts: 9
Joined: November 15th, 2008, 9:24 am

Re: Queue generates error in 0.4.5

Post 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
Last edited by rollOver on November 30th, 2008, 10:31 pm, edited 1 time in total.
User avatar
rollOver
Newbie
Newbie
Posts: 9
Joined: November 15th, 2008, 9:24 am

Re: Queue generates error in 0.4.5

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

Re: Queue generates error in 0.4.5

Post 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.
User avatar
rollOver
Newbie
Newbie
Posts: 9
Joined: November 15th, 2008, 9:24 am

Re: Queue generates error in 0.4.5

Post 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!
Last edited by rollOver on November 30th, 2008, 11:06 pm, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Queue generates error in 0.4.5

Post 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.
Last edited by switch on November 30th, 2008, 11:24 pm, edited 1 time in total.
Post Reply