cancel
Showing results for 
Search instead for 
Did you mean: 

Installing HDB Server : hdbnsutil permission denied error

Former Member
0 Kudos

Hi All,

I've started deploying HANA and I'm new to this area.

On trying to install HANA database server, I'm getting the hdbnsutil permission denied error. Given below is the error details from the install.glf file.

#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#ERR: Installation failed|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#ERR: error installing|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#ERR: Cannot create Instance|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#ERR: Cannot create instance|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#ERR: Cannot create initial topology|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#ERR: hdbnsutil call failed|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#INFO: Starting external program /usr/sap/JIS/HDB27/exe/hdbnsutil|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#INFO: Command line is: /usr/sap/JIS/HDB27/exe/hdbnsutil -initTopology|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#INFO: Output line 1: /usr/sap/JIS/HDB27/exe/hdbnsutil: Permission denied|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.services.shell.util.ForwardingBuffer#main#INFO: Program terminated with exit code 255|

2012 02 17 11:00:51#+0530#DEBUG#com.sap.lm.decl.shell.executor.DeltaCommandBeanExecutor#main#Return code after fix command execution: 1|

2012 02 17 11:00:51#+0530#ERROR#com.sap.lm.decl.batch.BatchModelController#main#Finished with status ERROR. Message is: Could not finish execution.|

2012 02 17 11:00:51#+0530#DEBUG#com.sap.core.js.logging.bridge.LoggingServiceTracker#main#Inside LoggingServiceTracker.removedService com.sap.core.log.providers_0.8.8 [2]|

2012 02 17 11:00:51#+0530#TRACE#com.sap.core.js.logging.mbeans.MBeanManager#main#unregisterMBean : objectName [com.sap.js:name=Logging,type=Logging].|

Permissions for hdbnsutil

ls -al /usr/sap/JIS/HDB27/exe/hdbnsutil

-r-xr-xr-x 1 jisadm sapsys 6114796 2011-11-07 16:54 /usr/sap/JIS/HDB27/exe/hdbnsutil

Please suggest.

Thanks and Regards,

Sudhansu

Edited by: Sudhansu Sekhar on Feb 17, 2012 7:13 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sudhansu,

The permissions on the file look fine.Are you using unified installer for installation? If not, which Revision are you trying to install?

Is the hardware you are using supported for HANA?

Sorry, for many question, but the error mentioned does not help much in finding the root cause.

Regards, Rahul

Former Member
0 Kudos

Hi Rahul,

Thank you for your quick response.

Are you using unified installer for installation? If not, which Revision are you trying to install?

  • I'm using the Unified Installer for the deployment.

Is the hardware you are using supported for HANA?

  • No. This is a test system and started the deployment on a old server Dell 2970 to understand the deployment procedure and the software better.

Do we need to have the same configuration(server model, procs, memory etc.) published in PAM to get the system running ?

Thanks and Regards,

Sudhansu

Former Member
0 Kudos

Hi Sudhansu,

Yes, the hardware should be as per the PAM. I believe this could be the reason for the error you are facing(although the error is not explicit).

Regards, Rahul

Former Member
0 Kudos

Ok, Rahul. Let me try out on a supported server.

Really appreciate your quick reply

Thanks and Regards,

Sudhansu.

Former Member
0 Kudos

Hi,

The issue was resolved after re-installing the software on a supported h/w config.

Thanks again for your support.

Thanks and Regards,

Sudhansu

Former Member
0 Kudos

Hello,

Can you please let me know what is the system/server  configuration is required to install hana. Is there any one installed hana.I am interested to learn this installation of hana.

Thank you

Former Member
0 Kudos

Hi,

you can get it to run on standard hardware when you change

.../DATA_UNITS/HDB_SERVER_LINUX_X86_64/server/HanaHwCheck.py

replace last line

exit(DBHwCheck().main(config)) 

with

DBHwCheck().main(config)
exit(0) 

if you have less than 24GB Memory hdbinst has to be called with --ignore=check_min_mem

cu 😉

       me

ChristophFritz
Explorer
0 Kudos

Hi Andreas,

any idea how to pass this parameter to the "hdbinst" which is called from DATA_UNITS/HANA_IM_LINUX__X86_64/setup.sh script?

I had to modify the phyton script to make setup.sh running and then called hdbinst manually with --ignore=check_min_mem after the setup.sh script aborted with the "less memory error"

Best Regards

Christoph

Former Member
0 Kudos

Hi Christoph,

you have to replace the --read_password_from_stdin=xml parameter

/i/51046016/DATA_UNITS/HDB_SERVER_LINUX_X86_64/hdbinst -b -s H16 -n 16 -H penguin16  --datapath=/hana/shared/data --logpath=/hana/shared/log --sapmnt=/hana/shared --password=Penguin7 --system_user_password=Penguin7 --ignore=check_min_mem

cu 😉

        me

Former Member
0 Kudos

Hi, I am getting the same memory check problem on a VM. The solution above looks like the correct one for the error I am getting in the install log, but I cant work out which script to edit to do the following

you have to replace the --read_password_from_stdin=xml parameter

/i/51046016/DATA_UNITS/HDB_SERVER_LINUX_X86_64/hdbinst -b -s H16 -n 16 -H penguin16  --datapath=/hana/shared/data --logpath=/hana/shared/log --sapmnt=/hana/shared --password=Penguin7 --system_user_password=Penguin7 --ignore=check_min_mem

Former Member
0 Kudos

Hi Michael,
depending on which VM solution you are using, you got several problemes. the most importent on is the CMPXCHG16B support.
without it your hana db will not run. you have to activate it in your VM.
check with: grep cx16 /proc/cpuinfo
if your VM cpu is not supportet (usually it's not), you need to adjust a parameter in /i/51046016/DATA_UNITS/HDB_SERVER_LINUX_X86_64/server/HanaHwCheck.py
replace: self.HWInfo['CPU Sockets']=len(lines)-1       
with   : self.HWInfo['CPU Sockets']=<number of cores you want for HANA>
otherwise you get an Division by 0 error during the installation
a lot of erros you get for not supported hardware you can ignore with setting
export IDSPISPOPD=1
before you start the installation
now to your problem. when it aborts with the not enough memory error you have to continue manually.
if you don't want to provide the passwords on the commandline you can also continue interactivly with:
/i/51046016/DATA_UNITS/HDB_SERVER_LINUX_X86_64/hdbinst -s <SID> -n 16 -H penguin16  --datapath=/hana/shared/data --logpath=/hana/shared/log --sapmnt=/hana/shared --ignore=check_min_mem
after that was run successfully you still need to install the rest
mkdir /hanamnt/shared/<SID>/hdbstudio_update
export TEMP=/usr/sap/<SID>/setup/logs_20130629132131
/i/51046016/DATA_UNITS/HDB_STUDIO_LINUX_X86_64/hdbinst -a studio    --copy_repository=/hanamnt/shared/<SID>/hdbstudio_update
/i/51046016/DATA_UNITS/HDB_STUDIO_LINUX_X86_64/hdbinst -a studio    --batch --path=/hanamnt/shared/<SID>/hdbstudio --vm=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/bin/java
/i/51046016/DATA_UNITS/HDB_CLIENT_LINUX_X86_64/hdbinst -b -a client --path /hanamnt/shared/<SID>/hdbclient
rsync -avz --progress /i/51046016/DATA_UNITS/HANA_IM_LINUX__X86_64/LM_STRUCTURE_CONTENT/ /hanamnt/shared/<SID>/lm_structure/
cd /hanamnt/shared/<SID>/lm_structure
mv currentStack.template currentStack.properties
mv landscapeVariables.template landscapeVariables.properties
chown -R <sid>adm.sapsys /hanamnt/shared/<SID>/lm_structure
in currentStack.properties and landscapeVariables.properties replace all $(...) entries with your values
as <sid>adm you can now start yur database with: HDB start
cu 😉
       me

Former Member
0 Kudos

Thanks for your help which has moved me along somewhat. However I am now hitting a problem in the hdbinstall script "Importing Delivery Units". It looks as if at some point a part of the installation should have been tar'd, and is expected at this section, but is not present. I have checked through the install logs but cant find where this should have happened.

The tar file highlighted is not in the location it is expected

6:36:58.434 - INFO:   ---------------------------------------------------------

16:36:58.434 - INFO:   Importing delivery units...

16:36:58.434 - INFO:   ---------------------------------------------------------

16:36:58.511 - INFO:     Importing delivery unit /hana/shared/BAR/global/hdb/auto_content/SAPUI5_1.tgz (SAPUI5_1 1.8.7)

16:36:58.512 - INFO:     Starting external program /usr/sap/BAR/HDB44/exe/regi

16:36:58.514 - INFO:       Command line is: /usr/sap/BAR/HDB44/exe/regi --verbose --workspace=empty --host=saphana:34415 --user=SYSTEM --readFromStdIn import /hana/shared/BAR/global/hdb/auto_content/SAPUI5_1.tgz

16:36:59.615 - INFO:       Output line 1: Password:

16:37:53.284 - INFO:       Output line 2: Failed to import delivery unit file "/hana/shared/BAR/global/hdb/auto_content/SAPUI5_1.tgz" (40142): Repository: import failed;problem unpacking tarfile: /usr/sap/BAR/HDB44/backup/20130710-163735931/20130710-163735931_temp.TGZ to folder:/usr/sap/BAR/HDB44/backup/REPO_20130710-163736418_EXTRACTED, running python code: >>>>import tarfile

16:37:53.285 - INFO:       Output line 3: tar = tarfile.open(r"/usr/sap/BAR/HDB44/backup/20130710-163735931/20130710-163735931_temp.TGZ")

16:37:53.285 - INFO:       Output line 4: tar.extractall(path=r"/usr/sap/BAR/HDB44/backup/REPO_20130710-163736418_EXTRACTED")

Former Member
0 Kudos

Hi Michael,

i don't know enough about your specific configuration to help you with this problem.

but i opened a new thread with a installation description that's working for me.

hopefully i got all the steps you need to be succesfull.

http://scn.sap.com/thread/3390585

cu 😉

       me