Unrar of pw protected files leaves extra copies

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
robvh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2020, 5:04 pm

Unrar of pw protected files leaves extra copies

Post by robvh »

When using the unpack function of 3.0.2 in combination with a password file, I notice that the first file unpacked is created several times, until the correct password is found
These files are not removed and do not seem to contain usable content (scrambled/garbage)

So after the unpack is complete on a file with password nr 14 in my password file, I might end up with something like

file1.txt
file1(01).txt
file1(02).txt
....
file1(13).txt
file1(14).txt
file2.txt
file3.txt

Normally only the last file has the correct content

Running Sabnzb 3.0.2 [51cc765] on docker (linuxserver/sabnzbd) on synology
PS Plush interface does not seem to have 'Status and Interface window', is that correct ?

Code: Select all

2020-10-01 22:43:41,131::INFO::[directunpacker:204] Error in DirectUnpack of grabbelton4: Checksum error in the encrypted file
2020-10-01 22:43:41,131::INFO::[directunpacker:437] Aborting DirectUnpack for grabbelton4
2020-10-01 22:43:41,421::DEBUG::[nzbstuff:1906] Saving attributes {'cat': '*', 'pp': 3, 'script': 'Default', 'priority': 0, 'final_name': 'Grabbelton nl boekjes', 'password': None, 'url': 'Grabbelton nl boekjes.nzb'} for Grabbelton nl boekjes
2020-10-01 22:43:41,421::DEBUG::[__init__:926] [sabnzbd.nzbstuff.save_attribs] Saving data for SABnzbd_attrib in /downloads/_Incomplete/Grabbelton nl boekjes/__ADMIN__
2020-10-01 22:43:41,422::INFO::[postproc:374] Starting Post-Processing on Grabbelton nl boekjes => Repair:True, Unpack:True, Delete:True, Script:Default, Cat:*
2020-10-01 22:43:41,422::INFO::[postproc:722] Starting verification and repair of Grabbelton nl boekjes
2020-10-01 22:43:41,423::INFO::[__init__:955] [sabnzbd.postproc.parring] /downloads/_Incomplete/Grabbelton nl boekjes/__ADMIN__/__verified__ missing
2020-10-01 22:43:41,423::INFO::[postproc:738] Running verification and repair on set OPZCvI5opxZBbNbBlqOJstepemXOxek2
2020-10-01 22:43:41,423::DEBUG::[newsunpack:2270] Quick-check of file grabbelton4.rar OK
2020-10-01 22:43:41,423::INFO::[newsunpack:1210] Quick-check for OPZCvI5opxZBbNbBlqOJstepemXOxek2 is OK, skipping repair
2020-10-01 22:43:41,424::DEBUG::[filesystem:781] [sabnzbd.newsunpack.par2_repair] Deleting file /downloads/_Incomplete/Grabbelton nl boekjes/OPZCvI5opxZBbNbBlqOJstepemXOxek2.par2
2020-10-01 22:43:41,424::DEBUG::[__init__:926] [sabnzbd.postproc.parring] Saving data for __verified__ in /downloads/_Incomplete/Grabbelton nl boekjes/__ADMIN__
2020-10-01 22:43:41,424::INFO::[postproc:794] Verification and repair finished for Grabbelton nl boekjes
2020-10-01 22:43:41,425::INFO::[postproc:424] Running unpack_magic on Grabbelton nl boekjes
2020-10-01 22:43:41,425::DEBUG::[newsunpack:2238] build_filelists(): joinables: []
2020-10-01 22:43:41,425::DEBUG::[newsunpack:2239] build_filelists(): zips: []
2020-10-01 22:43:41,425::DEBUG::[newsunpack:2240] build_filelists(): rars: ['/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar']
2020-10-01 22:43:41,425::DEBUG::[newsunpack:2241] build_filelists(): 7zips: []
2020-10-01 22:43:41,425::DEBUG::[newsunpack:2242] build_filelists(): ts: []
2020-10-01 22:43:41,426::INFO::[newsunpack:318] Unrar starting on /downloads/_Incomplete/Grabbelton nl boekjes
2020-10-01 22:43:41,426::DEBUG::[newsunpack:543] Rar_sets: {'grabbelton4': ['/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar']}
2020-10-01 22:43:41,426::DEBUG::[newsunpack:561] DirectUnpacker still alive for Grabbelton nl boekjes: 01/01
2020-10-01 22:43:41,533::DEBUG::[filesystem:814] Removing dir recursively /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:41,534::DEBUG::[directunpacker:317] DirectUnpack Unrar output 
UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal


Extracting from /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Creating    /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
Checksum error in the encrypted file
2020-10-01 22:43:43,428::INFO::[newsunpack:585] Extracting rarfile /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar (belonging to grabbelton4) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:43,429::DEBUG::[misc:789] Read these passwords from file: ['wrong1', 'wrong2', 'wrong3', 'wrong4', 'wrong5', 'wrong6', 'wrong7', 'wrong8', 'wrong9', 'wrong10', 'wrong11', 'wrong12', 'wrong13', 'right1', 'wrong15', 'wrong16']
2020-10-01 22:43:43,429::INFO::[misc:791] Read 16 passwords from file /ww.txt
2020-10-01 22:43:43,429::DEBUG::[newsunpack:683] rar_extract(): Extractionpath: /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:43,429::DEBUG::[newsunpack:748] Analyzing rar file ... RAR3 found
2020-10-01 22:43:43,430::DEBUG::[newsunpack:749] Running unrar ['/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-p-', '/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/']
2020-10-01 22:43:43,523::DEBUG::[newsunpack:901] UNRAR output 
UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal


Extracting from /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Creating    /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes  OK
Creating    /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
Checksum error in the encrypted file grabbelton4/O'Donovan, Gerard - Kruisiging.epub. Corrupt file or wrong password.
2020-10-01 22:43:43,524::DEBUG::[newsunpack:662] Trying unrar with password "wrong1"
2020-10-01 22:43:43,524::DEBUG::[newsunpack:683] rar_extract(): Extractionpath: /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:43,524::DEBUG::[newsunpack:748] Analyzing rar file ... RAR3 found
2020-10-01 22:43:43,524::DEBUG::[newsunpack:749] Running unrar ['/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-pwrong1', '/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/']
2020-10-01 22:43:43,623::DEBUG::[newsunpack:901] UNRAR output 
UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal


Extracting from /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
Checksum error in the encrypted file grabbelton4/O'Donovan, Gerard - Kruisiging.epub. Corrupt file or wrong password.
2020-10-01 22:43:43,624::DEBUG::[newsunpack:662] Trying unrar with password "wrong2"
2020-10-01 22:43:43,624::DEBUG::[newsunpack:683] rar_extract(): Extractionpath: /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:43,624::DEBUG::[newsunpack:748] Analyzing rar file ... RAR3 found
2020-10-01 22:43:43,625::DEBUG::[newsunpack:749] Running unrar ['/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-pwrong2', '/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/']
2020-10-01 22:43:43,726::DEBUG::[newsunpack:901] UNRAR output 
UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal


Extracting from /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
Checksum error in the encrypted file grabbelton4/O'Donovan, Gerard - Kruisiging.epub. Corrupt file or wrong password.
<<<snip>>>
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
Checksum error in the encrypted file grabbelton4/O'Donovan, Gerard - Kruisiging.epub. Corrupt file or wrong password.
2020-10-01 22:43:44,807::DEBUG::[newsunpack:662] Trying unrar with password "wrong13"
2020-10-01 22:43:44,807::DEBUG::[newsunpack:683] rar_extract(): Extractionpath: /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:44,807::DEBUG::[newsunpack:748] Analyzing rar file ... RAR3 found
2020-10-01 22:43:44,807::DEBUG::[newsunpack:749] Running unrar ['/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-pwrong13', '/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/']
2020-10-01 22:43:44,918::DEBUG::[newsunpack:901] UNRAR output 
UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal


Extracting from /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
Checksum error in the encrypted file grabbelton4/O'Donovan, Gerard - Kruisiging.epub. Corrupt file or wrong password.
2020-10-01 22:43:44,918::DEBUG::[newsunpack:662] Trying unrar with password "right1"
2020-10-01 22:43:44,918::DEBUG::[newsunpack:683] rar_extract(): Extractionpath: /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:44,919::DEBUG::[newsunpack:748] Analyzing rar file ... RAR3 found
2020-10-01 22:43:44,919::DEBUG::[newsunpack:749] Running unrar ['/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-pright1', '/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/']
2020-10-01 22:43:45,074::DEBUG::[newsunpack:911] UNRAR output 
UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal


Extracting from /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(14).epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Peretti, Frank - Illusie (2012).epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Sander Heijne - Er zijn nog 17 miljoen wachtenden voor u.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Simpson Smith, Katy - De kleur van vrijheid (2014).epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Thijssing-Boer, Henny - Maudy trilogie.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vlugt, Simone van der - Bloedgeld.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vuijsje, Robert - Beste vriend.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de dode hoek - Heuvel_ Dick van den en Simon de Waal.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de karaktermoord - Heuvel_ Dick van den.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de monddode - Heuvel_ Dick van den.epub  OK
Extracting  /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Zo goed als dood - harris, charlaine.epub  OK
All OK
2020-10-01 22:43:45,075::INFO::[newsunpack:915] Unpacked 12 files/folders in 0 seconds
2020-10-01 22:43:45,075::DEBUG::[newsunpack:607] rar_unpack(): Rars: ['/downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar']
2020-10-01 22:43:45,075::DEBUG::[newsunpack:608] rar_unpack(): Newfiles: ["/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub", "/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(14).epub", '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Peretti, Frank - Illusie (2012).epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Sander Heijne - Er zijn nog 17 miljoen wachtenden voor u.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Simpson Smith, Katy - De kleur van vrijheid (2014).epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Thijssing-Boer, Henny - Maudy trilogie.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vlugt, Simone van der - Bloedgeld.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vuijsje, Robert - Beste vriend.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de dode hoek - Heuvel_ Dick van den en Simon de Waal.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de karaktermoord - Heuvel_ Dick van den.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de monddode - Heuvel_ Dick van den.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Zo goed als dood - harris, charlaine.epub']
2020-10-01 22:43:45,076::DEBUG::[filesystem:781] [sabnzbd.newsunpack.rar_unpack] Deleting file /downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar
2020-10-01 22:43:45,079::INFO::[newsunpack:322] Unrar finished on /downloads/_Incomplete/Grabbelton nl boekjes
2020-10-01 22:43:45,079::DEBUG::[newsunpack:2238] build_filelists(): joinables: []
2020-10-01 22:43:45,079::DEBUG::[newsunpack:2239] build_filelists(): zips: []
2020-10-01 22:43:45,079::DEBUG::[newsunpack:2240] build_filelists(): rars: []
2020-10-01 22:43:45,079::DEBUG::[newsunpack:2241] build_filelists(): 7zips: []
2020-10-01 22:43:45,080::DEBUG::[newsunpack:2242] build_filelists(): ts: []
2020-10-01 22:43:45,081::DEBUG::[newsunpack:2238] build_filelists(): joinables: []
2020-10-01 22:43:45,082::DEBUG::[newsunpack:2239] build_filelists(): zips: []
2020-10-01 22:43:45,082::DEBUG::[newsunpack:2240] build_filelists(): rars: []
2020-10-01 22:43:45,082::DEBUG::[newsunpack:2241] build_filelists(): 7zips: []
2020-10-01 22:43:45,082::DEBUG::[newsunpack:2242] build_filelists(): ts: []
2020-10-01 22:43:45,082::INFO::[postproc:428] Unpacked files ["/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub", "/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(14).epub", '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Peretti, Frank - Illusie (2012).epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Sander Heijne - Er zijn nog 17 miljoen wachtenden voor u.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Simpson Smith, Katy - De kleur van vrijheid (2014).epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Thijssing-Boer, Henny - Maudy trilogie.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vlugt, Simone van der - Bloedgeld.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vuijsje, Robert - Beste vriend.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de dode hoek - Heuvel_ Dick van den en Simon de Waal.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de karaktermoord - Heuvel_ Dick van den.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de monddode - Heuvel_ Dick van den.epub', '/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Zo goed als dood - harris, charlaine.epub']
2020-10-01 22:43:45,082::INFO::[postproc:433] Finished unpack_magic on Grabbelton nl boekjes
2020-10-01 22:43:45,083::DEBUG::[filesystem:486] Applying permissions 0o770 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:45,083::DEBUG::[filesystem:486] Applying permissions 0o770 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4
2020-10-01 22:43:45,083::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs.epub
2020-10-01 22:43:45,083::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(1).epub
2020-10-01 22:43:45,083::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(2).epub
<<<snip>>
2020-10-01 22:43:45,085::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(13).epub
2020-10-01 22:43:45,085::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
2020-10-01 22:43:45,085::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(14).epub
2020-10-01 22:43:45,086::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Peretti, Frank - Illusie (2012).epub
2020-10-01 22:43:45,086::DEBUG::[filesystem:486] Applying permissions 0o660 (octal) to /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Sander Heijne - Er zijn nog 17 miljoen wachtenden voor u.epub
<<<snip>>>
2020-10-01 22:43:45,087::INFO::[postproc:1136] Collapsing /downloads/_Complete/undefined/Grabbelton nl boekjes/grabbelton4
2020-10-01 22:43:45,088::DEBUG::[filesystem:747] Renaming "/downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4" to "/downloads/_Complete/undefined/Grabbelton nl boekjes"
2020-10-01 22:43:45,088::DEBUG::[filesystem:788] [sabnzbd.postproc.rename_and_collapse_folder] Removing dir /downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-01 22:43:45,088::INFO::[nzbstuff:1803] [sabnzbd.postproc.process_job] Purging data for job Grabbelton nl boekjes (delete_all_data=True)
2020-10-01 22:43:45,089::DEBUG::[filesystem:814] Removing dir recursively /downloads/_Incomplete/Grabbelton nl boekjes
2020-10-01 22:43:45,182::INFO::[database:290] Added job Grabbelton nl boekjes to history
2020-10-01 22:43:45,182::INFO::[postproc:132] Saving postproc queue

User avatar
sander
Release Testers
Release Testers
Posts: 7240
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar of pw protected files leaves extra copies

Post by sander »

With SAB 3.1.0 RC2 and https://raw.githubusercontent.com/sande ... 7D.nzb.nzb , I cannot reproduce.

BTW this might have influence:

Code: Select all

Error in DirectUnpack of grabbelton4: Checksum error in the encrypted file

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Unrar of pw protected files leaves extra copies

Post by safihre »

Are you able to share the NZB?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

robvh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2020, 5:04 pm

Re: Unrar of pw protected files leaves extra copies

Post by robvh »

The issue only appears when using the password file, setting the password directly or through the nzb does not show the issue
With your test file I can not reproduce the problem either, even if I take the pw from the filename and add it to the password file

Add racefan to your password file and try this nzb

I'm not allowed to post links, so hope this works...
goto nzbindex and search for OPZCvI5opxZBbNbBlqOJstepemXOxek2

robvh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2020, 5:04 pm

Re: Unrar of pw protected files leaves extra copies

Post by robvh »

Just reallised this docker image seems to use an older version of unrar (5.50)
I'll try to test later if maybe the bug is that this version does not cleanup some of the file on checksum errors
Tested on windows with the latest unrar (5.91) and the commandline from the logs and there no files are left behind when using the wrong password

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Unrar of pw protected files leaves extra copies

Post by safihre »

It seems to depend on your version indeed. The way it handles checksum errors.
We don't delete the files if the unpacking fails, so every time it tries again unrar will just create extra files.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

robvh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2020, 5:04 pm

Re: Unrar of pw protected files leaves extra copies

Post by robvh »

Tried to use the native unrar version (5.21) direct from the syno, but that won't work within the image due to library issues
So I've just tested to unpack the same rar file within the docker image with no and incorrect passwords and can't reproduce the issue that way
Just disabled the docker image and installed the synocommunity package for sabnzb native
That actually uses UNRAR 5.71 beta 1
And it also shows the same behaviour
Weirdest thing is that in the debug logs it claims another file fails the crc check than the one which is duplicated

Code: Select all

2020-10-02 23:30:16,250::DEBUG::[newsunpack:748] Analyzing rar file ... RAR3 found
2020-10-02 23:30:16,250::DEBUG::[newsunpack:749] Running unrar ['/volume1/@appstore/sabnzbd/bin/unrar', 'x', '-idp', '-o-', '-or', '-p-', '/volume1/downloads/Downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/']
2020-10-02 23:30:16,354::DEBUG::[newsunpack:901] UNRAR output 
UNRAR 5.71 beta 1 freeware      Copyright (c) 1993-2019 Alexander Roshal


Extracting from /volume1/downloads/Downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Creating    /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes  OK
Creating    /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub
Checksum error in the encrypted file grabbelton4/O'Donovan, Gerard - Kruisiging.epub. Corrupt file or wrong password.
2020-10-02 23:30:16,354::DEBUG::[newsunpack:662] Trying unrar with password "racefan"
2020-10-02 23:30:16,355::DEBUG::[newsunpack:683] rar_extract(): Extractionpath: /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes
2020-10-02 23:30:16,355::DEBUG::[newsunpack:748] Analyzing rar file ... RAR3 found
2020-10-02 23:30:16,355::DEBUG::[newsunpack:749] Running unrar ['/volume1/@appstore/sabnzbd/bin/unrar', 'x', '-idp', '-o-', '-or', '-pracefan', '/volume1/downloads/Downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/']
2020-10-02 23:30:16,524::DEBUG::[newsunpack:911] UNRAR output 
UNRAR 5.71 beta 1 freeware      Copyright (c) 1993-2019 Alexander Roshal


Extracting from /volume1/downloads/Downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar

Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(1).epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Peretti, Frank - Illusie (2012).epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Sander Heijne - Er zijn nog 17 miljoen wachtenden voor u.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Simpson Smith, Katy - De kleur van vrijheid (2014).epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Thijssing-Boer, Henny - Maudy trilogie.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vlugt, Simone van der - Bloedgeld.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vuijsje, Robert - Beste vriend.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de dode hoek - Heuvel_ Dick van den en Simon de Waal.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de karaktermoord - Heuvel_ Dick van den.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de monddode - Heuvel_ Dick van den.epub  OK
Extracting  /volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Zo goed als dood - harris, charlaine.epub  OK
All OK
2020-10-02 23:30:16,524::INFO::[newsunpack:915] Unpacked 12 files/folders in 0 seconds
2020-10-02 23:30:16,524::DEBUG::[newsunpack:607] rar_unpack(): Rars: ['/volume1/downloads/Downloads/_Incomplete/Grabbelton nl boekjes/grabbelton4.rar']
2020-10-02 23:30:16,524::DEBUG::[newsunpack:608] rar_unpack(): Newfiles: ["/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/O'Donovan, Gerard - Kruisiging.epub", "/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Patrick K. O'Donnell - De eerste SEALs(1).epub", '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Peretti, Frank - Illusie (2012).epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Sander Heijne - Er zijn nog 17 miljoen wachtenden voor u.epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Simpson Smith, Katy - De kleur van vrijheid (2014).epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Thijssing-Boer, Henny - Maudy trilogie.epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vlugt, Simone van der - Bloedgeld.epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Vuijsje, Robert - Beste vriend.epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de dode hoek - Heuvel_ Dick van den en Simon de Waal.epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de karaktermoord - Heuvel_ Dick van den.epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Wulffers en de zaak van de monddode - Heuvel_ Dick van den.epub', '/volume1/downloads/Downloads/_Complete/undefined/_UNPACK_Grabbelton nl boekjes/grabbelton4/Zo goed als dood - harris, charlaine.epub']
2020-10-02 23:30:16,525::DEBUG::[filesystem:781] [sabnzbd.newsunpack.rar_unpack] Deleting file 
Don't know what else to try, will have to live with it for the moment I guess

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Unrar of pw protected files leaves extra copies

Post by safihre »

The problem is that it extracts indeed 1 file succesfully, but fails on the next.
So we try again. but not removing the previous result, it just start from the beginning again and adds the first file again.
Not much we can do, because we don't want to delete potentially correct files after an unpack.
You can however, enable "overwrite_files" in Config > Switches so it will tell Unrar to overwrite already existing files.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

robvh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2020, 5:04 pm

Re: Unrar of pw protected files leaves extra copies

Post by robvh »

thanks, I'll consider that option
The only strange thing is that the file was not extracted succesfully (or at least the content is not correct and should not match the crc check)
So if unrar does not recognize that, it would indeed be a bug in unrar and not in sabnzb

Post Reply