Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA doesn't auto start when instance is started

$
0
0

Hello all,

We're running SPS11 on a r3.2xlarge EC2 instance on AWS. The instance runs during working hours, so it needs to be started every morning.

But when we start the instance HANA doesn't start automatically, often we have to manually do a HDB stop & HDB start to get it working, even though the Autostart parameter in SYS/profile/HDB_HDB00_hdbhost file is set to 1. What could be the cause of this? I'm including some logs below:

 

 

/usr/sap/HDB/SYS/profile/HDB_HDB00_hdbhost file:

 

SAP_RETRIEVAL_PATH = $(DIR_INSTANCE)/$(SAPLOCALHOST)

DIR_HOME = $(SAP_RETRIEVAL_PATH)/trace

DIR_PERF = $(SAP_RETRIEVAL_PATH)/trace

DIR_LOGGING = $(SAP_RETRIEVAL_PATH)/log

SECUDIR = $(SAP_RETRIEVAL_PATH)/sec

Autostart = 1

SETENV_00 = PATH=$(DIR_INSTANCE)/exe:%(PATH)

SETENV_01 = SAP_RETRIEVAL_PATH=$(SAP_RETRIEVAL_PATH)

SETENV_02 = PYTHONPATH=$(SAP_RETRIEVAL_PATH):$(DIR_EXECUTABLE):$(DIR_INSTALL)/global/hdb/custom/python_support:$(DIR_EXECUTABLE)/python_support

SAPSYSTEMNAME = HDB

SAPLOCALHOST = hdbhost

SAPSYSTEM = 00

INSTANCE_NAME = HDB00

DIR_CT_RUN = $(DIR_EXE_ROOT)/linuxx86_64/hdb

DIR_EXECUTABLE = $(DIR_INSTANCE)/exe

DIR_PROFILE = $(DIR_INSTALL)/profile

ccms/enable_agent = 0

service/status_procs = hdbdaemon

service/protectedwebmethods = SDEFAULT

service/init_system_pki = ON

_PF = $(DIR_PROFILE)/HDB_HDB00_hdbhost

SETENV_03 = DIR_LIBRARY=$(DIR_LIBRARY)

SETENV_04 = LD_LIBRARY_PATH=$(DIR_LIBRARY):%(LD_LIBRARY_PATH)

SETENV_05 = SHLIB_PATH=$(DIR_LIBRARY):%(SHLIB_PATH)

SETENV_06 = LIBPATH=$(DIR_LIBRARY):%(LIBPATH)

#-----------------------------------------------------------------------

# Run hdbupdconf

#-----------------------------------------------------------------------

HDBUPDCONF = $(DIR_INSTALL)/global/hdb/install/bin/hdbupdconf$(FT_EXE)

Execute_00 = immediate $(HDBUPDCONF)

#-----------------------------------------------------------------------

# Copy SAP Executables

#-----------------------------------------------------------------------

#-----------------------------------------------------------------------

# Update HDB Configuration

#-----------------------------------------------------------------------

_PY = $(DIR_HOME)/py.sap$(SAPSYSTEMNAME)_$(INSTANCE_NAME)

Execute_01 = immediate rm -f $(_PY)

Execute_02 = immediate ln -s -f $(DIR_EXECUTABLE)/Python/bin/python$(FT_EXE) $(_PY)

#-----------------------------------------------------------------------

# Start SAP HDB

#-----------------------------------------------------------------------

_HDB = $(DIR_HOME)/hdb.sap$(SAPSYSTEMNAME)_$(INSTANCE_NAME)

 

 

usr/sap/HDB/HDB00/hdbhost/daemon.ini file:


 

[xsengine]

instances = 1

 

[webdispatcher]

instances = 1

 

[streamingserver]

instances = 1

 

 

 

When I look at the sapstart.log file I can see that the process is started but then terminated:

 

/usr/sap/HDB/HDB00/hdbhost/trace/sapstart.log file:

 

Starting Programs

-----------------

(2339) Starting: local /usr/sap/HDB/HDB00/hdbhost/trace/hdb.sapHDB_HDB00 -d -nw -f /usr/sap/HDB/HDB00/hdbhost/daemon.ini pf=/usr/sap/HDB/SYS/profile/HDB_HDB00_hdbhost

(2339) New Child Process created.

(2339) Starting local Command:

Command:  /usr/sap/HDB/HDB00/hdbhost/trace/hdb.sapHDB_HDB00

           -d

           -nw

           -f

           /usr/sap/HDB/HDB00/hdbhost/daemon.ini

           pf=/usr/sap/HDB/SYS/profile/HDB_HDB00_hdbhost

(2331) Waiting for Child Processes to terminate.

(2331) **** 2016/03/17 07:01:43 Child 2339 terminated with Status 0 . ****

(2339) **** 2016/03/17 07:01:43 No RestartProgram command for program 2  ****

(2331) **** No more Child Processes to wait for.

(2331) Parent Shutdown at 2016/03/17 07:01:43

 

 

Execute Post-Shutdown Commands

------------------------------

(2331) Exiting with Return-Code 3. (No more child processes)

 

 

And when I look at the details of this error in stderr2 file I see this:

 

/usr/sap/HDB/HDB00/hdbhost/trace/stderr2 file:

 

(3123) New Child Process created.

(3123) Starting local Command:

Command:  /usr/sap/HDB/HDB00/hdbhost/trace/hdb.sapHDB_HDB00

           -d

           -nw

           -f

           /usr/sap/HDB/HDB00/hdbhost/daemon.ini

           pf=/usr/sap/HDB/SYS/profile/HDB_HDB00_hdbhost

Environment variable IQDIR16 must be set before using HDB configured with Extended Storage Server

Environment variable SQLANY17 must be set before using HDB configured with Remote Data Sync server

Environment variable XSPATH must be set before using HDB configured with XS

 

 

I couldn't figure out what goes wrong while HANA is autostarted, but I can still start it without a problem with "HDB start" command manually.

Any help is appreciated!


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>