Unpacking failed, an expected file was not unpacked

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.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Unpacking failed, an expected file was not unpacked

Post by sander »

@brando56894

Can you PM a link to that .NZB so that I can download it too?

I checked the relevant code in the file sabnzbd/newsunpack.py :

Code: Select all

    if cfg.unpack_check():
        if reliable_unpack_names() and not RAR_PROBLEM:
            missing = []
            # Loop through and check for the presence of all the files the archive contained
            for path in expected_files:
                #### SNIP
                #### ...
                if not os.path.exists(fullpath):
                    # There was a missing file, show a warning
                    missing.append(path)
                    logging.info(Ta('Missing expected file: %s => unrar error?'), latin1(path))
That last line (714) causes the message. So it's triggered by "not os.path.exists(fullpath)". So hypothesis / long shot: maybe the problem is in fullpath, and not path? Could you change (path) in that last line to (fullpath), redownload the .NZB again, and check & post the error message again?

EDIT:

The check is only done if cfg.unpack_check() is True. So worth a try: turn off that check. In the SAB-GUI: Config -> Switches: uncheck "Check result of unpacking" and try again.

Code: Select all

$ grep unpack_check ~/.sabnzbd/sabnzbd.ini
unpack_check = 0

HTH
brando56894
Newbie
Newbie
Posts: 27
Joined: April 29th, 2012, 4:34 pm

Re: Unpacking failed, an expected file was not unpacked

Post by brando56894 »

Flipping that switch seemed to fix the problem.
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: Unpacking failed, an expected file was not unpacked

Post by Taomyn »

I think this is the same issue I reported here: http://forums.sabnzbd.org/viewtopic.php?f=3&t=18106 only on Windows.

I've tried everything to figure out why it thinks the extracted file doesn't exist when it does (as I can see the final file in the temporary "UNPACKED" folder).

It's not all downloads but the only similarity with all the failed ones are that the failed ones are extracting a file with a filename made up of random letters. It shouldn't make any difference, as I simply rename it manually later and the file is perfectly ok. Only SAB complains.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Unpacking failed, an expected file was not unpacked

Post by shypike »

It can make a difference when the name contains illegal characters.
Possibly SABnzbd and unrar treat them differently.
Do you have an example NZB that shows this behaviour.
Personally I have never come across one.
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: Unpacking failed, an expected file was not unpacked

Post by Taomyn »

shypike wrote:It can make a difference when the name contains illegal characters.
Possibly SABnzbd and unrar treat them differently.
Do you have an example NZB that shows this behaviour.
Personally I have never come across one.
Yes, I have the last 3 nzb files that failed in this way. Where can I put them?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Unpacking failed, an expected file was not unpacked

Post by shypike »

Please zip and attach to an email to [email protected]
Kindly also add the URL of the message, for my convenience.
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: Unpacking failed, an expected file was not unpacked

Post by Taomyn »

shypike wrote:Please zip and attach to an email to [email protected]
Kindly also add the URL of the message, for my convenience.
Done
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: Unpacking failed, an expected file was not unpacked

Post by Taomyn »

Sort of hoped that 0.7.19RC2 would resolve the issue, but I just got:

Code: Select all

2014-10-12 18:36:10,424::INFO::[newsunpack:212] Unrar starting on D:\Program Files\SABnzbd\downloads\incomplete\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI
2014-10-12 18:36:10,424::DEBUG::[newsunpack:411] Rar_sets: {'GgyXmmO8P27bjNzt6gGshAmFV4ZcY': ['D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part01.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part02.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part03.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part04.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part05.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part06.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part07.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part08.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part09.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part10.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part11.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part12.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part13.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part14.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part15.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part16.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part17.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part18.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part19.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part20.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part21.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part22.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part23.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part24.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part25.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part26.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part27.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part28.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part29.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part30.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part31.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part32.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part33.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part34.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part35.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part36.rar', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part37.rar']}
2014-10-12 18:36:10,426::INFO::[newsunpack:425] Extracting rarfile D:\Program Files\SABnzbd\downloads\incomplete\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part01.rar (belonging to GgyXmmO8P27bjNzt6gGshAmFV4ZcY) to /MARGE\TV\Doctor Who 2005\_UNPACK_Doctor Who 2005 S08E08 Mummy On The Orient Express 1080p WEB-DL DD5 1 H 264-ECI
2014-10-12 18:36:10,426::DEBUG::[newsunpack:528] rar_extract(): Extractionpath: /MARGE\TV\Doctor Who 2005\_UNPACK_Doctor Who 2005 S08E08 Mummy On The Orient Express 1080p WEB-DL DD5 1 H 264-ECI
2014-10-12 18:36:15,621::DEBUG::[newsunpack:573] Running unrar ['D:\\Program Files\\SABnzbd\\win\\unrar\\x64\\UnRAR.exe', 'e', '-idp', '-o-', '-or', '-ai', '-p-', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI\\GgyXmmO8P27bjNzt6gGshAmFV4ZcY.part01.rar', '/MARGE\\TV\\Doctor Who 2005\\_UNPACK_Doctor Who 2005 S08E08 Mummy On The Orient Express 1080p WEB-DL DD5 1 H 264-ECI/']
2014-10-12 18:36:16,690::WARNING::[newsunpack:642] ERROR: Unknown option: MARGE\TV\Doctor Who 2005\_UNPACK_Doctor Who 2005 S08E08 Mummy On The Orient Express 1080p WEB-DL DD5 1 H 264-ECI/
2014-10-12 18:36:16,690::INFO::[newsunpack:216] Unrar finished on D:\Program Files\SABnzbd\downloads\incomplete\Doctor.Who.2005.S08E08.Mummy.On.The.Orient.Express.1080p.WEB-DL.DD5.1.H.264-ECI
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Unpacking failed, an expected file was not unpacked

Post by shypike »

I'm sorry, I didn't have time to process your examples.
I will before 0.7.19 final.
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: Unpacking failed, an expected file was not unpacked

Post by Taomyn »

shypike wrote:I'm sorry, I didn't have time to process your examples.
I will before 0.7.19 final.
That's ok, I appreciate the hard work you guys put in. Just let me know if you need anything further from me.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Unpacking failed, an expected file was not unpacked

Post by shypike »

"unknown option". Damned lack of backward compatibility.
(And lack of testing on my side).
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Unpacking failed, an expected file was not unpacked

Post by shypike »

It's not unrar, there's some sort of bug.
SABnzbd passes this as one of the parameters:
/MARGE\\TV\\......
Obviously that should be:
\\MARGE\\TV\\.....

How did you set the destination in Config->Categories or TVSort?
Just checking :)
There were some changes associated with full paths like this,
so I cannot rule out a new bug.
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: Unpacking failed, an expected file was not unpacked

Post by Taomyn »

shypike wrote:"unknown option". Damned lack of backward compatibility.
(And lack of testing on my side).
Sorry but change:

Code: Select all

2014-10-15 13:52:37,571::DEBUG::[newsunpack:573] Running unrar ['D:\\Program Files\\SABnzbd\\win\\unrar\\UnRAR.exe', 'e', '-idp', '-o-', '-or', '-ai', '-p-', 'D:\\Program Files\\SABnzbd\\downloads\\incomplete\\Marvels.Agents.of.S.H.I.E.L.D.S02E04.Face.My.Enemy.1080p.WEB-DL.DD5.1.H.264-BS\\XvxphvJ0tUNAw5f22.part01.rar', '/MARGE\\TV\\Marvels Agents of S H I E L D\\_UNPACK_Marvels Agents of S H I E L D S02E04 Face My Enemy 1080p WEB-DL DD5 1 H 264-BS/']
2014-10-15 13:52:38,490::WARNING::[newsunpack:642] ERROR: Unknown option: MARGE\TV\Marvels Agents of S H I E L D\_UNPACK_Marvels Agents of S H I E L D S02E04 Face My Enemy 1080p WEB-DL DD5 1 H 264-BS/
2014-10-15 13:52:38,492::INFO::[newsunpack:216] Unrar finished on D:\Program Files\SABnzbd\downloads\incomplete\Marvels.Agents.of.S.H.I.E.L.D.S02E04.Face.My.Enemy.1080p.WEB-DL.DD5.1.H.264-BS
This is the problem: '/MARGE\\TV\\Marvels Agents of S H I E L D\\_UNPACK_Marvels Agents of S H I E L D S02E04 Face My Enemy 1080p WEB-DL DD5 1 H 264-BS/

Just noticed there's also only a single "/" at the end as well in case that's a clue.
User avatar
Taomyn
Full Member
Full Member
Posts: 129
Joined: August 25th, 2008, 3:29 am

Re: Unpacking failed, an expected file was not unpacked

Post by Taomyn »

shypike wrote:It's not unrar, there's some sort of bug.
SABnzbd passes this as one the parameters:
/MARGE\\TV\\......
Obviously that should be:
\\MARGE\\TV\\.....

How did you set the destination in Config->Categories or TVSort?
Just checking :)
There were some changes associated with full paths like this,
so I cannot rule out a new bug.
As \\MARGE\TV
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Unpacking failed, an expected file was not unpacked

Post by shypike »

In that case, something is wrong in SABnzbd itself.
Both the forward slash at the front and the back are suspect.
Back to the drawing board.
Should you be using Sort for this download, can you post your Sort expression?
Post Reply