SABnzbd doesn't extract passworded rar files with Unrar 5.80
Posted: February 4th, 2020, 9:27 pm
I'm running on Linux where Unrar is not bundled. After updating Unrar to 5.80, SABnzbd has not extracted any files from passworded rar files. The job completes without any error message, but says "Unpacked 0 files/folders in 0 seconds" in the Unpack status. My debug log shows SABnzbd always passing the -p- argument and never trying the password from passwords.txt. I downgraded back to 5.71 and everything works fine again. FYI the following log is from the latest develop branch, but the issue is the same in 2.3.9.
The 'Incorrect password' error message is different in 5.80 and I'm betting that's the cause of the issue.
Code: Select all
2020-02-04 20:45:20,977::INFO::[postproc:371] Running unpack_magic on Open.Source.Software
2020-02-04 20:45:20,977::DEBUG::[newsunpack:2128] build_filelists(): joinables: []
2020-02-04 20:45:20,977::DEBUG::[newsunpack:2129] build_filelists(): zips: []
2020-02-04 20:45:20,977::DEBUG::[newsunpack:2130] build_filelists(): rars: ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']
2020-02-04 20:45:20,977::DEBUG::[newsunpack:2131] build_filelists(): 7zips: []
2020-02-04 20:45:20,977::DEBUG::[newsunpack:2132] build_filelists(): ts: []
2020-02-04 20:45:20,978::INFO::[newsunpack:253] Unrar starting on /mnt/storage/incoming/SABnzbd/Open.Source.Software
2020-02-04 20:45:20,978::DEBUG::[newsunpack:477] Rar_sets: {'005-oss': ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']}
2020-02-04 20:45:20,978::DEBUG::[newsunpack:495] DirectUnpacker still alive for Open.Source.Software: 01/01
2020-02-04 20:45:20,995::DEBUG::[directunpacker:284] DirectUnpack Unrar output
UNRAR 5.80 freeware Copyright (c) 1993-2019 Alexander Roshal
Incorrect password for /mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar
Total errors: 1
2020-02-04 20:45:21,402::DEBUG::[bpsmeter:241] bps: 4092121.969683617
2020-02-04 20:45:22,980::INFO::[newsunpack:520] Extracting rarfile /mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar (belonging to 005-oss) to /mnt/storage/downloads/PC/_UNPACK_Open.Source.Software.1
2020-02-04 20:45:22,980::DEBUG::[misc:722] Read these passwords from file: ['<the right password>']
2020-02-04 20:45:22,980::INFO::[misc:724] Read 1 passwords from file /home/<USERNAME>/.sabnzbd/passwords.txt
2020-02-04 20:45:22,980::DEBUG::[newsunpack:615] rar_extract(): Extractionpath: /mnt/storage/downloads/PC/_UNPACK_Open.Source.Software.1
2020-02-04 20:45:22,981::DEBUG::[newsunpack:656] Analyzing rar file ... RAR5 found
2020-02-04 20:45:22,981::DEBUG::[newsunpack:657] Running unrar ['/usr/bin/nice', '-n10', '/usr/bin/ionice', '-c2', '-n4', '/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-p-', '/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar', '/mnt/storage/downloads/PC/_UNPACK_Open.Source.Software.1/']
2020-02-04 20:45:23,017::DEBUG::[newsunpack:827] UNRAR output
UNRAR 5.80 freeware Copyright (c) 1993-2019 Alexander Roshal
Incorrect password for /mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar
Total errors: 1
2020-02-04 20:45:23,017::INFO::[newsunpack:831] Unpacked 0 files/folders in 0 seconds
2020-02-04 20:45:23,017::DEBUG::[newsunpack:541] rar_unpack(): Rars: ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']
2020-02-04 20:45:23,017::DEBUG::[newsunpack:542] rar_unpack(): Newfiles: []
2020-02-04 20:45:23,017::INFO::[newsunpack:257] Unrar finished on /mnt/storage/incoming/SABnzbd/Open.Source.Software
2020-02-04 20:45:23,017::DEBUG::[newsunpack:2128] build_filelists(): joinables: []
2020-02-04 20:45:23,017::DEBUG::[newsunpack:2129] build_filelists(): zips: []
2020-02-04 20:45:23,017::DEBUG::[newsunpack:2130] build_filelists(): rars: ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']
2020-02-04 20:45:23,018::DEBUG::[newsunpack:2131] build_filelists(): 7zips: []
2020-02-04 20:45:23,018::DEBUG::[newsunpack:2132] build_filelists(): ts: []
2020-02-04 20:45:23,018::DEBUG::[newsunpack:2128] build_filelists(): joinables: []
2020-02-04 20:45:23,018::DEBUG::[newsunpack:2129] build_filelists(): zips: []
2020-02-04 20:45:23,018::DEBUG::[newsunpack:2130] build_filelists(): rars: ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']
2020-02-04 20:45:23,018::DEBUG::[newsunpack:2131] build_filelists(): 7zips: []
2020-02-04 20:45:23,018::DEBUG::[newsunpack:2132] build_filelists(): ts: []
2020-02-04 20:45:23,018::INFO::[newsunpack:253] Unrar starting on /mnt/storage/incoming/SABnzbd/Open.Source.Software
2020-02-04 20:45:23,018::DEBUG::[newsunpack:477] Rar_sets: {'005-oss': ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']}
2020-02-04 20:45:23,018::INFO::[newsunpack:520] Extracting rarfile /mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar (belonging to 005-oss) to /mnt/storage/downloads/PC/_UNPACK_Open.Source.Software.1
2020-02-04 20:45:23,018::DEBUG::[misc:722] Read these passwords from file: ['<the right password>']
2020-02-04 20:45:23,018::INFO::[misc:724] Read 1 passwords from file /home/<USERNAME>/.sabnzbd/passwords.txt
2020-02-04 20:45:23,019::DEBUG::[newsunpack:615] rar_extract(): Extractionpath: /mnt/storage/downloads/PC/_UNPACK_Open.Source.Software.1
2020-02-04 20:45:23,019::DEBUG::[newsunpack:656] Analyzing rar file ... RAR5 found
2020-02-04 20:45:23,019::DEBUG::[newsunpack:657] Running unrar ['/usr/bin/nice', '-n10', '/usr/bin/ionice', '-c2', '-n4', '/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-p-', '/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar', '/mnt/storage/downloads/PC/_UNPACK_Open.Source.Software.1/']
2020-02-04 20:45:23,054::DEBUG::[newsunpack:827] UNRAR output
UNRAR 5.80 freeware Copyright (c) 1993-2019 Alexander Roshal
Incorrect password for /mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar
Total errors: 1
2020-02-04 20:45:23,054::INFO::[newsunpack:831] Unpacked 0 files/folders in 0 seconds
2020-02-04 20:45:23,054::DEBUG::[newsunpack:541] rar_unpack(): Rars: ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']
2020-02-04 20:45:23,054::DEBUG::[newsunpack:542] rar_unpack(): Newfiles: []
2020-02-04 20:45:23,055::INFO::[newsunpack:257] Unrar finished on /mnt/storage/incoming/SABnzbd/Open.Source.Software
2020-02-04 20:45:23,055::DEBUG::[newsunpack:2128] build_filelists(): joinables: []
2020-02-04 20:45:23,055::DEBUG::[newsunpack:2129] build_filelists(): zips: []
2020-02-04 20:45:23,055::DEBUG::[newsunpack:2130] build_filelists(): rars: ['/mnt/storage/incoming/SABnzbd/Open.Source.Software/005-oss.rar']
2020-02-04 20:45:23,055::DEBUG::[newsunpack:2131] build_filelists(): 7zips: []
2020-02-04 20:45:23,055::DEBUG::[newsunpack:2132] build_filelists(): ts: []
2020-02-04 20:45:23,055::INFO::[postproc:373] Unpacked files []
2020-02-04 20:45:23,055::INFO::[postproc:378] Finished unpack_magic on Open.Source.Software
Code: Select all
UNRAR 5.71 freeware Copyright (c) 1993-2019 Alexander Roshal
The specified password is incorrect