Klaros 3.8.3 - Tomcat / Klaros shut down randomly

Jerome Sheed, modified 10 Years ago.

Klaros 3.8.3 - Tomcat / Klaros shut down randomly

Youngling Posts: 4 Join Date: 10/29/13 Recent Posts
Hi,

I've installed Klaros 3.8.3 on Ubuntu 12.04 and set it to use a MySQL DB.

All is fine and Klaros is set to startup automatically at every boot.

HOWEVER once left for some time it becomes unaccessible, via both its login page and Tomcat's URL on localhost:18080

Any ideas on how I could troubleshoot and which specific logs to look at?

I've taken a look at the logs folder in the Klaros folder and I don't see anything specific.

I installed like this:

http://jerome.co.za/klaros-testmanagement-software-an-installation-guide-ubuntu-12-04-lts/

Thanks,
Jerome
Jerome Sheed, modified 10 Years ago.

RE: Klaros 3.8.3 - Tomcat / Klaros shut down randomly

Youngling Posts: 4 Join Date: 10/29/13 Recent Posts
-----------------------------------------------------------------------
root@klaros:/opt/klaros/logs# cat catalina.2013-10-29.log
-----------------------------------------------------------------------
Oct 29, 2013 9:19:18 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Oct 29, 2013 9:19:19 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-18080
Oct 29, 2013 9:19:19 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1690 ms
Oct 29, 2013 9:19:19 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 29, 2013 9:19:19 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Oct 29, 2013 9:19:19 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Oct 29, 2013 9:19:20 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Oct 29, 2013 9:19:20 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive klaros-web.war
Oct 29, 2013 9:12:37 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:12:37 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:12:37 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.net.messaging.DefaultMessageServiceContextListener" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:13:10 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_15-20100816-SNAPSHOT) for context '/klaros-web'
Oct 29, 2013 9:13:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Oct 29, 2013 9:13:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Oct 29, 2013 9:13:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Oct 29, 2013 9:13:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-18080
Oct 29, 2013 9:13:14 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:18009
Oct 29, 2013 9:13:14 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/130 config=null
Oct 29, 2013 9:13:14 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 42715 ms
Oct 29, 2013 9:14:44 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-18080
Oct 29, 2013 9:14:45 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Oct 29, 2013 9:22:20 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Oct 29, 2013 9:22:21 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-18080
Oct 29, 2013 9:22:21 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2017 ms
Oct 29, 2013 9:22:21 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 29, 2013 9:22:21 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Oct 29, 2013 9:22:21 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Oct 29, 2013 9:22:21 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Oct 29, 2013 9:22:21 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive klaros-web.war
Oct 29, 2013 9:15:38 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:15:38 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:15:38 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.net.messaging.DefaultMessageServiceContextListener" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:16:07 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_15-20100816-SNAPSHOT) for context '/klaros-web'
Oct 29, 2013 9:16:10 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Oct 29, 2013 9:16:10 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Oct 29, 2013 9:16:10 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Oct 29, 2013 9:16:11 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-18080
Oct 29, 2013 9:16:11 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:18009
Oct 29, 2013 9:16:11 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/21 config=null
Oct 29, 2013 9:16:11 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 37783 ms
Oct 29, 2013 9:17:10 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [/klaros-web] The ELResolvers for JSF were not registered with the JSP container.
Oct 29, 2013 9:17:50 AM com.sun.faces.lifecycle.RenderResponsePhase execute
INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=null[severity=(INFO 0), summary=(Welcome, Francisco), detail=(Welcome, Francisco)]
Oct 29, 2013 9:31:19 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Oct 29, 2013 9:31:19 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-18080
Oct 29, 2013 9:31:19 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 880 ms
Oct 29, 2013 9:31:19 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 29, 2013 9:31:19 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Oct 29, 2013 9:31:19 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Oct 29, 2013 9:31:20 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Oct 29, 2013 9:31:20 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive klaros-web.war
Oct 29, 2013 9:31:21 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:31:21 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:31:21 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.net.messaging.DefaultMessageServiceContextListener" is already configured for this context. The duplicate definition has been ignored.
Oct 29, 2013 9:31:49 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_15-20100816-SNAPSHOT) for context '/klaros-web'
Oct 29, 2013 9:31:52 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Oct 29, 2013 9:31:52 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Oct 29, 2013 9:31:52 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Oct 29, 2013 9:31:52 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-18080
Oct 29, 2013 9:31:52 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:18009
Oct 29, 2013 9:31:52 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/54 config=null
Oct 29, 2013 9:31:52 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 32880 ms
Oct 29, 2013 9:37:45 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [/klaros-web] The ELResolvers for JSF were not registered with the JSP container.
Oct 29, 2013 9:37:47 AM com.sun.faces.lifecycle.RenderResponsePhase execute
INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=null[severity=(WARN 1), summary=(Please log in first), detail=(Please log in first)]
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Klaros 3.8.3 - Tomcat / Klaros shut down randomly

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Jerome,

since the logs look indeed ok to me - could you please double check your memory settings for the JVM?

The following minimum settings should be found in bin/catalina.sh:

-XX:MaxPermSize=192m -Xms256m -Xmx512m


Can you please also have a look on the Configure / System Information page to make sure that you are really using the Oracle VM?

If all fails, please send the output of http://localhost:18080/klaros-web/monitoring?format=pdf to support@verit.de so we may have a closer look. The credentials asked for are the ones you have entered at installation time for the tomcat administrator.

Regards,

Torsten

P.S.: Thanks for the detailed installation instructions - we took the hint ... ;)
Jerome Sheed, modified 10 Years ago.

RE: Klaros 3.8.3 - Tomcat / Klaros shut down randomly

Youngling Posts: 4 Join Date: 10/29/13 Recent Posts
Torsten Stolpmann:
Hi Jerome,

since the logs look indeed ok to me - could you please double check your memory settings for the JVM?

The following minimum settings should be found in bin/catalina.sh:

-XX:MaxPermSize=192m -Xms256m -Xmx512m


Can you please also have a look on the Configure / System Information page to make sure that you are really using the Oracle VM?

If all fails, please send the output of http://localhost:18080/klaros-web/monitoring?format=pdf to support@verit.de so we may have a closer look. The credentials asked for are the ones you have entered at installation time for the tomcat administrator.

Regards,

Torsten

P.S.: Thanks for the detailed installation instructions - we took the hint ... ;)


Hi,

From what I can see in bin/catalina.sh:

root@klaros:/opt/klaros/bin# cat catalina.sh | grep XX
-XX:MaxPermSize=192m -Xms256m -Xmx512m org.apache.catalina.startup.Bootstrap "$@" start
-XX:MaxPermSize=192m -Xms256m -Xmx512m org.apache.catalina.startup.Bootstrap "$@" start
-XX:MaxPermSize=192m -Xms256m -Xmx512m org.apache.catalina.startup.Bootstrap "$@" start
-XX:MaxPermSize=192m -Xms256m -Xmx512m org.apache.catalina.startup.Bootstrap "$@" start
-XX:MaxPermSize=192m -Xms256m -Xmx512m org.apache.catalina.startup.Bootstrap "$@" start \
-XX:MaxPermSize=192m -Xms256m -Xmx512m org.apache.catalina.startup.Bootstrap "$@" start \

Do I need to edit anything manually, this was obviously created during setup?

I've attached a screenshot of the system information page and i've also tried to include the PDF but it failed login and gave me the below:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.IllegalArgumentException: No enum constant net.bull.javamelody.TransportFormat.PD
java.lang.Enum.valueOf(Enum.java:236)
net.bull.javamelody.TransportFormat.valueOf(TransportFormat.java:45)
net.bull.javamelody.TransportFormat.valueOfIgnoreCase(TransportFormat.java:147)
net.bull.javamelody.SerializableController.doSerializable(SerializableController.java:79)
net.bull.javamelody.MonitoringController.doCompressedSerializable(MonitoringController.java:295)
net.bull.javamelody.MonitoringController.doCompressedSerializable(MonitoringController.java:275)
net.bull.javamelody.MonitoringController.doReportCore(MonitoringController.java:200)
net.bull.javamelody.MonitoringController.doReport(MonitoringController.java:183)
net.bull.javamelody.MonitoringController.doActionIfNeededAndReport(MonitoringController.java:141)
net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:340)
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:170)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.

I'll monitor for a bit and see if it keep falling over or not, perhaps a once off? Let me know if you see anything.

Thanks,
Jerome
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Klaros 3.8.3 - Tomcat / Klaros shut down randomly

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hmm since the PDF generating obviously failed - can you reach the interactive page at http://localhost:18080/klaros-web/monitoring ?

HTH,

Torsten
Jerome Sheed, modified 10 Years ago.

RE: Klaros 3.8.3 - Tomcat / Klaros shut down randomly (Answer)

Youngling Posts: 4 Join Date: 10/29/13 Recent Posts
Torsten Stolpmann:
Hmm since the PDF generating obviously failed - can you reach the interactive page at http://localhost:18080/klaros-web/monitoring ?

HTH,

Torsten


Hi,

I think that was my mistake. I didn't auth with the correct details.

I've since changed that and emailed you as requested.

Thanks,
Jerome