Hi Abdalla,
Thank you for your answer.
I check some more information:
1) I could open localhost:8080, I think the tomcat service was good and i tried the archiver after restart tomcat service, not working.
2) the log file in /mgmt/logs said that "Error
configuring application listener of class [org.epics.archiverappliance.config.ArchServletContextListener]", i put the whold log below and label the error red color.
3) the appliacnces.xml file have not been changed.
-------------------My appliances.xml file ( i did not change it. )-----------------------
<appliances>
<appliance>
<identity>appliance0</identity>
<cluster_inetport>localhost:16670</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:17668/retrieval</data_retrieval_url>
</appliance>
</appliances>
-------------------------------------------End appliances.xml file--------------------------------------------------------
4)
Whether comment line 9 of sampleStartup.sh( "#source /opt/local/setEPICSEnv.sh"), does it right ?
Comment the line, Because I do not have setEPICSEnv.sh and have export them in my ~/.bashrc
-------------------------------------------~/.bashrc---------------------------------------
export EPICS_HOST_ARCH=linux-x86_64
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el8_4.x86_64
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export EPICS_BASE=/home/iasf/base-7.0.6.1
export EPICS_EXTENSIONS=/home/iasf/extensions-master
export EPICS_CA_ADDR_LIST=localhost
export EPICS_CA_AUTO_ADDR_LIST=YES
export EPICS_CA_MAX_ARRAY_BYTES=16384
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/tomcat-native-1.2.23/lib
export LD_LIBRARY_PATH
-------------------------------------------~/.bashrc---------------------------------------
The log file:
--------------------------------catalina.err for start once ------------------------
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name: Apache Tomcat/9.0.54
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Sep 28 2021 13:51:49 UTC
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.54.0
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 4.18.0-305.3.1.el8.x86_64
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el8_4.x86_64/jre
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_312-b07
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Red Hat, Inc.
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /home/iasf/EpicsAA/tomcat_instances/mgmt
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /home/iasf/EpicsAA/tomcat_instances/apache-tomcat-9.0.54
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:MaxPermSize=128M
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:+UseG1GC
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx4G
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xms4G
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -ea
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/home/iasf/EpicsAA/tomcat_instances/mgmt
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/home/iasf/EpicsAA/tomcat_instances/apache-tomcat-9.0.54
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcommons.daemon.process.id=705692
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcommons.daemon.process.parent=705691
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcommons.daemon.version=1.2.4
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: abort
Nov 05, 2021 4:33:52 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: An older version [1.2.23] of the Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of [1.2.30]
Nov 05, 2021 4:33:52 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Loaded Apache Tomcat Native library [1.2.23] using APR version [1.6.3].
Nov 05, 2021 4:33:52 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [false].
Nov 05, 2021 4:33:52 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
Nov 05, 2021 4:33:52 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized [OpenSSL 1.1.1g FIPS 21 Apr 2020]
Nov 05, 2021 4:33:52 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-17665"]
Nov 05, 2021 4:33:52 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [574] milliseconds
Nov 05, 2021 4:33:53 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Nov 05, 2021 4:33:53 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.54]
Nov 05, 2021 4:33:53 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/mgmt.war]
Nov 05, 2021 4:33:55 PM org.apache.tomcat.jdbc.pool.ConnectionPool checkPoolConfiguration
WARNING: maxIdle is larger than maxActive, setting maxIdle to: 10
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally
unnecessary.
Nov 05, 2021 4:33:56 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation
time.
Nov 05, 2021 4:33:56 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class [org.epics.archiverappliance.config.ArchServletContextListener]
java.lang.UnsupportedClassVersionError: org/epics/archiverappliance/config/ArchServletContextListener has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions
up to 52.0 (unable to load class [org.epics.archiverappliance.config.ArchServletContextListener])
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2483)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:870)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1371)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1215)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:538)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:519)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:149)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4691)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)/
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:241)
Nov 05, 2021 4:33:56 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Nov 05, 2021 4:33:56 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Nov 05, 2021 4:33:56 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/mgmt] startup failed due to previous errors
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/mgmt.war] has finished in [3,071] ms
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/ROOT]
Nov 05, 2021 4:33:56 PM org.apache.tomcat.jdbc.pool.ConnectionPool checkPoolConfiguration
WARNING: maxIdle is larger than maxActive, setting maxIdle to: 10
Nov 05, 2021 4:33:56 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation
time.
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/ROOT] has finished in [210] ms
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/docs]
Nov 05, 2021 4:33:56 PM org.apache.tomcat.jdbc.pool.ConnectionPool checkPoolConfiguration
WARNING: maxIdle is larger than maxActive, setting maxIdle to: 10
Nov 05, 2021 4:33:56 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation
time.
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/docs] has finished in [191] ms
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/examples]
Nov 05, 2021 4:33:56 PM org.apache.tomcat.jdbc.pool.ConnectionPool checkPoolConfiguration
WARNING: maxIdle is larger than maxActive, setting maxIdle to: 10
Nov 05, 2021 4:33:56 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation
time.
Nov 05, 2021 4:33:56 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 05, 2021 4:33:56 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 05, 2021 4:33:56 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@73e2862a')
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/examples] has finished in [345] ms
Nov 05, 2021 4:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/host-manager]
Nov 05, 2021 4:33:56 PM org.apache.tomcat.jdbc.pool.ConnectionPool checkPoolConfiguration
WARNING: maxIdle is larger than maxActive, setting maxIdle to: 10
Nov 05, 2021 4:33:57 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation
time.
Nov 05, 2021 4:33:57 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/host-manager] has finished in [150] ms
Nov 05, 2021 4:33:57 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/manager]
Nov 05, 2021 4:33:57 PM org.apache.tomcat.jdbc.pool.ConnectionPool checkPoolConfiguration
WARNING: maxIdle is larger than maxActive, setting maxIdle to: 10
Nov 05, 2021 4:33:57 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation
time.
Nov 05, 2021 4:33:57 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/iasf/EpicsAA/tomcat_instances/mgmt/webapps/manager] has finished in [144] ms
Nov 05, 2021 4:33:57 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-17665"]
Nov 05, 2021 4:33:57 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [4191] milliseconds
-----------------------------end of catalina.err ----------------------
At 2021-11-04 18:30:26, "Abdalla Ahmad" <Abdalla.Ahmad at sesame.org.jo> wrote:
Forgot to add tech-talk.
From: Abdalla Ahmad
Sent: Thursday, November 4, 2021 12:35 PM
To: 网易邮件中心 <l123173 at 163.com>
Subject: RE: archiver appliance start failed
Hi Liang
As long as the sampleStartup.sh script showed no errors the archiver appliance should be running. Can you please show the contents of appliances.xml file?
Could be the IP addresses of the instances defined as “localhost” instead of your PC’s IP address.
Best Regards,
Abdalla.
From: Tech-talk [mailto:tech-talk-bounces at aps.anl.gov]
On Behalf Of ?????? via Tech-talk
Sent: Thursday, November 4, 2021 10:24 AM
To: tech-talk <tech-talk at aps.anl.gov>
Subject: archiver appliance start failed
the installation was good, but when I did: ./sampleStartup.sh start.
Software: Centos 8(64), Apache Tomcat/9.0.54, jdk 1.8.0_312
1)----------First -----------------
[iasf@localhost tomcat_instances]$ ./sampleStartup.sh start
./sampleStartup.sh: line 9: /opt/local/setEPICSEnv.sh: No such file or directory
---------------------------
Then I uncomment the line, since (1) I could not found "setEPICSEnv.sh" file. (2)I have already set EPICS_CA_ADDR_LIST=localhost, EPICS_CA_AUTO_ADDR_LIST=YES,
EPICS_CA_MAX_ARRAY_BYTES=16384, JAVA_HOME, JRE_HOME,EPICS_HOST_ARCH=linux-x86_64,EPICS_BASE in my own environment.
I do not know whether it was right.
[iasf@localhost tomcat_instances]$ ./sampleStartup.sh start
Starting tomcat at location /home/iasf/EpicsAA/tomcat_instances/mgmt
Using 64 bit versions of libraries
~/EpicsAA/tomcat_instances/mgmt/logs ~/EpicsAA/tomcat_instances
~/EpicsAA/tomcat_instances
Starting tomcat at location /home/iasf/EpicsAA/tomcat_instances/engine
Using 64 bit versions of libraries
~/EpicsAA/tomcat_instances/engine/logs ~/EpicsAA/tomcat_instances
~/EpicsAA/tomcat_instances
Starting tomcat at location /home/iasf/EpicsAA/tomcat_instances/etl
Using 64 bit versions of libraries
~/EpicsAA/tomcat_instances/etl/logs ~/EpicsAA/tomcat_instances
~/EpicsAA/tomcat_instances
Starting tomcat at location /home/iasf/EpicsAA/tomcat_instances/retrieval
Using 64 bit versions of libraries
~/EpicsAA/tomcat_instances/retrieval/logs ~/EpicsAA/tomcat_instances
~/EpicsAA/tomcat_instances
I check the firewall, it was stop.
What should I do it? why it did not start.