EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: EPICS Archiver appliance, only the first container is launched correctly
From: Max Power <[email protected]>
To: [email protected]
Date: Thu, 24 Nov 2016 08:06:59 +0100
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

I understand waht it means, but I follow the configuration explained in the https://slacmshankar.github.io/epicsarchiver_docs/installguide.html

my appliance configuration is:

<appliances>
   <appliance>
     <identity>appliance0</identity>
     <cluster_inetport>localhost:17670</cluster_inetport>
     <mgmt_url>http://localhost:17665/mgmt/bpl</mgmt_url>
     <engine_url>http://localhost:17666/engine/bpl</engine_url>
     <etl_url>http://localhost:17667/etl/bpl</etl_url>
     <retrieval_url>http://localhost:17668/retrieval/bpl</retrieval_url>
     <data_retrieval_url>http://localhost/retrieval</data_retrieval_url>
   </appliance>
 </appliances>

the way in which I launch the cluster is:

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
}

any idea?

Thank you in advance

Replies:
Re: EPICS Archiver appliance, only the first container is launched correctly Jeong Han Lee

Navigate by Date:
Prev: Re: Linking a HIGH and LOW field to a PV Bo Jakobsen
Next: EPICS on RTEMS: nfsmount problem "भावना नितिन मेढ़"
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Control system remote access Wesley Moore
Next: Re: EPICS Archiver appliance, only the first container is launched correctly Jeong Han Lee
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 24 Nov 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·