Skip to Content

Errors while attempting to install SAPHOSTAGENT (SAP BI Platform Support Tool 2.x)


While performing the steps to install SAP Host Agent on Unix Platforms using the steps outlined in:

How to install the SAP Host Agent on Unix Platforms - Business Intelligence (BusinessObjects) - SCN Wiki
below errors were seen:

Symptoms:

1) Command: SAPCAR* -xvf SAPHOST*.SAR

OR

Command: SAPCAR* -xvf SAPHOSTAGENT207_207-20005731.SAR

Response: -bash: SAPCAR_721-20010450.EXE: command not found

2) Command: ./SAPCAR.sh -xvf SAPHOSTAGENT207_207-20005731.SAR

Response: -bash: ./SAPCAR.sh: Permission denied

3) Command: ./saphostexec -install

Response:

-----

Install service

sh: /usr/sbin/useradd: Permission denied

[Thr 140318646814496] Tue Dec 29 18:02:04 2015

[Thr 140318646814496] *** WARNING => useradd exit with status 126 [OsUtilux.cpp 404]

[ERROR]

Create user sapadm failed

-----

Environment:
  • SAP BI Platform Support Tool 2.x
  • SAPHOSTAGENT
  • Linux

Solution:

1) With reference to the below error message mentioned above:

------

-bash: SAPCAR_721-20010450.EXE: command not found

------

please perform the below step:

1.a) mv SAPCAR_721-20010450.EXE SAPCAR.sh

Thereafter, attempt to execute the below command:

1.b) ./SAPCAR.sh -xvf SAPHOSTAGENT207_207-20005731.SAR

2) With reference to the below error message mentioned above:

------

-bash: ./SAPCAR.sh: Permission denied

------

please ensure that the folder in which SAPCAR.sh and SAPHOSTAGENT207_207-20005731.SAR exists has the read, write and execute permissions for the user who is executing the above mentioned relevant command.


3) With reference to the below error message mentioned above:

------

sh: /usr/sbin/useradd: Permission denied

[Thr 140318646814496] Tue Dec 29 18:02:04 2015

[Thr 140318646814496] *** WARNING => useradd exit with status 126 [OsUtilux.cpp 404]

[ERROR]

Create user sapadm failed

------

This error is indicative that you are not using root to install the agent or have not used sudo to get root access.  It is a one time requirement to install the SAP Host Agent with root access.  Post-install, the agent will run under the sapadm account (not as root)

Tags: