SAP Knowledge Base Article - Preview

2916244 - HANA does not start due to NFS authorization problems

Symptom

  • After a NFS mount issue on Linux, the Virtual Machine was forcefully shutdown;
  • After the restart, SAP HANA system does not start;
  • In nameserver traces, you can observe messages similar to the following:
    [11822]{110018}[134/-1] 2020-04-16 12:57:07.759655 w FileIO NFSFileAccessor.cpp(00431) : Failed to flush file attribute cache of "/usr/sap/<SID>/HDBXX/<hostname>//daemon.ini.lck": 13 (Permission denied)
    [11822]{110018}[134/-1] 2020-04-16 12:57:07.759668 e lockfile FileLock.cpp(00238) : Cannot determine last modification time of lock file for /usr/sap/<SID>/HDBXX/<hostname>//daemon.ini 13 (Permission denied)
    [11822]{110018}[134/-1] 2020-04-16 12:57:07.759701 e FileIO NFSFileAccessor.cpp(00315) : Could not create file "/usr/sap/<SID>/HDBXX/<hostname>//daemon.ini.lck": 13 (Permission denied)
    [11822]{110018}[134/-1] 2020-04-16 12:57:07.759802 e lockfile FileLock.cpp(00198) : Exception while trying to get lock for /usr/sap/<SID>/HDBXX/<hostname>//daemon.ini exception 1: no.2000001 (ConfigMgr/NetworkFile.cpp:163)
    Generic file error; $[1]$=write new file with permissions $accessrights$ failed with os error: $sysrc$ ($sysmsg$); $accessrights$=rwxrwxrwx; $sysrc$=13; $sysmsg$=Permission denied
    [11822]{110018}[134/-1] 2020-04-16 12:57:07.759827 e Configuration Configuration.cpp(00294) : ltt::exception in "Configuration::setStringValueAux": exception 1: no.2000001 (ConfigMgr/NetworkFile.cpp:163)
    Generic file error; $[1]$=write new file with permissions $accessrights$ failed with os error: $sysrc$ ($sysmsg$); $accessrights$=rwxrwxrwx; $sysrc$=13; $sysmsg$=Permission denied
    exception throw location:
    1: 0x00007fb10861cfee in config::NetworkFile::writeInternal(ltt::basic_string<char, ltt::char_traits<char>, ltt::integer_constant<64> > const&, int, int, bool) const+0x26a at NetworkFile.cpp:161 (libhdbbasement.so)
    2: 0x00007fb10861d648 in config::NetworkFile::directWrite(ltt::basic_string<char, ltt::char_traits<char>, ltt::integer_constant<64> > const&, int, int) const+0xa4 at NetworkFile.cpp:83 (libhdbbasement.so)
    3: 0x00007fb1086801a4 in config::FileLock::tryLock()+0x210 at FileLock.cpp:274 (libhdbbasement.so)
    4: 0x00007fb10868037c in config::FileLock::lock()+0x68 at FileLock.cpp:140 (libhdbbasement.so)
    5: 0x00007fb108691df2 in config::IniFile::write()+0x40 at IniFile.cpp:554 (libhdbbasement.so)
    6: 0x00007fb108613a36 in config::LayeredIniFile::write()+0x22 at LayeredIniFile.cpp:368 (libhdbbasement.so)
    7: 0x00007fb10868450d in config::Configuration::setStringValueAux(ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, ltt::basic_string<char, ltt::char_traits<char>, ltt::integer_constant<64> > const&)+0x249 at Configuration.cpp:288 (libhdbbasement.so)
    8: 0x00007fb1086847ca in config::Configuration::setStringValue(ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, ltt::basic_string<char, ltt::char_traits<char>, ltt::integer_constant<64> > const&)+0x16 at Configuration.cpp:306 (libhdbbasement.so)
    9: 0x00007fb1283a2ef6 in NameServer::MDCRequestHandler::daemonCreateDatabase(ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, ltt_adp::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<bool, true> > const&, NameServer::ServiceType)+0x2562 at MDCRequestHandler.cpp:1649 (libhdbns.so)
    10: 0x00007fb12827c356 in NameServer::MDCRequestHandler::startDatabaseIntern(NameServer::Response&, NameServer::Request&)+0x1672 at MDCRequestHandler.cpp:501 (libhdbns.so)
    11: 0x00007fb12828186f in NameServer::MDCRequestHandler::startDatabase(NameServer::Response&, NameServer::Request&)+0x1b at MDCRequestHandler.cpp:299 (libhdbns.so)
    12: 0x00007fb12838a2aa in NameServer::TREXNameServer::processRequest(NameServer::Request const&, NameServer::Response&)+0x176 at functional.hpp:3182 (libhdbns.so)
    13: 0x00007fb12837e0e1 in NameServer::TREXNameServer::handle(TrexNet::Request&, TrexService::HandlerContext&)+0x850 at TREXNameServer.cpp:1146 (libhdbns.so)
    14: 0x00007fb129e6041f in TRexAPI::TREXIndexServer::handle(TrexNet::Request&, TrexService::HandlerContext&)+0x2eb at TREXIndexServer.cpp:4231 (hdbnameserver)
    15: 0x00007fb10842f8e5 in TrexService::WorkerThread::run(void*)+0x14f1 at TrexServiceThreads.cpp:615 (libhdbbasement.so)
    16: 0x00007fb10844d912 in TrexThreads::PoolThread::run()+0x710 at PoolThread.cpp:464 (libhdbbasement.so)
    17: 0x00007fb108450316 in TrexThreads::PoolThread::run(void*&)+0x12 at PoolThread.cpp:144 (libhdbbasement.so)
    18: 0x00007fb10573d236 in Execution::Thread::staticMainImp(void**)+0x3f2 at Thread.cpp:540 (libhdbbasis.so)
    19: 0x00007fb10573d996 in Execution::Thread::staticMain(void*)+0x22 at ThreadMain.cpp:31 (libhdbbasis.so)
    20: 0x00007fb10573a629 in Execution::pthreadFunctionWrapper(Execution::PthreadWrapperInfo*)+0x375 at Thread.cpp:1083 (libhdbbasis.so)
    21: 0x00007fb1052150a4 in start_thread+0xc0 (libpthread.so.0)
    22: 0x00007fb103e9c02d in __clone+0x69 (libc.so.6)


Read more...

Environment

  • SAP HANA Platform;
  • Distributed System using NFS;

Product

SAP HANA, platform edition all versions

Keywords

permission denied, rc=13, errno: 13, exception, hdbdaemon, nameserver, indexserver, hdbnameserver, hdbindexserver, hdbdaemon , KBA , HAN-DB-SEC , SAP HANA Security & User Management , Problem

About this page

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

Search for additional results

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