Dear guys, installing and checking the EPICS archiver appliance I have the following problem.
The mgmt container (the first that I launch) is launched correctly, and it permits me to add PVs and are registered correctly both in the webbrowser as in the mySQL data base, but the following containers does not execute because all of them report in the log file the same error:
Caused by: com.hazelcast.core.HazelcastException: Port [17670] is already in use and auto-increment is disabled. Hazelcast cannot start
function startTomcatAtLocation() {
if [ -z "$1" ]; then echo "startTomcatAtLocation called without any arguments"; exit 1; fi
export CATALINA_HOME=$TOMCAT_HOME
export CATALINA_BASE=$1
echo "Starting tomcat at location ${CATALINA_BASE}"
ARCH=`uname -m`
if [[ $ARCH == 'x86_64' || $ARCH == 'amd64' ]]
then
echo "Using 64 bit versions of libraries"
### export LD_LIBRARY_PATH=${CATALINA_BASE}/webapps/engine/WEB-INF/lib/native/linux-x86_64:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${CATALINA_BASE}/webapps/engine/WEB-INF/lib/native/linux-x86_64:/home/max/EPICS/base/lib/linux-x86_64:${LD_LIBRARY_PATH}
else
echo "Using 32 bit versions of libraries"
export LD_LIBRARY_PATH=${CATALINA_BASE}/webapps/engine/WEB-INF/lib/native/linux-x86:${LD_LIBRARY_PATH}
fi
pushd ${CATALINA_BASE}/logs
${CATALINA_HOME}/bin/jsvc \
-server \
-cp ${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar:/home/max/scratch/mgmt/webapps/WEB-INF/lib/log4j-1.2.17.jar \
${JAVA_OPTS} \
-Dcatalina.base=${CATALINA_BASE} \
-Dcatalina.home=${CATALINA_HOME} \
-cwd ${CATALINA_BASE}/logs \
-outfile ${CATALINA_BASE}/logs/catalina.out \
-errfile ${CATALINA_BASE}/logs/catalina.err \
-pidfile ${CATALINA_BASE}/pid \
org.apache.catalina.startup.Bootstrap run
popd
}
function start() {
startTomcatAtLocation ${ARCHAPPL_DEPLOY_DIR}/mgmt
sleep 20s
startTomcatAtLocation ${ARCHAPPL_DEPLOY_DIR}/engine
sleep 20s
startTomcatAtLocation ${ARCHAPPL_DEPLOY_DIR}/etl
sleep 20s
startTomcatAtLocation ${ARCHAPPL_DEPLOY_DIR}/retrieval
}