SAP Knowledge Base Article - Preview

3741655 - HANA cannot get started due to Name or service not known error.

Symptom

  • HANA cannot get started and in the nameserver trace, rc=-2: Name or service not known error can be found.

    [12210]{100239}[-1/-1] 2026-01-08 20:08:49.453636 i XSJSRevalidate   XSJSRevalidator.cpp(00081) : JavaScript bytecode versions of all objects match JavaScript VM.
    [12210]{-1}[-1/-1] 2026-01-08 20:08:49.546918 e assign           TREXIndexServer.cpp(02086) : post assign failed with ltt exception. stopping service... :
    exception  1: no.2110004  (Basis/IO/NetworkAccess/impl/NetworkAddress.cpp:624) TID: 12210
        Error invalid address: Resolver::resolve, rc=-2: Name or service not known
    exception throw location:
       0: 0x00007f9ee1d540f9 in NetworkAccess::NetworkAddress::assign(NetworkAccess::NetworkAddress::Protocol, char const*, char const*, bool)+0x14f8 at Basis/IO/NetworkAccess/impl/NetworkAddress.cpp:624 (libhdbbasis.so)
       1: 0x00007f9ee1d54502 in NetworkAccess::NetworkAddress::NetworkAddress(NetworkAccess::NetworkAddress::Protocol, char const*, unsigned short, bool)+0x51 at Basis/IO/NetworkAccess/impl/NetworkAddress.cpp:130 (libhdbbasis.so)
       2: 0x00007f9f1128f207 in xsengine::HttpNetIoDispatcher::initialize(long, bool, xsengine::RequestHandler&)+0x66 at XSEngine/Core/XSHttpNetIoDispatcher.cpp:125 (libxsengine.so)
       3: 0x00007f9f1127cb12 in XSEngineComponent::postAssign(NameServer::ServiceStartInfo&)+0x1f11 at XSEngine/XSEngine.cpp:323 (libxsengine.so)
       4: 0x000055cee93ebea4 in TrexService::ComponentManager::postAssignComponent(TrexService::Component&, NameServer::ServiceStartInfo&)+0x113 at TrexService/ComponentManager.cpp:447 (hdbnameserver)
       5: 0x000055cee939426a in TRexAPI::TREXIndexServer::postAssign(NameServer::ServiceStartInfo&)+0x119 at TREXIndexServer2/TREXIndexServer.cpp:2042 (hdbnameserver)

  • In daemon server trace, following error can be seen.

    [11914]{-1}[-1/-1] 2026-01-13 08:29:46.182770 w Daemon           NetworkListener.cpp(00614) : Failed to resolve "localhost"
    [11914]{-1}[-1/-1] 2026-01-13 08:29:46.182773 i Daemon           NetworkListener.cpp(00619) : Local hostname is 'abcdefg'
    [11914]{-1}[-1/-1] 2026-01-13 08:29:46.182775 i Daemon           NetworkListener.cpp(00629) : Hostname "abcdefg" resolves to '1X.1XX.1XX.XX'
    [11914]{-1}[-1/-1] 2026-01-13 08:29:46.182780 i Daemon           NetworkListener.cpp(00665) : Full resolution of abcdefg:
    ...
    [11914]{-1}[-1/-1] 2026-01-13 08:29:46.182881 i Daemon           NetworkListener.cpp(00689) : Default IPv4 interface: eth0 1X.1XX.1XX.XX ipv4 up broadcast running multicast
    [11914]{-1}[-1/-1] 2026-01-13 08:29:46.183680 w commlib          commlibInst.cpp(00456) : exception  1: no.2112401  (Basis/HanaNet/LSL/impl/Result.cpp:33) TID: 11914
        Failed to find an IPv4 address for hostname localhost.
    exception throw location:
       0: 0x00007f3df62066e1 in HanaNet::LSL::Result::get() const [clone .cold]+0x172 at Basis/HanaNet/Base/impl/RuntimeError.cpp:172 (libhdbbasis.so)
       1: 0x00007f3df2668c47 in comm::resolve_name(char const*, char*, unsigned long)+0x166 at commlib/Impl/commlibInst.cpp:448 (libhdbnetrpc.so)
       2: 0x00007f3df877d912 in TrexDaemon::NetworkManager::listen(ltt::basic_string<char, ltt::char_traits<char>, 39ul> const&, unsigned short)+0x831 at TrexDaemon/impl/NetworkListener.cpp:747 (libhdbservice.so)
       3: 0x00007f3df87560b7 in TrexDaemon::Daemon::handleReconfigure()+0xcf6 at TrexDaemon/impl/DaemonReconfigure.cpp:360 (libhdbservice.so)
       4: 0x00007f3df8763647 in TrexDaemon::Daemon::loop()+0x6d6 at TrexDaemon/impl/DaemonLoop.cpp:271 (libhdbservice.so)
       5: 0x00007f3df8776e99 in daemonMainImpl(int, char**)+0x19d8 at TrexDaemon/impl/MainImpl.cpp:943 (libhdbservice.so)


"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 1.0
  • SAP HANA, platform edition 2.0

Product

SAP HANA 1.0, platform edition ; SAP HANA, platform edition 2.0

Keywords

name or service not known, localhost, ipv4, /etc/hosts, failed to find an IPv4 address for hostname localhost, failed to resolve , KBA , HAN-DB , SAP HANA Database , 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.