SAP Knowledge Base Article - Preview

2787939 - NIEHOST_UNKNOWN error when trying to start SAP


The sapstartsrv process for the affected instance is running.

When issuing the start command, SAP does not start. The following error is observed:

hostname:SIDadm 100> sapcontrol -nr XX -function Start

<date and time>
FAIL: NIEHOST_UNKNOWN, NiRawConnect failed in plugin_fopen()

-> "XX" is the instance number

When adding the "-debug" argument, the root cause is revealed:

hostname:SIDadm 101> sapcontrol -nr XX -debug -function Start
[Thr zzzz] <date and time>
[Thr zzzz] NiIInit: allocated nitab (2048 at 7f3cca0ee010)
[Thr zzzz] NiIHSBufInit: initialize hostname buffer (IPv4)
[Thr zzzz] NiHLInit: alloc host buf (100 entries)
[Thr zzzz] NiSrvLInit: alloc serv bufs (100 entries)
[Thr zzzz] NiISapServNameCheck: sapctrl00 not supported (len 9)
[Thr zzzz] NiPGetServInfoError: func NiPGetServByName; sys getaddrinfo; log 0; isErr 1; errorNo -8
[Thr zzzz] NiSrvLGetServNo: service name 'sapctrl00' not found by operating system
[Thr zzzz] NiInit3: NI already initializes (init=1;cur=2048)
[Thr zzzz] NiHLGetNodeAddr: hostname 'localhost' not found by operating system

<date and time>
FAIL: NIEHOST_UNKNOWN, NiRawConnect failed in plugin_fopen()



  • SAP Netweaver release independent
  • SAP HANA database release independent
  • SAP running on Linux/UNIX servers 


SAP HANA, platform edition all versions ; SAP NetWeaver all versions


Startsap, Sapcontrol, FAIL, NIEHOST_UNKNOWN, NiRawConnect, Plugin_fopen , KBA , BC-CST-STS , Startup Service , HAN-DB , SAP HANA Database , BC-CST , Client/Server Technology , BC-NET , Network Infrastructure , BC-JAS , NetWeaver Application Server Java , 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.