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
Error "[Errno 8] Exec format error"
Forum rules
Help us help you:
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.
Re: Error "[Errno 8] Exec format error"
Code: Select all
Error "[Errno 8] Exec format error.
Re: Error "[Errno 8] Exec format error"
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.
Re: Error "[Errno 8] Exec format error"
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.
# apt-get install unrar
Reading package lists... Done
Building dependency tree... Done
unrar is already the newest version.
Re: Error "[Errno 8] Exec format error"
Yes, shell scripts in general. I expect a post-processing script, maybe related to SickRage.I did google the error but all the posts seem to regarding custom scripts
Re: Error "[Errno 8] Exec format error"
You could post your sabnzbd.log here to show the context where this is happening.
Re: Error "[Errno 8] Exec format error"
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
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
Re: Error "[Errno 8] Exec format error"
Relevant parts from your log file:
"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:
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
and
here in this thread.
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)
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')
And post the output of
Code: Select all
rar | head -5
Code: Select all
unrar | head -5
Re: Error "[Errno 8] Exec format error"
You should update your unrar to unrar-nonfree, not the free one that comes with some OS'es.
Is that possible?
Is that possible?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Error "[Errno 8] Exec format error"
Here is the UNRAR version
rar | head -5
unrar | head -5
When ever I follow the various guides to install the nonfree version I get the following message
I ran the following, not sure if that helps at all.
Code: Select all
2017-02-19 16:55:53,329::DEBUG::[newsunpack:149] UNRAR binary version 0.00
Code: Select all
rar | head -5
-bash: /usr/local/bin/rar: cannot execute binary file
Code: Select all
unrar | head -5
-bash: /usr/local/bin/unrar: cannot execute binary file
Code: Select all
apt-get install unrar
Reading package lists... Done
Building dependency tree... Done
unrar is already the newest version.
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)
Re: Error "[Errno 8] Exec format error"
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 wrote:Code: Select all
rar | head -5 -bash: /usr/local/bin/rar: cannot execute binary file
Re: Error "[Errno 8] Exec format error"
OK, I may need a little help to remove it
I tried "apt-get remove rar" but got the following
I am still learning linux so my apologies if this is a very basic question.
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
Re: Error "[Errno 8] Exec format error"
Code: Select all
mv /usr/local/bin/rar /usr/local/bin/rar.old
Code: Select all
rar | head -5
Re: Error "[Errno 8] Exec format error"
rar | head -5
-bash: rar: command not found
-bash: rar: command not found
Re: Error "[Errno 8] Exec format error"
Good: the bad rar (or: some file pretending to be rar) is gone.hedderz wrote:rar | head -5
-bash: rar: command not found