Confluemce suddently stopped and not working
Asked by SIju:

It was working perfectly but stopped suddently and we have restarted the confluence and

tomcat server is not getting started and getting the below errors from confluence.

Anyone please check and let us know please.

logs from :- catalina.out

02-Sep-2018 10:26:40.029 SEVERE \[13.127.219.255-startStop-1\] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be  
found in the appropriate container log file  
02-Sep-2018 10:26:40.033 SEVERE \[13.127.219.255-startStop-1\] org.apache.catalina.core.StandardContext.startInternal Context \[\] startup failed due to previous errors  
02-Sep-2018 10:28:18.621 WARNING \[13.127.219.255-startStop-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC  
driver \[com.mysql.jdbc.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  

02-Sep-2018 10:28:18.621 WARNING \[13.127.219.255-startStop-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver  
\[com.mysql.fabric.jdbc.FabricMySQLDriver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly


Answers:
author: AhmadDanial
body: Hi there, Siju,.

Some drivers auto registers themselves upon Confluence startup, which does not unregistered when Confluence shuts down. Tomcat (through its memory leak detection feature) forcefully shuts them down. So, the WARNING messages shown are informative.

What I am more interested to know is the fact that Tomcat is not getting started again after Confluence was restarted. Do you notice any errors in the *atlassian-confluence.log* when the issue is being reproduced?

comments: author: SIju
body: Thanks for tht help.

We are getting the below error

2018-09-04 06:56:24,925 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1br9tlm9x19aytv62sjeqf\|287b8ce1\]-HelperThread-#1\]  
\[mchange.v2.resourcepool.BasicResourcePool\] log com.mchange.v2.resourcepool.BasicResourcePool$Scattered  
AcquireTask@7489ed0c -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed  
new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:  
org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost:9092" \[90067-176\]  
at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)  
at org.h2.message.DbException.get(DbException.java:167)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:434)  
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:311)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:107)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:91)  
at org.h2.Driver.connect(Driver.java:74)  
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:220)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:206)  
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C 3P0PooledConnectionPool.java:203)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BaicResourcePool.java:1125)  
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)  
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)  
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)  
Caused by: java.net.ConnectException: Connection refused (Connection refused)  
at java.net.PlainSocketImpl.socketConnect(Native Method)  
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)  
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)  
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)  
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)  
at java.net.Socket.connect(Socket.java:589)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:123)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:103)  
at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:100)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:430)  
... 13 more  
2018-09-04 06:56:24,925 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1br9tlm9x19aytv62sjeqf\|287b8ce1\]-HelperThread-#1\]  
\[mchange.v2.resourcepool.BasicResourcePool\] log Having failed to acquire a resource, com.mchange.v2.  
resourcepool.BasicResourcePool@164394b1 is interrupting all Threads waiting on a resource to check out. Will try again response to new client requests.  
2018-09-04 06:56:33,639 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1br9tlm9x19aytv62sjeqf\|287b8ce1\]-HelperThread-#1\]ge.v2.resourcepool.BasicResourcePool\] log com.mchange.v2.resourcepool.BasicResourcePool$Scattered AcquireTask@7164ff85 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed n ew resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisiti on attempt exception:  
org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused  
(Connection refused): localhost:9092" \[90067-176\]  
at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)  
at org.h2.message.DbException.get(DbException.java:167)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:434)  
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:311)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:107)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:91)  
at org.h2.Driver.connect(Driver.java:74)  
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:220)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:206)  
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C 3P0PooledConnectionPool.java:203)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(Ba sicResourcePool.java:1125)  
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)  
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)  
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)  
Caused by: java.net.ConnectException: Connection refused (Connection refused)  
at java.net.PlainSocketImpl.socketConnect(Native Method)  
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)  
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)  
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)  
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)  
at java.net.Socket.connect(Socket.java:589)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:123)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:103)  
at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:100)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:430)


author: Suren Raj
body: Hi, [@SIju](/t5/user/viewprofilepage/user-id/1875120)

We have created a ticket for you regarding this issue. Our suppot team will reach out to you soon.  

* <https://getsupport.atlassian.com/browse/CA-543695>

Kind Regard  
Suren Raj


author: Suren Raj
body: Hello Siju,

As I understand, your instance is currently down and inaccessible.

<br />

Can you provide us the following information:

1. Have you applied any kind of change to your environment?
2. Is your instance still down?
3. Is this your production instance or test instance?
4. Have you started Confluence with the correct user?
5. Have you tried to upgrade your instance?
6. Are you using the embedded H2 database or an external one?  

Can you try to clear confluence plugin cache as stated in the below documentation and see if the issue persist?

* <https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html>

Let us know how it goes.  

Kind Regard  
Suren Raj

comments: author: SIju
body: Thanks for the support

I have cleared the cache and restarted the confluence still getting the below error..

Iam using H2 database. Also hoe can I migrate to mysql databse in the existing installation after its fixed.


author: SIju
body: 2018-09-04 06:56:24,925 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1br9tlm9x19aytv62sjeqf\|287b8ce1\]-HelperThread-#1\]  
\[mchange.v2.resourcepool.BasicResourcePool\] log com.mchange.v2.resourcepool.BasicResourcePool$Scattered  
AcquireTask@7489ed0c -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed  
new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:  
org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost:9092" \[90067-176\]  
at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)  
at org.h2.message.DbException.get(DbException.java:167)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:434)  
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:311)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:107)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:91)  
at org.h2.Driver.connect(Driver.java:74)  
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:220)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:206)  
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C 3P0PooledConnectionPool.java:203)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BaicResourcePool.java:1125)  
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)  
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)  
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)  
Caused by: java.net.ConnectException: Connection refused (Connection refused)  
at java.net.PlainSocketImpl.socketConnect(Native Method)  
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)  
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)  
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)  
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)  
at java.net.Socket.connect(Socket.java:589)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:123)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:103)  
at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:100)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:430)  
... 13 more  
2018-09-04 06:56:24,925 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1br9tlm9x19aytv62sjeqf\|287b8ce1\]-HelperThread-#1\]  
\[mchange.v2.resourcepool.BasicResourcePool\] log Having failed to acquire a resource, com.mchange.v2.  
resourcepool.BasicResourcePool@164394b1 is interrupting all Threads waiting on a resource to check out. Will try again response to new client requests.  
2018-09-04 06:56:33,639 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1br9tlm9x19aytv62sjeqf\|287b8ce1\]-HelperThread-#1\]ge.v2.resourcepool.BasicResourcePool\] log com.mchange.v2.resourcepool.BasicResourcePool$Scattered AcquireTask@7164ff85 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed n ew resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisiti on attempt exception:  
org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused  
(Connection refused): localhost:9092" \[90067-176\]  
at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)  
at org.h2.message.DbException.get(DbException.java:167)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:434)  
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:311)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:107)  
at org.h2.jdbc.JdbcConnection.\<init\>(JdbcConnection.java:91)  
at org.h2.Driver.connect(Driver.java:74)  
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:220)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource. java:206)  
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C 3P0PooledConnectionPool.java:203)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(Ba sicResourcePool.java:1125)  
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)  
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)  
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)  
Caused by: java.net.ConnectException: Connection refused (Connection refused)  
at java.net.PlainSocketImpl.socketConnect(Native Method)  
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)  
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)  
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)  
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)  
at java.net.Socket.connect(Socket.java:589)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:123)  
at org.h2.util.NetUtils.createSocket(NetUtils.java:103)  
at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:100)  
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:430)