Skip to Content

HANA server installation 401 unauthorization issue

Hi Expert

Today I want to install hana server on one of my server station, I downloaded the latest installation files from our production server and transfer the install files to Suse station. The folder structure like this:

Everything goes smoothly until the last step to start instance.

Does anyone know how to get rid of this error?

I've attached full installation log file.

OS Distribution : SUSE Linux Enterprise Server 11 SP1

HANA: Version is 1.00.37 Build 0368807-1410

It look like to me that the HANA system was created successfully, however, due the SAP authentication mechanism (for security sake). It requires client authentication for executing critical function like "Start" or "Stop". By default http basic authentication with OS <sid>adm user and password can be used, For local connections a so called "trusted connect" can be used via the "sapcontrol" command line tool

Starting instance using: /usr/sap/AI2/SYS/exe/hdb/sapcontrol -prot NI_HTTP -nr 00 -function StartWait 2700 2

Allow me explain a little bit further.

sapcontrol : command line

-prot option   is the protocol

                   NI_HTTP     HTTP  using SAP NI sockets (default, prefer Unix domain sockets)

-nr option, instance number

-function option, StartWait is the function name with two parameters timeout second and delay second

And more important, after reading some related documentations regarding to sapcontrol command, it using SOAP http authentication, why the heck it need SOAP? And again, which server host the wsdl that will validate my OS user and password? I'm lost here.

Well, if you execute the following command, it became to another case.

sapcontrol -nr 00 -function StopService -user <sid>adm Password


13.10.2012 03:15:55


FAIL: Invalid Credentials

I'm pretty sure about my OS name and password. It just refused work. Day past but the problem haven't get solved. Someone please help, I'm really appreciate.


Ethan (4.2 kB)
errors.PNG (67.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 23, 2012 at 07:47 AM

    The hana box was successfully installed via ./hdbsetup. It doesn't work via ./hdbinst -a server.

    Thanks for your help.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2012 at 02:39 PM

    Hi Ethan,

    The issue you had is because SAP Host agent process couldn't be started.

    There is probably a previous installation of SAP before that created the UDS file: /tmp/.sapstream50013

    You may want to check which <sid>adm user owns this file, and then follow the solution on the following link:

    1. Log on with the <sid>adm user
    2. Shutdown the instance agent by executing the following command:
      sapcontrol -nr <NR> -function StopService -user <sid>adm<password>
    3. Change to the root user and remove the UDS file. The file is located in the /tmp directory and the file name convention is ".sapstream5<NR>13"
    4. Change back to the <sid>adm user and start the instance agent for example, with the following command:
      sapcontrol -nr <NR> -function StartService <SID>



    Add comment
    10|10000 characters needed characters exceeded