# Cannot execute bianry file: Exec format error in SLE 12.3

**URL:** <https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871>\
**Category:** Amazon-EC2\
**Created:** [September 1, 2018, 7:23am UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871 "2018-09-01T07:23:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sei\_Thu](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sei\_Thu](https://forums.suse.com/u/Sei_Thu)\
**Post date:** [September 1, 2018, 7:23am UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/1 "2018-09-01T07:23:06Z")

</div>

Hi All,

I am trying to extract .SAR file on SLE 12.3 on EC2 r4.4xlarge and facing the above error. Below is my OS information.

cat /etc/SuSE-release  
SUSE Linux Enterprise Server 12 (x86\_64)  
VERSION = 12  
PATCHLEVEL = 3

# This file is deprecated and will be removed in a future service pack or release.

# Please check /etc/os-release for details about this release.

It will be great if someone can advise this format error. Thanks in advance.

Best regards,

---

<div class="post-metadata">

**Author:** ![rjschwei](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rjschwei/32/8937_2.png) [@rjschwei](https://forums.suse.com/u/rjschwei)\
**Post date:** [September 1, 2018, 2:09pm UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/2 "2018-09-01T14:09:16Z")

</div>

Hi,

Looks like you forgot to paste the error message?

Anyway, according to google you’ll need the SAPCAR utility to extract the file.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [September 2, 2018, 1:01am UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/3 "2018-09-02T01:01:53Z")

</div>

seithunaing Wrote in message:  
[color=blue]

> I am trying to extract .SAR file on SLE 12.3 on EC2 r4.4xlarge and  
> facing the above error. Below is my OS information.
> 
> cat /etc/SuSE-release  
> SUSE Linux Enterprise Server 12 (x86\_64)  
> VERSION = 12  
> PATCHLEVEL = 3
> 
> # This file is deprecated and will be removed in a future service pack
> 
> or release.
> 
> # Please check /etc/os-release for details about this release.
> 
> It will be great if someone can advise this format error. Thanks in  
> advance.[/color]

As rjschwei has already suggested it looks like you need the  
sapcar utility - see  
[https://answers.sap.com/questions/265178/how-to-extract-sar-files-](https://answers.sap.com/questions/265178/how-to-extract-sar-files-)  
in-linux-server.html

Since this only seems to be available from SAP can I ask what your  
.SAR file is as I would expect anything from SAP to have noted  
the requirement for sapcar.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![Sei\_Thu](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sei\_Thu](https://forums.suse.com/u/Sei_Thu)\
**Post date:** [September 14, 2018, 10:37am UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/4 "2018-09-14T10:37:42Z")

</div>

[QUOTE=smflood;54198]seithunaing Wrote in message:  
[color=blue]

> I am trying to extract .SAR file on SLE 12.3 on EC2 r4.4xlarge and  
> facing the above error. Below is my OS information.
> 
> cat /etc/SuSE-release  
> SUSE Linux Enterprise Server 12 (x86\_64)  
> VERSION = 12  
> PATCHLEVEL = 3
> 
> # This file is deprecated and will be removed in a future service pack
> 
> or release.
> 
> # Please check /etc/os-release for details about this release.
> 
> It will be great if someone can advise this format error. Thanks in  
> advance.[/color]

As rjschwei has already suggested it looks like you need the  
sapcar utility - see  
[https://answers.sap.com/questions/265178/how-to-extract-sar-files-](https://answers.sap.com/questions/265178/how-to-extract-sar-files-)  
in-linux-server.html

Since this only seems to be available from SAP can I ask what your  
.SAR file is as I would expect anything from SAP to have noted  
the requirement for sapcar.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)[/QUOTE]

Hi Simon,

Actually I have tried with SAPCAR already in first place and encounter the error.

total 3112368  
-rwxrwxrwx 1 root root 3179408738 Mar 13 2018 IMDB\_SERVER100\_122\_16.SAR  
-rwxrwxrwx 1 root root 1652 Feb 26 2018 IMDB\_SERVER100\_122\_16.info  
-rwxrwxrwx 1 root root 7647411 Sep 14 11:47 SAPCAR\_0-80000935.EXE  
ip-10-2-1-10:/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE 1.0 FOR B1/LINX64SUSE # ./SAPCAR\_0-80000935.EXE -xvf IMDB\_SERVER100\_122\_16.SAR  
bash: ./SAPCAR\_0-80000935.EXE: cannot execute binary file: Exec format error  
ip-10-2-1-10:/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE 1.0 FOR B1/LINX64SUSE #  
ip-10-2-1-10:/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE 1.0 FOR B1/LINX64SUSE #

Thanks and best regards,

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [September 14, 2018, 12:59pm UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/5 "2018-09-14T12:59:42Z")

</div>

On 14/09/2018 08:44, seithunaing wrote:  
[color=blue]

> Actually I have tried with SAPCAR already in first place and encounter  
> the error.
> 
> total 3112368  
> -rwxrwxrwx 1 root root 3179408738 Mar 13 2018  
> IMDB\_SERVER100\_122\_16.SAR  
> -rwxrwxrwx 1 root root 1652 Feb 26 2018  
> IMDB\_SERVER100\_122\_16.info  
> -rwxrwxrwx 1 root root 7647411 Sep 14 11:47 SAPCAR\_0-80000935.EXE  
> ip-10-2-1-10:/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE  
> 1.0 FOR B1/LINX64SUSE # ./SAPCAR\_0-80000935.EXE -xvf  
> IMDB\_SERVER100\_122\_16.SAR  
> bash: ./SAPCAR\_0-80000935.EXE: cannot execute binary file: Exec format  
> error  
> ip-10-2-1-10:/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE  
> 1.0 FOR B1/LINX64SUSE #  
> ip-10-2-1-10:/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE  
> 1.0 FOR B1/LINX64SUSE #[/color]

That makes sense since .EXE files are usually for DOS/Windows.

What is it that you’re trying to extract/achieve? I can’t help thinking  
that the .SAR file is not the correct thing to be using on a (SUSE)  
Linux server.

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![Sei\_Thu](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sei\_Thu](https://forums.suse.com/u/Sei_Thu)\
**Post date:** [September 14, 2018, 1:21pm UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/6 "2018-09-14T13:21:40Z")

</div>

Hi Simon,

This is extracting SAP application in SUSE server. We normally can perform all these task in On-premise SUSE Enterprise Linux Server for SAP application. But I cannot work on AWS EC2 that’s why I am raising it. Thanks for your reply.

Best regards,

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [September 14, 2018, 4:33pm UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/7 "2018-09-14T16:33:13Z")

</div>

On 14/09/2018 11:24, seithunaing wrote:  
[color=blue]

> This is extracting SAP application in SUSE server. We normally can  
> perform all these task in On-premise SUSE Enterprise Linux Server for  
> SAP application. But I cannot work on AWS EC2 that’s why I am raising  
> it. Thanks for your reply.[/color]

A quick search for “SUSE SAP AWS” found that SLES for SAP Applications  
is available in the AWS Marketplace.

I also found  
[https://www.suse.com/media/guide/suse\_linux\_enterprise\_server\_for\_sap\_applications\_12\_sp3\_for\_the\_aws\_cloud\_setup\_guide.pdf](https://www.suse.com/media/guide/suse_linux_enterprise_server_for_sap_applications_12_sp3_for_the_aws_cloud_setup_guide.pdf)  
which perhaps you’ve already seen.

Finally I’ll note that there is a forum dedicated to SLES for SAP  
Applications at  
[https://forums.suse.com/forumdisplay.php?41-SLES-SAP-Applications](https://forums.suse.com/forumdisplay.php?41-SLES-SAP-Applications) though  
admittedly AWS hasn’t been discussed.

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [September 18, 2018, 6:13pm UTC](https://forums.suse.com/t/cannot-execute-bianry-file-exec-format-error-in-sle-12-3/32871/8 "2018-09-18T18:13:48Z")

</div>

[QUOTE=seithunaing;54415]Hi Simon,

Actually I have tried with SAPCAR already in first place and encounter the error.  
[…]  
ip-10-2-1-10:/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE 1.0 FOR B1/LINX64SUSE # ./SAPCAR\_0-80000935.EXE -xvf IMDB\_SERVER100\_122\_16.SAR  
bash: ./SAPCAR\_0-80000935.EXE: cannot execute binary file: Exec format error  
[/QUOTE]

may I assume you have somehow transferred “./SAPCAR\_0-80000935.EXE” to that directory manually? Where did it come from, a server of the same variant (OS / architecture)? It might be worth lookingat that file a bit closer to determine why you cannot invoke it without that format error.

# file “/hana/data/REV 166.12/51052924/DATA\_UNITS/SAP HANA DATABASE 1.0 FOR B1/LINX64SUSE/SAPCAR\_0-80000935.EXE”

ought to show some basic info about the file structure - and comparing checksums with the copy source might be helpful, too.

Regards,  
J
