Error "[Errno 2] No such file or directory" while running ra

Support for the Debian/Ubuntu package, created by JCFP.
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.
Post Reply
eb98jdb
Newbie
Newbie
Posts: 11
Joined: March 2nd, 2017, 12:37 pm

Error "[Errno 2] No such file or directory" while running ra

Post by eb98jdb »

Error "[Errno 2] No such file or directory" while running rar_unpack?

I'm getting the above error message in Ubuntu. The files seem to be downloading into the temp folder but there's some sort of issue with unraring them - any ideas on what it might be?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error "[Errno 2] No such file or directory" while runnin

Post by safihre »

Could you switch logging to Debug (in the Status Window) and then after it happens again, post the part of the log before and after that error here.
Then we can start debugging.

Also: what version of SAB?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by sander »

... and which version of unrar? Check with:

Code: Select all

unrar | head -3
For example

Code: Select all

$ unrar | head -3

UNRAR 5.40 freeware      Copyright (c) 1993-2016 Alexander Roshal
Or with +Debug set in SABnzbd:

Code: Select all

$ cat ~/.sabnzbd/logs/sabnzbd.log* | grep -i "unrar binary version" | head -1
2017-02-27 18:40:49,470::DEBUG::[newsunpack:150] UNRAR binary version 5.40
eb98jdb
Newbie
Newbie
Posts: 11
Joined: March 2nd, 2017, 12:37 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by eb98jdb »

It's unrar 5.40 and SabNZBd 1.2.1 [d32cf57].

I think this is where the error is happening:

22:33:44,491::INFO::[newsunpack:452] Extracting rarfile /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/<HASH>72a3348.part01.rar (belonging to <HASH>72a3348) to /home/<USERNAME>/Temp/TV/_UNPACK_Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled
2017-03-02 22:33:44,491::DEBUG::[newsunpack:533] rar_extract(): Extractionpath: /home/<USERNAME>/Temp/TV/_UNPACK_Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled
2017-03-02 22:33:44,491::DEBUG::[newsunpack:571] Analyzing rar file ... RAR3 found
2017-03-02 22:33:44,491::DEBUG::[newsunpack:572] Running unrar ['None', 'x', '-idp', '-o-', '-p-', '/usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/<HASH>72a3348.part01.rar', '/home/<USERNAME>/Temp/TV/_UNPACK_Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/']
2017-03-02 22:33:44,552::INFO::[downloader:710] Thread [email protected]: Article [email protected] missing (error=430)
2017-03-02 22:33:44,569::INFO::[decoder:246] <Article: article=[email protected], bytes=398613, partnum=914, art_id=None> => missing from all servers, discarding
2017-03-02 22:33:44,601::ERROR::[newsunpack:470] Error "[Errno 2] No such file or directory" while running rar_unpack on Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled
2017-03-02 22:33:44,602::DEBUG::[newsunpack:471] Traceback:
Traceback (most recent call last):
File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 456, in rar_unpack
one_folder, nzo, rar_set, extraction_path)
File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 518, in rar_extract
fail, new_files, rars = rar_extract_core(rarfile_path, numrars, one_folder, nzo, setname, extraction_path, password)
File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 575, in rar_extract_core
startupinfo=stup, creationflags=creationflags)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
2017-03-02 22:33:44,605::DEBUG::[bpsmeter:268] bps: 11249638.3638
2017-03-02 22:33:44,635::INFO::[newsunpack:235] Unrar finished on /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled
2017-03-02 22:33:44,635::INFO::[downloader:710] Thread [email protected]: Article [email protected] missing (error=430)
2017-03-02 22:33:44,636::INFO::[postproc:383] unpack_magic finished on Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled
2017-03-02 22:33:44,638::DEBUG::[tvsort:210] Found TV Show (Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled)
2017-03-02 22:33:44,646::INFO::[decoder:246] <Article: article=[email protected], bytes=398575, partnum=915, art_id=None> => missing from all servers, discarding
2017-03-02 22:33:44,768::INFO::[postproc:582] Cleaning up Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled (keep_basic=True)
2017-03-02 22:33:44,768::INFO::[__init__:960] /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/__ADMIN__/SABnzbd_nzf_ll_OoP removed
2017-03-02 22:33:44,769::INFO::[__init__:960] /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/__ADMIN__/SABnzbd_nzf_S4aKV4 removed
2017-03-02 22:33:44,769::INFO::[__init__:960] /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/__ADMIN__/SABnzbd_nzf_Fmu_aS removed
2017-03-02 22:33:44,769::INFO::[__init__:960] /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/__ADMIN__/SABnzbd_nzf_RTwSUL removed
2017-03-02 22:33:44,770::INFO::[__init__:960] /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/__ADMIN__/SABnzbd_nzf_2EPghX removed
2017-03-02 22:33:44,770::INFO::[__init__:960] /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/__ADMIN__/SABnzbd_nzf_UUcs7K removed
2017-03-02 22:33:44,770::INFO::[__init__:960] /usr/share/sabnzbdplus/Downloads/incomplete/Its.Always.Sunny.in.Philadelphia.S12E09.720p.HDTV.x264-AVS-Scrambled/__ADMIN__/SABnzbd_nzf_oh8R6z removed
2017-03-02 22:33:44,773::INFO::[postproc:86] Saving postproc queue
2017-03-02 22:33:44,773::INFO::[__init__:969] Saving data for postproc2.sab in
eb98jdb
Newbie
Newbie
Posts: 11
Joined: March 2nd, 2017, 12:37 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by eb98jdb »

I think it could be a permissions issue?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by sander »

eb98jdb wrote:I think it could be a permissions issue?
Maybe.

/usr/share/sabnzbdplus/Downloads/incomplete/ as download location is very unusual. So:
- Are you running SABnzbd as root? (If so: Why?!)
- does /usr/share/sabnzbdplus/Downloads/incomplete/ exist?
- what is the output of

Code: Select all

cat ~/.sabnzbd/sabnzbd.ini | grep dir
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error "[Errno 2] No such file or directory" while runnin

Post by safihre »

No, it's something with your unrar:

Code: Select all

Running unrar ['None', ...
It should say the path to your Unrar there instead of 'None'

Unrar is not detected on startup.
Can you run what @sanderjo said?

Code: Select all

unrar | head -3
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
eb98jdb
Newbie
Newbie
Posts: 11
Joined: March 2nd, 2017, 12:37 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by eb98jdb »

Unrar | head -3 produces :-

UNRAR 5.30 beta 2 freeware Copyright (c) 1993-2015 Alexander Roshal.

I'm not running SABnzbd as root.
/usr/share/sabnzbplus/Downloads/incomplete does exist but is empty (I didn't change any of the settings for where to download - just for where the output end up)

The output I get for the first command is:-

cat: /home/plex/.sabnzbd/sabnzbd.ini: No such file or directory
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by sander »

My alarm bells are ringing ... what an inconsistent setup:

- Unrar 5.40 and 5.30 ... ?
- not root, but incomplete dir is pointing to a non-existing directory, to which (parent) directory only root can write?
- no sabnzbd.ini for the account you use?!
- plex? So not a plain ubuntu?
eb98jdb
Newbie
Newbie
Posts: 11
Joined: March 2nd, 2017, 12:37 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by eb98jdb »

Not deliberately inconsistent! Quite new to Ubuntu.

I installed SABNZBd via the Atomic Toolkit using plex as the user.

I just rebooted the server and SAB seems to be able to pick up and unpack now?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 2] No such file or directory" while runnin

Post by sander »

So you installed Plex?

If so, it's better to say so. Maybe Plex is based on Ubuntu (I don't know), but Plex is Plex, with all its specials (as in: non-Ubuntu style).
Post Reply