Skip to Content

hdbnameserver error loading shared libraries libhdbpythonbase.so

Hi,

I have installed HANA Database version 2.00.020.00.1500920972 (server component only in single DB environment) on SLES 12. I am unable to connect via HANA Studio as I get an incorrect password message for 'SYSTEM' user id. Now, I am following the instructions from " SAP HANA Administration Guide" to reset this user's password but when I execute the "hananameserver" command I get the error:

./hdbnameserver: error while loading shared libraries: libhdbpythonbase.so: cannot open shared object file: No such file or directory

I can see that the file "libhdbpythonbase.so" is available under "/hana/shared/HDB/exe/linuxx86_64/HDB_2.00/HDB_2.00.020.00.1500920972_7f63b0aa11dca2ea54d450aa302319302c2eeaca/" but not in PATH:

ls -l HDB/exe/linuxx86_64/HDB_2.00.020.00.1500920972_7f63b0aa11dca2ea54d450aa302319302c2eeaca/libhdbpythonbase.so
-r-xr-xr-x 1 hdbadm sapsys 8335888 Jul 24 15:11 HDB/exe/linuxx86_64/HDB_2.00.020.00.1500920972_7f63b0aa11dca2ea54d450aa302319302c2eeaca/libhdbpythonbase.so

So, I even added the path manually:

hdbadm > echo $PATH
/home/ec2-user/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/mit/bin
hdbadm > export PATH=/usr/sap/HDB/HDB02/exe:$PATH
hdbadm > echo $PATH
/usr/sap/HDB/HDB02/exe:/home/ec2-user/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/mit/bin

But even after this, I get the same error.

Below is the list of my commands execution for your reference:

SESSION 01
------------
# su hdbadm
Password:
hdbadm > /usr/sap/HDB/HDB02/exe/sapcontrol -nr 02 -function StopSystem HDB

SESSION 02
------------
# su hdbadm
Password: 
hdbadm > /usr/sap/HDB/HDB02/hdbenv.sh
hdbadm > /usr/sap/HDB/HDB02/exe/hdbnameserver
./hdbnameserver: error while loading shared libraries: libhdbpythonbase.so: cannot open shared object file: No such file or directory

Can you please advise how I can resolve this? I checked other questions on this same topic but none of them helped.

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 16, 2017 at 01:08 PM

    Do you have any values in the environment variable LD_LIBRARY_PATH? If not, please try to point to the directory with the missing files.

    Also, you can execute the command ldd to check what underlying libraries are failing.

    ldd libhdbpythonbase.so
    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      yes, the issue with CommonCryptoLib also concerned me and this is why I asked you to check the ssl parameter in global.ini file. You could also check the existance of environment variable SECUDIR, which should point to the CommonCryptoLib library. It should be installed automatically together with HANA, so I don't think you have missed any step from the installation.

      I'm also suprised that your HANA instance is starting and working without a problem. It looks like you encounter the issue only when trying to reset the password. Maybe it would be worth checking again if you can see the hdbindexserver process running in the background.

      In the log I can see the line saying there was unclean shutdown of the instance. Did you by any chance try to run the hdbnameserver more than once? I just thought that it might work during the second execution? But it's more guessing now.

      And finally I would like to answer your question. Yes, HANA can work as standalone component and it doesn't require Studio or XS to work.