cancel
Showing results for 
Search instead for 
Did you mean: 

"How to restart HANA install" and how to fix "Keypair for SUM4HANA could not be generated".

shashisingh
Participant
0 Kudos

Hi,

I have started HANA installation with the following command

./setup.sh -d /51045150 /tmp/hanainstdir /tmp/hana.slmodel. It failed with the bellow error :


"Keypair for SUM4HANA could not be generated."

Log:

2013 07 21 03:45:14#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Copying Buffer to '/tmp/ccmd1374358514996.sh'|

2013 07 21 03:45:14#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executing command 'chmod +x /tmp/ccmd1374358514996.sh'|

2013 07 21 03:45:14#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executed command with return code 0|

2013 07 21 03:45:14#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executing command '/tmp/ccmd1374358514996.sh'|

2013 07 21 03:45:15#+0530#DEBUG#com.sap.lm.services.shell.util.ForwardingBuffer#main#stdout:CreateCertificate.sh: Generating keypair for SUM4HANA...|

2013 07 21 03:45:15#+0530#DEBUG#com.sap.lm.services.shell.util.ForwardingBuffer#main#stdout:CreateCertificate.sh: Keypair for SUM4HANA could not be generated.|

2013 07 21 03:45:16#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executed command with return code 127|

2013 07 21 03:45:16#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executing command 'rm -f /tmp/ccmd1374358514996.sh'|

2013 07 21 03:45:16#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executed command with return code 0|

2013 07 21 03:45:16#+0530#DEBUG#com.sap.lm.decl.execution.executor.DeltaCommandBeanExecutor#main#Return code after fix command execution: 127|

2013 07 21 03:45:16#+0530#WARN#com.sap.lm.decl.execution.executor.ActivityExecutor#main#No event handler has answered the request how to proceed after a repeatable action failed therefore apply EXIT|

2013 07 21 03:45:16#+0530#INFO#com.sap.lm.decl.eventing.batch.handlers.CommandlineProgressHandler#EventAdmin Async Event Dispatcher Thread#ERROR|

2013 07 21 03:45:17#+0530#ERROR#com.sap.lm.decl.batch.AbstractBatchModelController#main#Execution failed|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.decl.os.PasswordAuthenticationBase#main#Trying to authenticate at shell password based...|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.decl.os.PasswordAuthenticationBase#main#Trying to authenticate at shell password based...|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.decl.isdk.logcollector.impl.LogCollectorServiceImpl#main#Creating directory on remote host localhost to copy log files to: /usr/sap/PRD/setup/logs_20130721034517|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executing command 'ver'|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.util.ForwardingBuffer#main#stderr:/bin/sh: ver: command not found|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executed command with return code 127|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.impl.WrappingShellImpl#main#Wrapping 'test -d /usr/sap/PRD/setup/logs_20130721034517;if [ $? -eq 1 ];then mkdir -p /usr/sap/PRD/setup/logs_20130721034517 && chgrp -R sapsys /usr/sap/PRD/setup && chmod -R 775 /usr/sap/PRD/setup;fi'|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Copying Buffer to '/tmp/ccmd1374358517133.sh'|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executing command 'chmod +x /tmp/ccmd1374358517133.sh'|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executed command with return code 0|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executing command '/tmp/ccmd1374358517133.sh'|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executed command with return code 0|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executing command 'rm -f /tmp/ccmd1374358517133.sh'|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Executed command with return code 0|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.decl.isdk.logcollector.impl.LogCollectorServiceImpl#main#Copying log file /tmp/hanainstdir/log/setup.glf to remote host localhost directory /usr/sap/PRD/setup/logs_20130721034517|

2013 07 21 03:45:17#+0530#DEBUG#com.sap.lm.services.shell.local.impl.LocalShellImpl#main#Copying 'log/setup.glf' to '/usr/sap/PRD/setup/logs_20130721034517/setup.glf'|

hanadb:/usr/s

First question : how to fix Keypair for SUM4HANA could not be generated. issue

2nd question:   How to restart HANA install?

Thanks,

Shashi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shashi,

Have you set the JAVA_HOME and PATH variable?

Regards,

RV

shashisingh
Participant
0 Kudos

Yes i have set the both variable.

Thanks,

Shashi

Former Member
0 Kudos

Can you upload the logs?

Thanks,

RV

Former Member
0 Kudos

you have to generate keypait manually.

keytool -genkeypair -keystore keystore.jks -alias sumforhana_<hostname> -keyalg RSA -dname "CN = hostname" -validity 9999

keytool -exportcert -keystore keystore.jks -alias sumforhana_hostname -file sumforhana.cer

hope this will help you.

Thanks,

RV

Former Member
0 Kudos

you have to generate keypait manually.

keytool -genkeypair -keystore keystore.jks -alias sumforhana_<hostname> -keyalg RSA -dname "CN = hostname" -validity 9999

keytool -exportcert -keystore keystore.jks -alias sumforhana_hostname -file sumforhana.cer

hope this will help you.

Thanks,

RV

Former Member
0 Kudos

Shashi:

I have the same problem ("Keypair for SUM4HANA could not be generated.") in the same version of hana, can you solve the question no.2?.

Thanks,

GL.

shashisingh
Participant
0 Kudos

Hi Gabriel,

Bad news is that Hana db installation can be restarted from where it has thrown error.

We have to clean everything and do a fresh installation.

BR,

Shashi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Two ways two restart HANA.

1. In Studio, right click on the added system and select the restart option.

2. you can execute the following option in linux:

./HDB stop

./HDB start

WR,

PHB

shashisingh
Participant
0 Kudos

Hi BALA,

I need to know how to restart a failed installation of HANA.

Commands which you have given is to start/stop HANA

Thanks,

Shashi

former_member186082
Active Contributor
0 Kudos

Hi Shashi,

This thread says we cannot resume failed installation, got to uninstall and start over again.

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

Regards

Chandu

AtulKumarJain
Active Contributor
0 Kudos

Hi Shashi,

Please open below link

http://help.sap.com/businessobject/product_guides/HAN01SP4/en/hana_sps4_inst_en.pdf

check page no 27 for your first question.

2.How to restart hana installation.

you have to start same commmand which you have given for starting.

BR

Atul

shashisingh
Participant
0 Kudos

Hi Atul,

I have executed the same command.

./setup.sh -d /51045150 /tmp/hanainstdir /tmp/hana.slmodel.

But It failed with the bellow error :

        ... 27 more

Caused by: java.lang.IllegalArgumentException: Error:SAPSID  'PRD' is already in use.

        at com.sap.lm.decl.core.types.StringParameter.setValue(StringParameter.java:213)

Thanks,

Shashi