NZB Autoload -

Technical support and discussion of Newsbin Version 6 series.

NZB Autoload -

Postby divisionbyzero » Wed Apr 04, 2012 12:51 pm

I've run across an issue with the way NZB Autoload functions - I'll try to define it as clearly as possible. I'm running newsbin 6.31-build 1858 (64 bit) on Windows 7 Ultimate (64 bit).

I have Newsbin monitoring a folder for nzb files, with another external application downloading nzb's and saving to this folder. The issue arises when a large NZB is downloaded into the autoload folder. If the NZB is still in the process of downloading, newsbin will begin reading it. Newsbin finishes processing it before the file is finished downloading. This results in the newsbin error "NZB File Load Failed" both in the logging tab, and in the popup "Critical Errors Box". After the error occurs, newsbin will move the partially downloaded file to the "Loaded" Subfolder and continue watching the autoload folder.

Thanks to the nature of Windows file handling - the file will complete downloading after its been moved. The work around is to ignore the "NZB File Load Failed" error, wait for the file to complete downloading, then, go find the file in the loaded folder, and either move it back to the autoload folder, or double click it.

Is there a way that newsbin can be configured to handle the collisions (reading the nzb while its still downloading) more gracefully?
divisionbyzero
n00b
n00b
 
Posts: 3
Joined: Wed Jun 14, 2006 8:19 pm

Re: NZB Autoload -

Postby divisionbyzero » Wed Apr 04, 2012 1:02 pm

I may have spoken too soon (or misunderstood what I was seeing).

This may only occur if the NZB takes so long to download, it stays in the autoload folder for 2 autoload cycles. It appears that if a collision occurs, it will thrown the error, leave the nzb in autoload folder and let it complete- then successfully autoloading the nzb on the next autoload cycle.

Does this make sense? I know that I've had missing downloads for nzb's that have been placed in the autoload folder - double clicking on them from the loaded folder has always fixed things for me.
divisionbyzero
n00b
n00b
 
Posts: 3
Joined: Wed Jun 14, 2006 8:19 pm

Re: NZB Autoload -

Postby Quade » Wed Apr 04, 2012 1:50 pm

How about:

1 - Downloading it as a different extension then rename to NZB after it completes.

2 - Download to a different folder and then move it into place when the download completes

3 - Set file permissions so, Newsbin can't open it for read or write while it's downloading. Newsbin will attempt to copy the file to a different folder and load it if it fails to open it normally. If it can't do anything with the file, it'll probably ignore it and try again (maybe). This method is less reliable than the first 2.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: NZB Autoload -

Postby divisionbyzero » Wed Apr 04, 2012 2:55 pm

Thanks Quade - Given the options I have available - I'll probably just write a small script to copy the files into into the autoload folder when things are done downloading.
divisionbyzero
n00b
n00b
 
Posts: 3
Joined: Wed Jun 14, 2006 8:19 pm


Return to V6 Technical Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests