Confluence don't start after reboot
Asked by Roman Shestov:

Good night, installed Confluence 6.6.12. Everything worked fine, after restarting the startup.sh script, stopped running it. I tried to reinstall - the result is the same. Help me please!  

Catalina log:

sh /opt/atlassian/confluence/bin/startup.sh  
If you encounter issues starting up Confluence, please see the Installation guide at <http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide>

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out  
---------------------------------------------------------------------------  
Using Java: /opt/atlassian/confluence/jre//bin/java  
2019-03-25 01:37:59,275 INFO \[main\] \[atlassian.confluence.bootstrap.SynchronyProxyWatchdog\] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required  
---------------------------------------------------------------------------  
Using CATALINA_BASE: /opt/atlassian/confluence  
Using CATALINA_HOME: /opt/atlassian/confluence  
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp  
Using JRE_HOME: /opt/atlassian/confluence/jre/  
Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar  
Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid  
Existing PID file found during start.  
Removing/clearing stale PID file.  
Tomcat started.  
\[root@wiki \~\]# tail -f /opt/atlassian/confluence/logs/catalina.out  
25-Mar-2019 01:37:59.637 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.  
25-Mar-2019 01:37:59.665 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.  
25-Mar-2019 01:37:59.685 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.  

25-Mar-2019 01:39:38.297 WARNING \[main\] org.apache.catalina.mapper.MapperListener.findDefaultHost Unknown default host \[localhost\] for service \[StandardService\[Tomcat-Standalone\]\]  
25-Mar-2019 01:39:38.299 INFO \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-8090"\]  
25-Mar-2019 01:39:39.177 INFO \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-8091"\]  
25-Mar-2019 01:39:39.415 INFO \[main\] org.apache.catalina.startup.Catalina.start Server startup in 99400 ms  
25-Mar-2019 01:39:39.426 SEVERE \[main\] org.apache.catalina.core.StandardServer.await StandardServer.await: create\[localhost:8000\]:  
java.net.BindException: ????? ??? ???????????? (Bind failed)  
at java.net.PlainSocketImpl.socketBind(Native Method)  
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)  
at java.net.ServerSocket.bind(ServerSocket.java:375)  
at java.net.ServerSocket.\<init\>(ServerSocket.java:237)  
at org.apache.catalina.core.StandardServer.await(StandardServer.java:438)  
at org.apache.catalina.startup.Catalina.await(Catalina.java:729)  
at org.apache.catalina.startup.Catalina.start(Catalina.java:675)  
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:349)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:483)

25-Mar-2019 01:39:39.427 INFO \[main\] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler \["http-nio-8090"\]  
25-Mar-2019 01:39:39.490 INFO \[main\] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler \["http-nio-8091"\]  
25-Mar-2019 01:39:39.550 INFO \[main\] org.apache.catalina.core.StandardService.stopInternal Stopping service Tomcat-Standalone  
25-Mar-2019 01:39:39.665 INFO \[wiki.avangardpc.ru-startStop-4\] org.apache.catalina.core.ApplicationContext.log Destroying Spring FrameworkServlet 'dispatcher'  
25-Mar-2019 01:39:39.665 INFO \[wiki.avangardpc.ru-startStop-4\] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.doClose Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date \[Mon Mar 25 01:38:02 MSK 2019\]; root of context hierarchy  
25-Mar-2019 01:39:39.666 INFO \[wiki.avangardpc.ru-startStop-4\] org.springframework.context.support.DefaultLifecycleProcessor.stop Stopping beans in phase 2147483647  
25-Mar-2019 01:39:39.673 INFO \[wiki.avangardpc.ru-startStop-4\] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.shutdown Shutting down ExecutorService 'defaultSockJsTaskScheduler'  
25-Mar-2019 01:39:59.453 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[net.sourceforge.jtds.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.  
25-Mar-2019 01:39:59.453 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[com.github.gquintana.metrics.sql.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
25-Mar-2019 01:39:59.454 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[org.hsqldb.jdbc.JDBCDriver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
25-Mar-2019 01:39:59.454 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[com.microsoft.sqlserver.jdbc.SQLServerDriver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
25-Mar-2019 01:39:59.454 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[org.h2.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
25-Mar-2019 01:39:59.454 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[org.postgresql.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
25-Mar-2019 01:39:59.456 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-1\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
25-Mar-2019 01:39:59.457 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-2\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
25-Mar-2019 01:39:59.457 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-3\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
25-Mar-2019 01:39:59.458 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-4\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
25-Mar-2019 01:39:59.458 WARNING \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-5\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  

<br />

java.lang.Thread.run(Thread.java:748)  
25-Mar-2019 01:39:59.478 SEVERE \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application \[ROOT\] created a ThreadLocal with key of type \[com.opensymphony.xwork.ActionContext.ActionContextThreadLocal\] (value \[com.opensymphony.xwork.ActionContext$ActionContextThreadLocal@70173d21\]) and a value of type \[com.opensymphony.xwork.ActionContext\] (value \[com.opensymphony.xwork.ActionContext@4143f3ab\]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.  
25-Mar-2019 01:39:59.478 SEVERE \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application \[ROOT\] created a ThreadLocal with key of type \[com.opensymphony.xwork.ActionContext.ActionContextThreadLocal\] (value \[com.opensymphony.xwork.ActionContext$ActionContextThreadLocal@70173d21\]) and a value of type \[com.opensymphony.xwork.ActionContext\] (value \[com.opensymphony.xwork.ActionContext@5c714163\]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.  
25-Mar-2019 01:39:59.478 SEVERE \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application \[ROOT\] created a ThreadLocal with key of type \[com.opensymphony.xwork.ActionContext.ActionContextThreadLocal\] (value \[com.opensymphony.xwork.ActionContext$ActionContextThreadLocal@70173d21\]) and a value of type \[com.opensymphony.xwork.ActionContext\] (value \[com.opensymphony.xwork.ActionContext@a586711\]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.  
25-Mar-2019 01:39:59.479 SEVERE \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application \[ROOT\] created a ThreadLocal with key of type \[org.apache.shindig.common.xml.XmlUtil$2\] (value \[org.apache.shindig.common.xml.XmlUtil$2@60e2b6d9\]) and a value of type \[org.apache.xerces.jaxp.DocumentBuilderImpl\] (value \[org.apache.xerces.jaxp.DocumentBuilderImpl@3e62cfc5\]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.  
25-Mar-2019 01:39:59.479 SEVERE \[wiki.avangardpc.ru-startStop-3\] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application \[ROOT\] created a ThreadLocal with key of type \[com.opensymphony.xwork.ActionContext.ActionContextThreadLocal\] (value \[com.opensymphony.xwork.ActionContext$ActionContextThreadLocal@70173d21\]) and a value of type \[com.opensymphony.xwork.ActionContext\] (value \[com.opensymphony.xwork.ActionContext@684eeb33\]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.  
25-Mar-2019 01:39:59.486 INFO \[main\] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler \["http-nio-8090"\]  
25-Mar-2019 01:39:59.563 INFO \[main\] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler \["http-nio-8091"\]  
25-Mar-2019 01:39:59.663 INFO \[main\] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler \["http-nio-8090"\]  
25-Mar-2019 01:39:59.665 INFO \[main\] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler \["http-nio-8091"\]  

<br />


Answers:
author: Kiran Panduga {Appfire}
body: Hi [@Roman Shestov](/t5/user/viewprofilepage/user-id/2626172) ,

We are seeing memory leak issues in the logs and I would suggest to check the memory allocation for Confluence 6.6.12 and try increasing the memory.

Also, can you check the server.xml file under \<confluence_installation_directory\>/conf to verify the ports and configuration and also make sure to check the ports 8090 and 8091 are not in use.

Thanks,

Kiran.


author: JP _AC Bielefeld Leader_
body: Hi,

something is already listening to a port Confluence wants to use:

25-Mar-2019 01:39:39.426 SEVERE \[main\] org.apache.catalina.core.StandardServer.await StandardServer.await: create\[localhost:8000\]:  
java.net.BindException: ????? ??? ???????????? (Bind failed)

You have to fix this first, otherwise the server will not start.

Best

JP


Tags: confluence-server

server