Reset Search
 

 

Article

Netsight server fails to start with error "Test connection to the database failed, shutting down JBoss"

« Go Back

Information

 
TitleNetsight server fails to start with error "Test connection to the database failed, shutting down JBoss"
Symptoms
  • Unable to connect to database.
  • Unexpected error during shutdown.
  • Could not start deployment: file:/usr/local/Extreme_Networks/NetSight/jboss/server/default/conf/jboss-service.xml
  • Cannot create timer table
  • Sample of error messages dumped by the server:
2015-09-07 09:12:15,334 INFO  [com.enterasys.netsight.api.ServerInfoLogger] ** The NetSight server is binding to IP address: 172.16.17.10  **
2015-09-07 09:12:15,342 INFO  [com.enterasys.netsight.api.ServerInfoLogger] Server using -Xmx2048m.
2015-09-07 09:12:15,344 INFO  [com.enterasys.netsight.api.ServerInfoLogger] Starting NetSNMP stack.
2015-09-07 09:12:15,622 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 1 of 12 to connect to the database failed.
2015-09-07 09:12:21,877 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 2 of 12 to connect to the database failed.
2015-09-07 09:12:28,505 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 3 of 12 to connect to the database failed.
2015-09-07 09:12:35,127 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 4 of 12 to connect to the database failed.
2015-09-07 09:12:41,857 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 5 of 12 to connect to the database failed.
2015-09-07 09:12:48,504 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 6 of 12 to connect to the database failed.
2015-09-07 09:12:55,226 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 7 of 12 to connect to the database failed.
2015-09-07 09:13:01,880 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 8 of 12 to connect to the database failed.
2015-09-07 09:13:08,486 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 9 of 12 to connect to the database failed.
2015-09-07 09:13:15,158 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 10 of 12 to connect to the database failed.
2015-09-07 09:13:21,881 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] Attempt 11 of 12 to connect to the database failed.
2015-09-07 09:13:28,486 ERROR [com.enterasys.netsight.server.jmx.NetSightSystemCheck] 
***********************************************************
Test connection to the database failed, shutting down JBoss
***********************************************************

2015-09-07 09:13:28,487 INFO  [org.jboss.system.server.Server] Server exit(1) called
2015-09-07 09:13:28,495 INFO  [org.jboss.system.server.Server] Runtime shutdown hook called, forceHalt: true
2015-09-07 09:13:28,495 INFO  [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages
2015-09-07 09:13:28,505 ERROR [com.enterasys.netsight.server.jmx.NetSightMBean] Unexpected error during shutdown
javax.management.ListenerNotFoundException: Listener not found com.enterasys.netsight.server.jmx.NetSight@493de006 for object name jboss.system:type=Server
	at org.jboss.mx.notification.MBeanServerListenerRegistry.remove(MBeanServerListenerRegistry.java:154)
	at org.jboss.mx.server.MBeanServerImpl.removeNotificationListener(MBeanServerImpl.java:835)
	at com.enterasys.netsight.server.jmx.NetSight.jbossInternalDestroy(NetSight.java:120)
	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:249)
	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
	at com.sun.proxy.$Proxy0.destroy(Unknown Source)
	at org.jboss.system.ServiceController.destroy(ServiceController.java:577)
	at org.jboss.system.ServiceController.destroy(ServiceController.java:568)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
	at com.sun.proxy.$Proxy4.destroy(Unknown Source)
	at org.jboss.deployment.SARDeployer.destroy(SARDeployer.java:376)
	at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:704)
	at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:639)
	at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:516)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:1050)
	at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:1025)
	at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:988)
2015-09-07 09:13:29,282 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] java.lang.NullPointerException
2015-09-07 09:13:29,297 INFO  [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 1m:58s:4ms
2015-09-07 09:13:29,299 INFO  [org.jboss.system.server.Server] Shutdown complete
2015-09-07 09:16:08,126 ERROR [org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin] Cannot create timer table
org.jboss.deployment.DeploymentException: Error while checking if table aleady exists TIMERS; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)))
2015-09-07 13:36:22,571 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/usr/local/Extreme_Networks/NetSight/jboss/server/default/deploy/NetSight/common/netsightCoreServices.sar
org.jboss.deployment.DeploymentException: start operation failed on package file:/usr/local/Extreme_Networks/NetSight/jboss/server/default/deploy/NetSight/common/netsightCoreServices.sar; - nested throwable: (java.util.ConcurrentModificationException)



 
Environment
  • Netsight Suite
  • SNS-NSS-A
  • All Software version
Cause
  • org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  • org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  • com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  • java.net.ConnectException: Connection refused
Resolution
Please submit a RMA through our Support Portal system or contact support for immediate technical assistance.

 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255