FYI - Ubuntu 18.04 Failed Unpacking.

Get help, report and discuss bugs.
Post Reply
micdawg12
Posts: 6
Joined: 02 May 2018, 20:22

FYI - Ubuntu 18.04 Failed Unpacking.

Post by micdawg12 » 09 May 2018, 02:58

Just an FYI for anybody using NzbGet on Ubuntu 18.04 and having consistent failed unpacks :

The supplied unrar immediately dumps on use by NzbGet. All you have to do to fix this is do a apt-get install unzip ( I would go ahead and do apt-get install p7zip-full also )

After install to get the path where the new commands are do a "which unrar" and "which 7z" and then supply those for use by nzbget on the Unpack tab in settings. Save and then reload NzbGet. Everything should work fine now.

Hope this helps at least 1 person.

phibs
Posts: 1
Joined: 22 May 2018, 23:42

Re: FYI - Ubuntu 18.04 Failed Unpacking.

Post by phibs » 22 May 2018, 23:43

This happens on Fedora 28 as well. I just remove them and ln -s `which unrar` and 7za. This definitely sucks though and you saved me a lot of headache!

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: FYI - Ubuntu 18.04 Failed Unpacking.

Post by sanderj » 24 May 2018, 20:26

micdawg12 wrote:
09 May 2018, 02:58
Just an FYI for anybody using NzbGet on Ubuntu 18.04 and having consistent failed unpacks :

The supplied unrar immediately dumps on use by NzbGet.
You mean the unrar supplied by *Ubuntu 18.04*? On my Ubuntu 18.04 I have:

Code: Select all

$ unrar | head -2

UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal
... but I'm not sure that is the one provided by Ubuntu, as I might have installed it afterwards.
All you have to do to fix this is do a apt-get install unzip ( I would go ahead and do apt-get install p7zip-full also )

After install to get the path where the new commands are do a "which unrar" and "which 7z" and then supply those for use by nzbget on the Unpack tab in settings. Save and then reload NzbGet. Everything should work fine now.

Hope this helps at least 1 person.

So you're saying that installing unzip gives a better unrar executable? I don't understand, because unzip does not contain any unrar; see https://packages.ubuntu.com/bionic/amd64/unzip/filelist

I'm posting this, because I did two downloads with nzbget 20-testing, and both failed with "Unpack for <blabla> failed.", and a manual "unrar x" worked perfectly in both cases, so I'm puzzled ... :o

EDIT: see below. Short: the unrar provided by nzbget-20-testing crashes, whereas the unrar provided Ubuntu is correct. That explains all of the above. NO NEED to install unzip.
Last edited by sanderj on 24 May 2018, 21:11, edited 2 times in total.

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: FYI - Ubuntu 18.04 Failed Unpacking.

Post by sanderj » 24 May 2018, 20:32

Oh, wait: the ./unrar in nzbget crashes:

Code: Select all

sander@witte:~/nzbget$ ./unrar 
unrar: loadlocale.c:129: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)

sander@witte:~/nzbget$ ./nzbget --version
nzbget version: 20.0-testing-r2181
sander@witte:~/nzbget$ 

sander@witte:~/nzbget$ file unrar 
unrar: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, stripped


So if nzbget uses that ./unrar, I think I found the cause.

EDIT: And nzbget indeed uses that ./unrar: "${AppDir}/unrar"

EDIT 2:
I renamed the ./unrar, and copied in the unrar from nzbget-19.1, did a download, and all fine.

Code: Select all

-rwxr-xr-x  1 sander sander  499744 mei 24 22:47 unrar*
-rwxr-xr-x  1 sander sander 1326192 mei 13 21:40 unrar-crash-crash*
Also note the crashing unrar has a funny/big size.

I've created a github bug report: https://github.com/nzbget/nzbget/issues/542

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: FYI - Ubuntu 18.04 Failed Unpacking.

Post by sanderj » 26 May 2018, 06:34

Hey micdawg12 and phibs,

Can you try something: on your Linux, what is the output of:

Code: Select all

/lib/x86_64-linux-gnu/libc.so.6
It will show the glibc version.

For me, the included unrar only fails on Ubuntu 18.04 with "GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.". No problems on older versions of Ubuntu / glibc.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: FYI - Ubuntu 18.04 Failed Unpacking.

Post by hugbug » 26 May 2018, 23:25

sanderj, thanks for investigation.

In v19 and early versions unrar was compiled using uClibc (just like nzbget itself). In v20 I'm using glibc for x86_64 and armhf. Glibc doesn't like static linking much but it seemed to work for nzbget and for unrar too for a while.

Trying to fix this require understanding of unrar code and glibc details. I guess I'm going use uclibc version of unrar instead.

Thanks again for details.

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: FYI - Ubuntu 18.04 Failed Unpacking.

Post by sanderj » 27 May 2018, 05:33

Is using the unrar straight from rarlab maybe a solution (so: https://www.rarlab.com/rar/rarlinux-x64-5.6.b4.tar.gz)? AFAIK it is self-contained / uses no OS libraries?

Or is that what you mean with:
hugbug wrote:
26 May 2018, 23:25
I guess I'm going use uclibc version of unrar instead.
And did you see my EDIT 3 in https://github.com/nzbget/nzbget/issues ... -326290610 ? On older Ubuntu's, nzbget-20's unrar does work.
Oh, EDIT 1 is also interessting: "LC_ALL=C" makes unrar working ...

Post Reply

Who is online

Users browsing this forum: No registered users and 65 guests