SAP Knowledge Base Article - Preview

3743639 - HANA install fails with host agent installation error due to sapadm not existing in /etc/passwd

Symptom

Installation for HANA is failed during the steps of SAP Host Agent installation. 

hdblcm.log
 - INFO:     Output line 40: Installing SAP Host Agent version 7.**.**...
 - INFO:     Output line 41: Installation failed
 - INFO:     Output line 42:   error installing
 - INFO:     Output line 43:     Cannot create Instance
 - INFO:     Output line 44:       Cannot install SAP Host Agent
 - INFO:     Output line 45: 
- INFO:     Output line 46: Log file written to '/var/tmp/hdb_<SID>_hdblcm_install_<timestamp>/hdbinst.log' on host '<hostname>'.
 - INFO:     Program terminated with exit code 1
 - ERR :   Installation of SAP HANA Database failed

Following detailed error message can be found in hdbinst.log:

 - INFO:   Installing SAP Host Agent version 7.**.**...
- INFO:     Starting external program /hana/shared/<SID>/global/hdb/saphostagent_setup/saphostexec
 - INFO:       Command line is: /hana/shared/DE5/global/hdb/saphostagent_setup/saphostexec -install -setup tls12
 - INFO:       Output line 1: Install service
 - INFO:       Output line 2: usermod: user 'sapadm' does not exist in /etc/passwd
- INFO:       Output line 3: [Thr ***************] <timestamp>
- INFO:       Output line 4: [Thr ***************] *** WARNING => usermod exit with status 6 [OsUtilux.cpp 1244]
- INFO:       Output line 5: [Thr ***************] *** ERROR => Unable to add sapadm in the group sapsys 
 - INFO:       Output line 6:  (9: Bad file descriptor) [OsUtilux.cpp 1916]
 - INFO:       Program terminated with exit code 255
 - ERR :   Installation/Upgrade of SAP Host Agent FAILED
- INFO:     Starting external program /hana/shared/<SID>/global/hdb/saphostagent_setup/saphostexec
- INFO:       Command line is: /hana/shared/<SID>/global/hdb/saphostagent_setup/saphostexec -install -setup tls12
 - INFO:       Output line 1: Install service
 - INFO:       Output line 2: usermod: user 'sapadm' does not exist in /etc/passwd
- INFO:       Output line 3: [Thr ***************] <timestamp>
- INFO:       Output line 4: [Thr ***************] *** WARNING => usermod exit with status 6 [OsUtilux.cpp 1244]
- INFO:       Output line 5: [Thr ***************] *** ERROR => Unable to add sapadm in the group sapsys 
 - INFO:       Output line 6:  (9: Bad file descriptor) [OsUtilux.cpp 1916]
 - INFO:       Program terminated with exit code 255
 - ERR :   Cannot install SAP Host Agent

Image /data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental  


Read more...

Environment

  • SAP HANA, platform edition

Product

SAP HANA, platform edition all versions

Keywords

hdbnsutil permission denied, sapadm missing, /etc/passwd, sapsys group, gid 79, host agent install failed, exit code 255, hdblcm, linux, secure store, usermod error, create secure store, hana installation error, sap host agent setup, Active Director  , KBA , HAN-LM-INS-SAP , Installation of SAP Systems on HANA , BC-CCM-HAG , Host Agent , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.