h2 - WSO2 analytics : database already in use -


when try start wso2 analytics (~/wso2am-analytics-2.0.0/bin/wso2server.sh start) doesnt work , "database in use" in logs.

after investigations, i've found there other instance of wso2 analytics running.

it's not supposed possible since when "~/wso2am-analytics-2.0.0/bin/wso2server.sh start" , and instance in running, should "process running" after comparing process running pid written in wso2carbon.pid.

the problem if use wso2server.sh unknown or mistyped arg, still starts skipping pid test :

  if [ -e "$carbon_home/wso2carbon.pid" ];     if  ps -p $pid > /dev/null ;       echo "process running"       exit 0     fi   fi 

to correct this, i've added @ end of $cmd tests :

else   echo "command $c unknown"   exit 1 fi 

edit : have doesn't work.

  1. it prevents "./wso2server.sh start" start server, unknown reason (it doesn't echo anything, doesnt start , exit 1).
  2. it prevents options passed "-dsetup" necessary when u need recreate h2 demo database.

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -