Unrar hangs in Docker/Ubuntu

Get help, report and discuss bugs.
Post Reply
kushfest
Posts: 4
Joined: 06 Jul 2018, 21:36

Unrar hangs in Docker/Ubuntu

Post by kushfest » 06 Jul 2018, 21:42

I'm having a problem that may be related. I'm running nzbget 20 in a docker container on a ubuntu 16.04.4 system. I've found more and more often my downloads will get stuck at the unpacking phase. They just never advance from unpacking to the next steps.

When I look at the files on my drive, I can see the unpacked file but it's size changes back and forth from 0 bytes to the size of the unpacked file. If I restart my nzbget docker container, the file immediately gets properly unpacked and processed. Somtimes the next file in the queue will get stuck and sometimes it won't.

I don't see any errors in any logs I've thought to check. It seems like maybe unrar is crashing. I'm not sure how to sort it out. Should I try using a different unrar install?

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

Re: Unrar hangs in Docker/Ubuntu

Post by hugbug » 06 Jul 2018, 22:05

That sounds similar to this report.

Which docker container?

When this happens again - before restating please save the log of nzb-item (click on item, then button Log, then button Save to file) and send me this log + global nzbget.log - nzbget@gmail.com.

kushfest
Posts: 4
Joined: 06 Jul 2018, 21:36

Re: Unrar hangs in Docker/Ubuntu

Post by kushfest » 06 Jul 2018, 22:09

Thank you for the quick response!

I'm using using the si0972/nzbget-mp4 container, which combines nzbget and mp4_automator in one container.

I'll absolutely send you the log when this next happens.

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

Re: Unrar hangs in Docker/Ubuntu

Post by hugbug » 15 Jul 2018, 18:07

kushfest wrote:
06 Jul 2018, 22:09
I'm using using the si0972/nzbget-mp4 container
This container is inherited from binhex/arch-nzbget. That must be the same issue as linked above.

As an experiment can you test if "nzbget" and "unrar" from nzbget installer work any better in the same container? For that you can install nzbget installer into any directory (inside container or host). Then take binaries "nzbget" and "unrar" from installation directory and put them into nzbget docker container.

After that you can delete installation directory created by installer. The installer puts all files into this directory and doesn't change any other files on your system. Therefore after removing of installation directory there will no be any traces of nzbget left.

kushfest
Posts: 4
Joined: 06 Jul 2018, 21:36

Re: Unrar hangs in Docker/Ubuntu

Post by kushfest » 15 Jul 2018, 19:45

As an experiment can you test if "nzbget" and "unrar" from nzbget installer work any better in the same container? For that you can install nzbget installer into any directory (inside container or host). Then take binaries "nzbget" and "unrar" from installation directory and put them into nzbget docker container.
I think I have successfully done as directed. I deleted nzbget and unrar in the /usr/bin folder inside the docker container and replaced them with versions I got from installer. I looked at my logs and unrar appears to be 5.50 now, so I'm thinking that verifies the change. nzbget is loading and running fine after restarting the docker. My first test download went without issue, but my second test seems to be stuck at "unpacking" again. I'll email the log file.

Quick note: restarting the nzbget docker container does still fix the problem and the file continues to unpack.
Last edited by kushfest on 15 Jul 2018, 20:18, edited 1 time in total.

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

Re: Unrar hangs in Docker/Ubuntu

Post by sanderj » 15 Jul 2018, 20:01

Could it be a plain disk problem?

Can you go into the docker, and then write stuff onto the unraid filesystem, along the lines of

Code: Select all

time dd if=/dev/zero of=/tmp/blabla bs=1k count=1M
and

Code: Select all

md5sum /tmp/blabla
Result on my laptop with SSD:

Code: Select all

sander@sammie:~$ time dd if=/dev/zero of=/tmp/blabla bs=1k count=1M
1048576+0 records in
1048576+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 6,71681 s, 160 MB/s

real	0m6,753s
user	0m0,422s
sys	0m6,297s

Code: Select all

sander@sammie:~$ md5sum /tmp/blabla
cd573cfaace07e7949bc0c46028904ff  /tmp/blabla
sander@sammie:~$ 

kushfest
Posts: 4
Joined: 06 Jul 2018, 21:36

Re: Unrar hangs in Docker/Ubuntu

Post by kushfest » 15 Jul 2018, 20:23

Could it be a plain disk problem?
The drive is a relatively new SSD, so I'm hoping that's not the case! I ran the tests you suggested:

Code: Select all

[root@893aa98632db /]# time dd if=/dev/zero of=/tmp/blabla bs=1k count=1M
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 3.43437 s, 313 MB/s

real	0m3.437s
user	0m0.361s
sys	0m3.068s

Code: Select all

[root@893aa98632db /]# md5sum /tmp/blabla
cd573cfaace07e7949bc0c46028904ff  /tmp/blabla
Anything look out of sorts?

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

Re: Unrar hangs in Docker/Ubuntu

Post by sanderj » 15 Jul 2018, 20:33

Looks good: fast & correct md5sum.

It seems to happen with binhex docker on unraid, so *maybe* a problem with the unraid as file system host. Just a wild guess.
(I'm not doubting your SSD)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests