Page 1 of 2

Direct unpack fails [Qnap NAS]

Posted: August 1st, 2022, 12:52 am
by kallek
I installed Sabnzbd on a Qnap NAS via the sherpa script (https://forum.qnap.com/viewtopic.php?f=320&t=132373) but I can't get direct unpack to work. I enabled debug logging and the first download I tested stopped direct unpack after four rar-files were downloaded with the error:

Code: Select all

Unexpected end of archive
After download was complete sabnzbd says quickcheck is OK and it unpacks without needing to repair. ( Also tested the fourth rar-file during download and it was OK.)

The second download i get this message:

Code: Select all

2022-07-30 16:01:34,126::INFO::[nzbstuff:262] Article [email protected] unavailable on all servers, discarding
2022-07-30 16:01:34,126::INFO::[nzbstuff:1513] Prospectively added 1 repair blocks to ...
Sabnzbd says that there is 1 articles missing but Quickcheck is OK and it unrars after download without need for repair.

Re: Direct unpack fails

Posted: August 3rd, 2022, 3:57 pm
by safihre
Seems maybe a timing issue. Try a different download maybe? For example the test download in the Status window.

Re: Direct unpack fails

Posted: August 4th, 2022, 1:04 pm
by kallek
safihre wrote: August 3rd, 2022, 3:57 pm Seems maybe a timing issue. Try a different download maybe? For example the test download in the Status window.
So I tried a test download and this is what I get:

Code: Select all

2022-08-04 19:50:28,573::INFO::[directunpacker:444] DirectUnpacked volume 1 for sometestfile-1GB
2022-08-04 19:50:29,022::INFO::[directunpacker:220] Error in DirectUnpack of sometestfile-1GB: Unexpected end of archive
2022-08-04 19:50:29,023::INFO::[directunpacker:450] Aborting DirectUnpack for sometestfile-1GB
2022-08-04 19:50:29,424::DEBUG::[filesystem:937] Removing dir recursively /share/Multimedia/Movies/_UNPACK_test_download_1000MB.1
2022-08-04 19:50:29,431::DEBUG::[directunpacker:334] DirectUnpack Unrar output 
UNRAR 6.10 beta 3 freeware      Copyright (c) 1993-2021 Alexander Roshal

Re: Direct unpack fails

Posted: August 6th, 2022, 3:37 am
by safihre
There's not more lines?

Re: Direct unpack fails

Posted: August 6th, 2022, 10:06 am
by kallek
safihre wrote: August 6th, 2022, 3:37 am There's not more lines?
There are alot of lines in the logfile, but those are the ones I thought relevant. Is there anything else in particular that I should look for, or should I paste the whole file?

Re: Direct unpack fails

Posted: August 6th, 2022, 10:41 am
by safihre
The unrar output of course, you clipped it after the first line but that's the one that will tell us what's wrong.

Re: Direct unpack fails

Posted: August 6th, 2022, 11:48 am
by kallek
safihre wrote: August 6th, 2022, 10:41 am The unrar output of course, you clipped it after the first line but that's the one that will tell us what's wrong.
Here are the following lines:

Code: Select all

2022-08-04 19:50:28,573::INFO::[directunpacker:444] DirectUnpacked volume 1 for sometestfile-1GB
2022-08-04 19:50:29,022::INFO::[directunpacker:220] Error in DirectUnpack of sometestfile-1GB: Unexpected end of archive
2022-08-04 19:50:29,023::INFO::[directunpacker:450] Aborting DirectUnpack for sometestfile-1GB
2022-08-04 19:50:29,424::DEBUG::[filesystem:937] Removing dir recursively /share/Multimedia/Movies/_UNPACK_test_download_1000MB.1
2022-08-04 19:50:29,431::DEBUG::[directunpacker:334] DirectUnpack Unrar output 
UNRAR 6.10 beta 3 freeware      Copyright (c) 1993-2021 Alexander Roshal


Extracting from /share/Download/incomplete/test_download_1000MB/sometestfile-1GB.part01.rar

Extracting  /share/Multimedia/Movies/_UNPACK_test_download_1000MB.1/1GB-explanation.txt  OK
Extracting  /share/Multimedia/Movies/_UNPACK_test_download_1000MB.1/1GB.bin

Extracting from /share/Download/incomplete/test_download_1000MB/sometestfile-1GB.part02.rar

Unexpected end of archive
2022-08-04 19:50:29,750::DEBUG::[interface:133] Request GET /api from 192.168.1.133 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36] {'mode': 'queue', 'search': '', 'start': '0', 'limit': '20', 'output': 'json', 'apikey':<APIKEY>', '_': '1659634853886'}
2022-08-04 19:50:29,755::DEBUG::[interface:133] Request GET /api from 192.168.1.133 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36] {'mode': 'history', 'search': '', 'failed_only': '0', 'start': '0', 'limit': '10', 'last_history_update': '21', 'output': 'json', 'apikey':<APIKEY>', '_': '1659634853887'}
2022-08-04 19:50:29,894::DEBUG::[assembler:85] Decoding part of /share/Download/incomplete/test_download_1000MB/sometestfile-1GB.part02.rar

Re: Direct unpack fails

Posted: August 6th, 2022, 12:53 pm
by safihre
Aaah, now I see. The problem is your unrar version, you should update to 6.10 stable. So not the beta.
They fixed a problem in there where it would continue unpacking even though we didn't tell it to, so it's unpacking archives that sabnzbd hasn't finished yet.

Re: Direct unpack fails

Posted: August 6th, 2022, 1:59 pm
by OneCD
safihre wrote: August 6th, 2022, 12:53 pm Aaah, now I see. The problem is your unrar version, you should update to 6.10 stable. So not the beta.
At the moment, 6.10 beta 3 is the latest version available via Entware, so we're stuck with it for now. :(

@kallek, maybe try asking @zyxmon if he can update the 'unrar' package to a later version? Create a new issue for it: https://github.com/Entware/Entware/issues

Re: Direct unpack fails

Posted: August 6th, 2022, 2:32 pm
by sander
Or, in the meantime, just use an earlier version of unrar?

Re: Direct unpack fails

Posted: August 6th, 2022, 2:55 pm
by OneCD
Bah, I should have said that 6.10 beta 3 is the ONLY version available via Entware. ;D

AFAIK, we can't go back a version in Entware.

An alternative is to install @QNAP_Stephane's Unrar QPKG. I think he's on 6.0.6 at the moment. I'd like to confirm this but the Qnapclub site is down (again).

Re: Direct unpack fails

Posted: August 8th, 2022, 12:44 am
by kallek
OneCD wrote: August 6th, 2022, 1:59 pm
safihre wrote: August 6th, 2022, 12:53 pm Aaah, now I see. The problem is your unrar version, you should update to 6.10 stable. So not the beta.
At the moment, 6.10 beta 3 is the latest version available via Entware, so we're stuck with it for now. :(

@kallek, maybe try asking @zyxmon if he can update the 'unrar' package to a later version? Create a new issue for it: https://github.com/Entware/Entware/issues
I created an issue on github, but they said I should take it up with the OpenWrt guys.

https://github.com/Entware/Entware/issues/828

Re: Direct unpack fails

Posted: August 8th, 2022, 12:50 am
by OneCD
Yep, I saw that. Image

Re: Direct unpack fails

Posted: August 8th, 2022, 3:06 am
by sander
So until that time: turn off Direct Unpack?

Re: Direct unpack fails

Posted: August 8th, 2022, 7:26 am
by kallek
I got an answer back in the OpenWRT forum that I don't understand. Can someone please explain what I can do next?

https://github.com/openwrt/openwrt/issues/10417