[0.5.4-Linux] Hanging download blocking queue

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
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

[0.5.4-Linux] Hanging download blocking queue

Post by Sypher »

Something went wrong with an auto downloaded NZB trough RSS.
Even though the age of the files were less then a few hours, it said 35000d.
This faulty download, blocked the whole queue until I deleted it.

Is it possible that such blocked/hanging downloads are somehow skipped or moved to the bottom of the queue when it happens?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [0.5.4-Linux] Hanging download blocking queue

Post by shypike »

If you set "Only get articles for top of the queue" on Config->Switches
to "off", the queue won't block anymore.

Can you email this particular NZB to bugs at sabnzbd.org ?
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.5.4-Linux] Hanging download blocking queue

Post by Sypher »

Hmm, that option was indeed enabled.

Regarding the NZB, apparently something went wrong at nzbs.org. The filename in backup is:
"index.php!action=getnzb&nzbid=429587&i=XXXXXXX&h=XXXXXXXXXXXXXXXXXX.nzb".
This file is not even a valid NZB, but a HTML page (with the first line empty).
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [0.5.4-Linux] Hanging download blocking queue

Post by shypike »

When you lookup the report number on the nzbs.org website, this is what you get:
    NZB no longer exists (too old)
wrapped in HTML code, so it displays properly.

Since HTML resembles XML (the format of NZB), there is a small chance
that SABnzbd will treat it as an NZB.
This is indeed what happens in this case.

The trouble that many websites do have programmatic URLs that allow programs
like SABnzbd to retrieve files.
However as soon as something goes wrong they send HTML crap instead of
the official http error codes (you know: like the famous 404 for a missing page).
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.5.4-Linux] Hanging download blocking queue

Post by Sypher »

I fully understand what you mean.
Its pretty annoying that sites aren't producing consistent replies.

There are some things in the NZB/XML files which are not exist in HTML, so maybe it is possible for SABnzbd to check for that to make sure these things don't cause problems?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [0.5.4-Linux] Hanging download blocking queue

Post by shypike »

True, garbage HTML could be treated as just a failed download.
However, some sites do this also when they have temporary problems.
When processing of the received data fails, we retry.
In this case the output of the site is accepted as a degenerate NZB :(
I'll see if we can improve this a bit in the future.
The next major release will not hang on empty jobs anymore, solving this particular situation.
Post Reply