Error "[Errno 8] Exec format error"

Get help with all aspects of SABnzbd
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.
hedderz
Newbie
Newbie
Posts: 9
Joined: February 13th, 2017, 6:51 pm

Error "[Errno 8] Exec format error"

Post by hedderz »

Hi All

I have just installed SABnzbd on my nas (recently factory defaulted) and every download that it completes a download, I get the error in the subject Error "[Errno 8] Exec format error" Error "[Errno 8] Exec format error. I am very new to linux so can handle the basics but will need quite a bit of hand holding. Does anyone have any ideas what could be the issue.

NAS: Netgrear ReadyNAS NVX v4.2.30
SABnzbd: 1.2.0 (upgraded from 1.1.1)
Python: 2.7.10

Thanks

Hedderz
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 8] Exec format error"

Post by sander »

Code: Select all

Error "[Errno 8] Exec format error. 
Did you Google that?
hedderz
Newbie
Newbie
Posts: 9
Joined: February 13th, 2017, 6:51 pm

Re: Error "[Errno 8] Exec format error"

Post by hedderz »

I did google the error but all the posts seem to regarding custom scripts that people have written and none seem to reference SAB. As I mentioned, I have very new to linux so a lot of what is discussed in the posts go over my head. One post that does mention SAB also includes Sickbeard and a SAB to Sickbeard script but I am not using sickbeard. I am using SickRage however. I am not sure how similar the two are and I also thought that the error was before SickRage got involved as it seems to me, the very uninitiated, the download/extraction is where it is failing and not the renaming/moving if the file.
hedderz
Newbie
Newbie
Posts: 9
Joined: February 13th, 2017, 6:51 pm

Re: Error "[Errno 8] Exec format error"

Post by hedderz »

another post that I found (from this board but in dutch seems to suggest it could be an issue with Unrar. I don't think this is the case with me as when I run the command "apt-get install unrar" I get the following output which seem to suggest unrar is installed and working.
# apt-get install unrar
Reading package lists... Done
Building dependency tree... Done
unrar is already the newest version.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 8] Exec format error"

Post by sander »

I did google the error but all the posts seem to regarding custom scripts
Yes, shell scripts in general. I expect a post-processing script, maybe related to SickRage.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 8] Exec format error"

Post by sander »

You could post your sabnzbd.log here to show the context where this is happening.
hedderz
Newbie
Newbie
Posts: 9
Joined: February 13th, 2017, 6:51 pm

Re: Error "[Errno 8] Exec format error"

Post by hedderz »

Sorry for the delay, work has been a bit manic.

Here is the content of my sabnzbd.log. I just tried a reinstall and that didn't work

https://www.dropbox.com/s/1mpgqj1iy8ebc ... d.log?dl=0
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 8] Exec format error"

Post by sander »

Relevant parts from your log file:

Code: Select all

2017-02-18 15:20:34,898::INFO::[newsunpack:151] Problematic UNRAR

2017-02-18 15:20:34,904::INFO::[SABnzbd:450] UNRAR binary... found (/usr/local/bin/unrar)

Code: Select all

2017-02-18 15:25:50,516::INFO::[postproc:712] Verification and repair finished for BlaBla.S01E01.HDTV.x264-LOL
2017-02-18 15:25:50,524::INFO::[misc:833] Creating directories: /c/.sabnzbd/Downloads/complete/BlaBla.S01E01.HDTV.x264-LOL.4
2017-02-18 15:25:50,527::INFO::[postproc:376] Running unpack_magic on BlaBla.S01E01.HDTV.x264-LOL
2017-02-18 15:25:50,565::INFO::[newsunpack:230] Unrar starting on /c/.sabnzbd/Downloads/incomplete/BlaBla.S01E01.HDTV.x264-LOL
2017-02-18 15:25:50,568::INFO::[newsunpack:452] Extracting rarfile /c/.sabnzbd/Downloads/incomplete/BlaBla.S01E01.HDTV.x264-LOL/ccae95aab99b440ea2f4de7bc5fc4c64.part01.rar (belonging to ccae95aab99b440ea2f4de7bc5fc4c64) to /c/.sabnzbd/Downloads/complete/_UNPACK_BlaBla.S01E01.HDTV.x264-LOL.4
2017-02-18 15:25:50,635::ERROR::[newsunpack:470] Error "[Errno 8] Exec format error" while running rar_unpack on BlaBla.S01E01.HDTV.x264-LOL
2017-02-18 15:25:50,637::INFO::[newsunpack:234] Unrar finished on /c/.sabnzbd/Downloads/incomplete/BlaBla.S01E01.HDTV.x264-LOL
2017-02-18 15:25:50,639::INFO::[postproc:381] unpack_magic finished on BlaBla.S01E01.HDTV.x264-LOL
2017-02-18 15:25:51,052::INFO::[postproc:574] Cleaning up BlaBla.S01E01.HDTV.x264-LOL (keep_basic=True)
"Problematic UNRAR" ... I don't know why SAB says, but there must be a reason. And it could be the cause. So let's look at the source code:

Code: Select all

    if not (sabnzbd.WIN32 or sabnzbd.DARWIN):
        version, original = unrar_check(sabnzbd.newsunpack.RAR_COMMAND)
        sabnzbd.newsunpack.RAR_PROBLEM = not original or version < 380
        sabnzbd.newsunpack.RAR_VERSION = version
        logging.debug('UNRAR binary version %.2f', (float(version) / 100))
        if sabnzbd.newsunpack.RAR_PROBLEM:
            logging.info('Problematic UNRAR')
So it's about version. Can you set your SABnzbd log level to +Debug, restart SABnzbd, and find the line 'UNRAR binary version' and post it here?

And post the output of

Code: Select all

rar | head -5
and

Code: Select all

unrar | head -5
here in this thread.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error "[Errno 8] Exec format error"

Post by safihre »

You should update your unrar to unrar-nonfree, not the free one that comes with some OS'es.
Is that possible?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
hedderz
Newbie
Newbie
Posts: 9
Joined: February 13th, 2017, 6:51 pm

Re: Error "[Errno 8] Exec format error"

Post by hedderz »

Here is the UNRAR version

Code: Select all

2017-02-19 16:55:53,329::DEBUG::[newsunpack:149] UNRAR binary version 0.00
rar | head -5

Code: Select all

rar | head -5
-bash: /usr/local/bin/rar: cannot execute binary file
unrar | head -5

Code: Select all

 unrar | head -5
-bash: /usr/local/bin/unrar: cannot execute binary file
When ever I follow the various guides to install the nonfree version I get the following message

Code: Select all

 apt-get install unrar
Reading package lists... Done
Building dependency tree... Done
unrar is already the newest version.
I ran the following, not sure if that helps at all.

Code: Select all

dpkg -l unrar
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  unrar          1:4.1.4-1+deb7 Unarchiver for .rar files (non-free version)
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Error "[Errno 8] Exec format error"

Post by jcfp »

hedderz wrote:

Code: Select all

rar | head -5
-bash: /usr/local/bin/rar: cannot execute binary file
Given its location in /usr/local/ that file is not part of a standard debian package, but installed manually (and probably not even compiled for the correct hardware architecture). Remove it.
hedderz
Newbie
Newbie
Posts: 9
Joined: February 13th, 2017, 6:51 pm

Re: Error "[Errno 8] Exec format error"

Post by hedderz »

OK, I may need a little help to remove it

I tried "apt-get remove rar" but got the following

Code: Select all

apt-get remove rar
Reading package lists... Done
Building dependency tree... Done
Package rar is not installed, so not removed
I am still learning linux so my apologies if this is a very basic question.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 8] Exec format error"

Post by sander »

Code: Select all

mv /usr/local/bin/rar /usr/local/bin/rar.old
Afterwards:

Code: Select all

rar | head -5
... and post the output here.
hedderz
Newbie
Newbie
Posts: 9
Joined: February 13th, 2017, 6:51 pm

Re: Error "[Errno 8] Exec format error"

Post by hedderz »

rar | head -5
-bash: rar: command not found
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Error "[Errno 8] Exec format error"

Post by sander »

hedderz wrote:rar | head -5
-bash: rar: command not found
Good: the bad rar (or: some file pretending to be rar) is gone.
Post Reply