Page 1 of 1

Ubuntu - unrar not working

Posted: October 13th, 2014, 10:30 am
by Panic0815
Hi!

I am using sabnzbd for a while now, but on Windows, and a few weeks agos i decided to get a Linux "Server" running.
But since i have the Server sabnzbd wont unpack files after the download, i tried to find some Solutions on the Internet but didnt found anything that fits my Problem or solves it...
So now i hope you can help me... PS: I am Windows Admin and a Linux noob so please be Patient :)

So here are the Problem and some technical Information (i did remove some personal Data but all relevant Information is given):
Problem: sabnzbd does not unpack any File after the download

Versions for Ubuntu and unrar:
Server:~$ uname -a
Linux PServer 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Server:~$ unrar | head -5

UNRAR 5.00 beta 8 freeware Copyright (c) 1993-2013 Alexander Roshal

Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>

Part of the Startup from the Log:
2014-10-08 18:04:05,551::INFO::[__init__:330] All processes started
2014-10-08 18:04:05,551::INFO::[sabnzbdplus:335] Web dir is /usr/share/sabnzbdplus/interfaces/Plush
2014-10-08 18:04:05,551::INFO::[sabnzbdplus:335] Web dir is /usr/share/sabnzbdplus/interfaces/Config
2014-10-08 18:04:05,565::INFO::[sabnzbdplus:451] _yenc module... found!
2014-10-08 18:04:05,565::INFO::[sabnzbdplus:459] par2 binary... found (/usr/bin/par2)
2014-10-08 18:04:05,565::INFO::[sabnzbdplus:467] unrar binary... found (/usr/bin/unrar)
2014-10-08 18:04:05,565::INFO::[sabnzbdplus:472] unzip binary... found (/usr/bin/unzip)
2014-10-08 18:04:05,565::INFO::[sabnzbdplus:478] nice binary... found (/usr/bin/nice)
2014-10-08 18:04:05,565::INFO::[sabnzbdplus:482] ionice binary... found (/usr/bin/ionice)
2014-10-08 18:04:05,565::INFO::[sabnzbdplus:487] pyOpenSSL... found (True)
2014-10-08 18:04:05,566::INFO::[sabnzbdplus:1471] Starting web-interface on 127.0.0.1:8080
2014-10-08 18:04:05,567::INFO::[_cplogging:55] [08/Oct/2014:18:04:05] ENGINE Bus STARTING
2014-10-08 18:04:05,572::INFO::[_cplogging:55] [08/Oct/2014:18:04:05] ENGINE Started monitor thread '_TimeoutMonitor'.
2014-10-08 18:04:05,781::INFO::[_cplogging:55] [08/Oct/2014:18:04:05] ENGINE Serving on 127.0.0.1:8080
2014-10-08 18:04:05,782::INFO::[_cplogging:55] [08/Oct/2014:18:04:05] ENGINE Bus STARTED
2014-10-08 18:04:06,284::INFO::[sabnzbdplus:1540] Starting sabnzbdplus-0.7.16
2014-10-08 18:04:06,286::INFO::[dirscanner:274] Dirscanner starting up
2014-10-08 18:04:06,288::INFO::[urlgrabber:77] URLGrabber starting up

Part of a File Download:
2014-10-09 20:28:32,977::INFO::[postproc:596] Par2 check finished on File01
2014-10-09 20:28:32,992::INFO::[misc:791] Creating directories: /mnt/safe/Musik/File01
2014-10-09 20:28:33,052::INFO::[postproc:340] Running unpack_magic on File01
2014-10-09 20:28:33,059::INFO::[newsunpack:208] Unrar starting on /mnt/safe/Download/Progress/File01
2014-10-09 20:28:33,060::INFO::[newsunpack:424] Extracting rarfile /mnt/safe/Download/Progress/File01/Rar01.rar (belonging to RAR) to /mnt/safe/Musik/neu/_U$
2014-10-09 20:28:33,083::INFO::[newsunpack:489] Read the passwords file /mnt/safe/PW/PW.txt
2014-10-09 20:28:33,145::INFO::[newsunpack:719] 0 Datei(en)/Ordner entpackt in 0 Sekunden
2014-10-09 20:28:33,146::INFO::[newsunpack:212] Unrar finished on /mnt/safe/Download/Progress/File01
2014-10-09 20:28:33,151::INFO::[postproc:342] unpack_magic finished on File01
2014-10-09 20:28:33,700::INFO::[growler:267] Send to NotifyOSD: Download fertig / File01
2014-10-09 20:28:33,810::INFO::[postproc:521] Cleaning up File01 (keep_basic=False)
2014-10-09 20:28:33,815::INFO::[__init__:893] /mnt/safe/Download/Progress/File01/__ADMIN__/SABnzbd_nzf_hxiIM7 removed
2014-10-09 20:28:33,856::INFO::[postproc:84] Saving postproc Queue

What i see:
sabnzbd does find the unrar binary and it starts unpacking but then does nothing cause...? :)
I tried to unpack some files within the terminal with unrar and works perfect.
My sabnzbd is running as root/sudo so there should be no permission issue (also it can write the download to that Folder so it also should be able to write the extracted files - from a permission Point of view).

Pleas, please, please help me cause i am running out of ideas.


Thanks a lot and best regards
Panic

Re: Ubuntu - unrar not working

Posted: October 13th, 2014, 11:29 am
by sander
Very good analysis! My compliments.

From your logging:

Code: Select all

2014-10-09 20:28:33,083::INFO::[newsunpack:489] Read the passwords file /mnt/safe/PW/PW.txt
2014-10-09 20:28:33,145::INFO::[newsunpack:719] 0 Datei(en)/Ordner entpackt in 0 Sekunden
I can't find "Read the passwords file" anywhere in my logfiles. Nor in the SABnzbd source code. So ... where does it come from?
Looking at the second line (in German), I wonder if you have translated the first line?

The only line that has resemblance, says 'Failed to read the passwords file', which is the opposite of "Read the passwords file" ... :P

Re: Ubuntu - unrar not working

Posted: October 13th, 2014, 12:32 pm
by Panic0815
Hi,

first thanks for the reply.
I didnt translate anything of this logs - (just removed the full servername and replaced it with "Server" and changed the Name of the downloaded File) seems to me like sabnzbd has some sort of Translation :) or more possible it takes this out of the german ubuntu Installation ;).
But i also did already think about that PW.txt maybe i should recreate it under Ubuntu? Because it was made at a Windows machine...

BR
Panic

Re: Ubuntu - unrar not working

Posted: October 13th, 2014, 12:39 pm
by Panic0815
PS: The Information Comes from the Logs /home/%username%/.sabnzbd/logs/sabnzbd.log i just checked it again and i have the same row again for each download.
So maybe there is somethin wrong with my sabnzbd Installation?

Re: Ubuntu - unrar not working

Posted: October 13th, 2014, 1:46 pm
by sander
EDIT: "Starting sabnzbdplus-0.7.16" ... so quotes might be from that (old) version of SAB.

I would upgrade to current version of SABnzbd. Use the PPA method, see http://wiki.sabnzbd.org/install-ubuntu-repo, so on your current Ubuntu:

Code: Select all

sudo add-apt-repository ppa:jcfp/ppa
sudo apt-get update
sudo apt-get upgrade
Then type

Code: Select all

sabnzbdplus --version
and post the output here. If it's 0.7.18, rerun the same download

Re: Ubuntu - unrar not working

Posted: October 15th, 2014, 1:46 pm
by sander
And ... what is your follow-up?

Re: Ubuntu - unrar not working

Posted: October 16th, 2014, 5:45 am
by Panic0815
Hi,

sorry for that late reply but i did not found enough time to test things out correctly the last past days.
I now added the repository and updatet everything (reboot after that) and also recreated the PW.TXT with nano to an "Ubuntu created" File.
After 2 small Downloads it seems like everyhting is working like a charm :D

I will do some further testing but i think this one is solved.
Thank you very much for the fast help ;)

BR
Panic