Joined items are not always cleaned up

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
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

Joined items are not always cleaned up

Post by barlow »

Some items which are joined by par2 are not cleaned up afterwards.

So the *.xx files are still there. If this happens, there also is no mention of stage filejoin in the history.
If this stage is present, the files are deleted.
I think it is related to the first file of fileset to be joined: if the first file is *.001 the filejoin stage is performed,
but if the first file is *.000 it is not.

An example of a post where the files are not deleted is Newzbin ID 5164326.

Other relevant stuff:
SABnzbd 0.4.12
Operating systems: Windows 7 x64 and Mac OS X 10.6.1
pspgimp
Newbie
Newbie
Posts: 44
Joined: October 17th, 2009, 5:05 am

Re: Joined items are not always cleaned up

Post by pspgimp »

Firstly can I say what an excellent piece of work Sabnzbd is, along with nzb-tv it has revolutionized my usenet use ! thanks for that mate !

I too am having problems thought since the last two updates, everything was working fine, but since then I have the downloaded files left in the folder along with the unpacked file.

I hope you can help.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Joined items are not always cleaned up

Post by shypike »

Yes, we must look into this.
I suspect the par2 sometimes does it's own joining,
before SABnzbd has a chance to do it.
Filed as Ticket #330.
Last edited by shypike on October 17th, 2009, 1:35 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Joined items are not always cleaned up

Post by shypike »

pspgimp wrote: I too am having problems thought since the last two updates, everything was working fine, but since then I have the downloaded files left in the folder along with the unpacked file.
I do need some information.
Is the problem similar to waht is described by barlow?
What happens exactly?
pspgimp
Newbie
Newbie
Posts: 44
Joined: October 17th, 2009, 5:05 am

Re: Joined items are not always cleaned up

Post by pspgimp »

I have some stuff queued up right now so I will see what happens with that, but basically all the rar files are left in the "correct" folder for the episode downloaded, the avi is there also.

I will have a look what heppens with the ones queued and get back to you in the morning.

Cheers


PSPgimp
pspgimp
Newbie
Newbie
Posts: 44
Joined: October 17th, 2009, 5:05 am

Re: Joined items are not always cleaned up

Post by pspgimp »

OK, now got some input for you.

I was downloading "Some Show", and 2 episodes in particular 4 and 5

Some Show - 1x05 - Season 1, Episode 5 Completed
Stage Download
[Time-Taken]: 52 minutes 3 seconds
[Avg-Speed]: 120kB/s
Stage Par2
[PAR-INFO] aaf-btit.105: => Verified in 5.6s, all files correct
[DEL-INFO] aaf-btit.105: => Deleted 2 file(s)
Stage Unrar
[RAR-INFO] aaf-btit.105: => Unpacked 1 files/folders in 2.9s
Stage UserScript
[USER-SCRIPT]: => Show script output

Some Show - 1x04 Completed
Stage Download
[Time-Taken]: 51 minutes 22 seconds
[Avg-Speed]: 120kB/s
Stage Par2
[PAR-INFO] aaf-btit.104: => Verified in 11.3s, all files correct
[DEL-INFO] aaf-btit.104: => Deleted 2 file(s)
Stage Unrar
[RAR-INFO] aaf-btit.104: => Unpacked 1 files/folders in 3.4s
[DEL-INFO] aaf-btit.104: => Deleted 25 file(s)
Stage UserScript
[USER-SCRIPT]: => Show script output

IN each case there were .rar files as well as .r00, r02 files.

Hope this helps.


PSPgimp
Last edited by shypike on October 18th, 2009, 4:56 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Joined items are not always cleaned up

Post by shypike »

shypike wrote: I suspect the par2 sometimes does it's own joining,
before SABnzbd has a chance to do it.
Filed as Ticket #330.
Well, I found out what's going on.
The post uses a rarely used option of par2, where par2 sees
the .000, .001 etc. files not as joinable segments but
carriers of correction blocks. Just like .par2 files are.
The end result (the joined .mkv file) is "missing" and
the par2 program will reconstruct it using the .000 etc. parts.

SABnzbd has had support for this since its early days, but
the original author forgot to add code for deleting the .000 files.

We will fix this, but not in the 0.4.x releases.
It will be done for 0.5.0.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Joined items are not always cleaned up

Post by shypike »

pspgimp wrote: OK, now got some input for you.
I was downloading "Some Show", and 2 episodes in particular 4 and 5
PSPgimp
We need the NZB files to diagnose this properly.
Please email to [email protected] with a reference to this post.

PS.
You are not allowed to use actual names of TV shows on the forum.
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

Re: Joined items are not always cleaned up

Post by barlow »

shypike wrote: We will fix this, but not in the 0.4.x releases.
It will be done for 0.5.0.
Great! SAB FTW! :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Joined items are not always cleaned up

Post by shypike »

pspgimp wrote: OK, now got some input for you.
I was downloading "Some Show", and 2 episodes in particular 4 and 5
Not sure what's going on here.
But be aware that sometimes NZB files contain files that are not
really part of the download.
Only files that have been succesfully processed by par2
and (if needed) by unrar, will be deleted.
I still need the NZB to tell you more.
pspgimp
Newbie
Newbie
Posts: 44
Joined: October 17th, 2009, 5:05 am

Re: Joined items are not always cleaned up

Post by pspgimp »

shypike wrote:
pspgimp wrote: OK, now got some input for you.
I was downloading "Some Show", and 2 episodes in particular 4 and 5
PSPgimp
We need the NZB files to diagnose this properly.
Please email to [email protected] with a reference to this post.

PS.
You are not allowed to use actual names of TV shows on the forum.
I have sent over a couple of NZB files for you to check out, sorry about the show names won't happen again  :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Joined items are not always cleaned up

Post by shypike »

pspgimp wrote: I have sent over a couple of NZB files for you to check out,
One job (4997061) contains a RAR file in a segmented RAR-file.
SABnzbd unpacks the first layer, ending up with a single RAR file.
When unpacking of this file is attempted, things go wrong, because the second RAR file needs a password.
Last edited by shypike on October 19th, 2009, 3:23 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Joined items are not always cleaned up

Post by shypike »

pspgimp wrote: I have sent over a couple of NZB files for you to check out,
One job (4997061) contains a RAR file in a segmented RAR-file.
SABnzbd unpacks the first layer, ending up with a single RAR file.
When unpacking of this file is attempted, things go wrong, because the second RAR file needs a password.

The other one (4996209) downloads and unpacks fine.

Both files need not be "joined", they are multi-volume RAR files,
which are handled by unrar and not by par2.

Can you describe what happens exactly on your system?
Last edited by shypike on October 19th, 2009, 3:40 pm, edited 1 time in total.
pspgimp
Newbie
Newbie
Posts: 44
Joined: October 17th, 2009, 5:05 am

Re: Joined items are not always cleaned up

Post by pspgimp »

shypike wrote:
pspgimp wrote: I have sent over a couple of NZB files for you to check out,
One job (4997061) contains a RAR file in a segmented RAR-file.
SABnzbd unpacks the first layer, ending up with a single RAR file.
When unpacking of this file is attempted, things go wrong, because the second RAR file needs a password.

The other one (4996209) downloads and unpacks fine.

Both files need not be "joined", they are multi-volume RAR files,
which are handled by unrar and not by par2.

Can you describe what happens exactly on your system?
Sorry they weren't good examples, I emailed over 3 more this morning that did not clean up correctly, as I say it could be that it's a co-incidence that things are not being packed the same way they used to be by posters, but it has only been an issue since I installed SABnzbd+ 0.4.11 and 0.4.12

Cheers


PSPgimp
Post Reply