Cannot execute bianry file: Exec format error in SLE 12.3

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,

Hi,

Looks like you forgot to paste the error message?

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

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-
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/

[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-
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/[/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,

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.

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,

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
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 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.

[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