SABnzbd gets stuck on incomplete files

Get help with all aspects of 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
gehav
Newbie
Newbie
Posts: 5
Joined: November 29th, 2009, 8:14 am

SABnzbd gets stuck on incomplete files

Post by gehav »

I've been using SABnzbd for some time (mostly without any problems). Currently I am using v0.5.3 on Win7 64Bit.

From time to time I experience a strange behaviour: one of the items in my download queue jut stops and SABnzbd continues with the next item. Whenever I check these "stalled items" I see that there are a few files missing. So I download these missing files - usually with Newsleecher (using the same nzb). Every single one of the files that SABnzbd skipped is always an incomplete one. Newsleecher always tells me in the log that the file was incomplete but saved it anyway.

Most of the time I can repair the set afterwards using the par2 files.

Is there a reason why SABnzbd decides not to save incomplete files at all? If it would save them it could easily repair them using the par2 files and everything could be finished automatically without my intervention. Is there maybe a swith in the settings that tells SABnzbd to always decode and save incomplete files?

Any help would be greatly appreciated!

gehav
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd gets stuck on incomplete files

Post by shypike »

If you have multiple servers defined and one server stops working,
there may be a deadlock on missing articles.
How many servers are in your setup?
gehav
Newbie
Newbie
Posts: 5
Joined: November 29th, 2009, 8:14 am

Re: SABnzbd gets stuck on incomplete files

Post by gehav »

I have two servers of the same provider (US and EU) in my setup. But I don't think that this has anything to do with it. The download continues normally on the next set of files (using the same server). The missing files are not the last files of the set but random files in between. The only thing they have in common is that they are incomplete on my servers.

I am pretty sure that the solution would be to force SABnzbd to save files even if they have errors or are incomplete.

But I will try anyway to delete one of the servers and only use the other for some time!
pobox
Full Member
Full Member
Posts: 104
Joined: May 3rd, 2008, 6:11 pm

Re: SABnzbd gets stuck on incomplete files

Post by pobox »

Are the US and EU servers Highwinds Tornados?  Lately they are getting stuck on:

article
body

Instead of immediately sending '430 No such article', that response is delayed or not sent at all.

I think SABnzbd's timeout default is 120 seconds so if a two servers setup is still tripped up by one or both servers stalling that way, it could be a bug.
Last edited by pobox on August 18th, 2010, 2:50 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd gets stuck on incomplete files

Post by shypike »

When the server doesn't answer, SABnzbd considers it a timeout.
The server needs to say "I don't have it".
The number of retries is infinite, else you would
quickly burn through all your queued jobs if the server failed.
When a server is unreliable (and not telling it doesn't have an article is that too)
you should flag the server as "optional".
Then SABnzbd will switch off the server for some time, to break the deadlock.
pobox
Full Member
Full Member
Posts: 104
Joined: May 3rd, 2008, 6:11 pm

Re: SABnzbd gets stuck on incomplete files

Post by pobox »

If a single server without a backup server is unable to respond 'I don't have it' then how does SABnzbd go ahead and assemble what it has for that file?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd gets stuck on incomplete files

Post by shypike »

If you still set it as optional, the deadlock is broken.
Keep in mind that in this situation the server is malfunctioning.
There is no ideal solution.
Doing limited retries (e.g. like Grabit does) will destroy your queue
in case your single server is really offline.
pobox
Full Member
Full Member
Posts: 104
Joined: May 3rd, 2008, 6:11 pm

Re: SABnzbd gets stuck on incomplete files

Post by pobox »

A single primary server with no backup can be flagged as optional?  Help me inpheaux!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd gets stuck on incomplete files

Post by shypike »

Yes it can.
We are looking at some way to allow you to force a stuck job to post-processing.
gehav
Newbie
Newbie
Posts: 5
Joined: November 29th, 2009, 8:14 am

Re: SABnzbd gets stuck on incomplete files

Post by gehav »

Thanks for all the replies!

My newsserver is Astraweb and I have not had a problem with them in the last weeks. Like I said: the problem vanishes when I switch to Newsleecher. If I have the problem again I will investigate it in more detail to find out which circumstances lead to SABnzbd omitting certain files!
nem
Newbie
Newbie
Posts: 4
Joined: August 28th, 2010, 3:37 pm

Re: SABnzbd gets stuck on incomplete files

Post by nem »

shypike wrote: If you still set it as optional, the deadlock is broken.
Keep in mind that in this situation the server is malfunctioning.
There is no ideal solution.
Doing limited retries (e.g. like Grabit does) will destroy your queue
in case your single server is really offline.
Jumping here from my thread to read the explanation.

Reading what you write leaves me a bit puzzled.

Do you mean that the servers is at fault because they fail to respond to a request from sabnzbd?
And setting the alternate servers to "optional" will solve this?

Im trying to understand, perhaps you could explain it in another way?
Thanks

(im trying to figure out if i should write a mail to my newsprovider or if i should wait for a fix for sabnzbd, or just forget about backup servers since i dont really need them)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd gets stuck on incomplete files

Post by shypike »

Some servers don't give an answer when they don't have an article.
SABnzbd assumes they just timed-out and keeps retrying forever.
If the other server don't have the article and the "last one" refuses to answer,
downloading gets stuck.
Setting the server as "optional" means that it will be ignored for
some time, thus breaking the deadlock.
Loto_Bak
Newbie
Newbie
Posts: 11
Joined: January 12th, 2009, 1:01 pm

Re: SABnzbd gets stuck on incomplete files

Post by Loto_Bak »

I'm getting stalled downloads at various amounts of completion. Some within 10% some immediately a few between.

When stalled my log progresses...

Code: Select all

2011-12-12 09:03:18,049::INFO::[decoder:181] <Article: [email protected], bytes=398816, partnum=35, art_id=None> => missing from all servers, discarding
2011-12-12 09:03:19,050::INFO::[decoder:181] <Article: [email protected], bytes=398638, partnum=36, art_id=None> => missing from all servers, discarding
2011-12-12 09:03:20,051::INFO::[decoder:181] <Article: [email protected], bytes=398678, partnum=37, art_id=None> => missing from all servers, discarding
2011-12-12 09:03:21,052::INFO::[decoder:181] <Article: [email protected], bytes=398864, partnum=38, art_id=None> => missing from all servers, discarding
2011-12-12 09:03:22,053::INFO::[decoder:181] <Article: [email protected], bytes=398712, partnum=39, art_id=None> => missing from all servers, discarding
1 line every 60s or so.

This is quite frusterating as it holds up the entire queue.
Should sabnzbd not be able to pass by missing articles more quickly?

I have tried disabling all but 1 single server.

# edit just realized a dug up a really old thread. sorry
Post Reply