← Back to team overview

lottanzb team mailing list archive

[Bug 381318] Re: hellanzb hangs after transfering - doesn't unrar or move to done

 

After a lot of testing with hellanzb and LottaNZB, I found the reason
why this is happening. The problem is that IF the downloaded NZB file
(from for example newzbin) contains an entry with a NZB file which has
exactly the same name as the download NZB file, it will fail. At the end
of this post I made 2 sample files which are pretty self-explanatory.
I'll continue using those examples.

File A fails, File B doesn't. This is because File A contains entry File
A.3 (a NZB file with exactly the same name as the NZB file in the
queue). I discovered this while testing with LottaNZB. If you add a NZB
file (in this example File A) via the 'Add file' dialog in LottaNZB it
makes the name pretty. This is what it does; File A.1 "ubuntu-9.10
-desktop-amd64/" ---> "ubuntu 9.10 desktop amd64/". File A.3 stays the
same and because the File A.1 and File A.3 aren't the same anymore, it
works as intended. However adding the file via 'file associations' or
the command line doesn't make the name prettier File A.1 and File A.3
stay the same and it will fail. This is a workaround for this bug which
happened to be in our code without knowing it. Another workaround would
be to remove File A.3 from File A when the NZB file is added to
LottaNZB, which makes it File B. And then pass it to hellanzb. Both
work, and Severin already implemented the second workaround so for our
LottaNZB users it should be fixed (or worked around) in LottaNZB 0.5.2
which will be released in the near future.

However, workarounds aren't good practice. But because a fixed hellanzb
package won't be in Ubuntu until Ubuntu 10.04 we decided to implement
the workaround first. Next we're going to give it a try to fix the
actual hellanzb package, and get the patched package into Debian and
therefore in Ubuntu (10.04).

File A:
-------
1. ubuntu-9.10-desktop-amd64.nzb         (NZB file)
2. |--> ubuntu-9.10-desktop-amd64.iso    (file embedded in the NZB file)
3. |--> ubuntu-9.10-desktop-amd64.nzb   (file embedded in the NZB file)
-------

File B:
-------
1. ubuntu-9.10-desktop-amd64.nzb         (NZB file)
2. |--> ubuntu-9.10-desktop-amd64.iso    (file embeeded in the NZB file)
-------

-- 
hellanzb hangs after transfering - doesn't unrar or move to done
https://bugs.launchpad.net/bugs/381318
You received this bug notification because you are a member of LottaNZB
Development Team, which is subscribed to LottaNZB.

Status in hellanzb: New
Status in LottaNZB • Automated Usenet Client: Confirmed
Status in “hellanzb” package in Ubuntu: Confirmed

Bug description:
Binary package hint: hellanzb

I am running jaunty with hellanzb version 0.13-3ubuntu4

Every once in a while, I will have an nzb that just hangs after transfering files are complete. Hellanzb doesn't unrar the file or move the files to the done folder without doing anything. It just sits there saying "Transfered...etc." The files themselves stay in the daemon.processing/ folder until I do something with them manually. If I Ctrl-C to exit hellanzb and then restart it, it starts the download over again (probably because the nzb file is still in the daemon.current/ folder)

This doesn't happen with every nzb, but I am able to reproduce it with specific nzb files.

Here is some informtation about the latest file I was able to get it with:
I got the nzb file from here: http://www.tvnzb.com/nzb/21713

Here is the output of "hellanzb status":
-----------------------------------------------------
Queued: 410.8MB
Skipping pars.. (Skipped par2: the.unusuals.s01e07.hdtv.xvid-2hd.vol00+01.par2 (
1MB))
Skipped pars: 7 files, 39.7MB (actual skipped: 37.1MB)
 sample-the.unusuals.s01e07.hdtv.xvid-2hd.avi.vol0+1.par2 (1 files, 1.1MB, 1 blo
cks)
 the.unusuals.s01e07.hdtv.xvid-2hd.vol00+01.par2 ->
 the.unusuals.s01e07.hdtv.xvid-2hd.vol20+14.par2 (6 files, 38.6MB, 34 blocks)
Transferred 376.0MB in 6m 6s at 1050.3KB/s (The.Unusuals.S01E07.HDTV.XviD-2HD)

Downloading: None

Processing: None
Queued: None
-----------------------------------------------------

I will attach my hellanzb.conf, as well as a log and debug log of the process. Please let me know if you need anything more.