Failed to start confluence [Connector[HTTPS/1.1-8443]]

Sagar Patil July 25, 2024

Hiii team,

 

Requesting you to please assist on below point. we're trying to start confluence https server but getting below error:

 

25-Jul-2024 16:51:54.689 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector["http-nio-8090"]] org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:1012) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:525) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:990) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.startup.Catalina.load(Catalina.java:686) at org.apache.catalina.startup.Catalina.load(Catalina.java:709) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472) Caused by: java.net.BindException: Address already in use: bind at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:555) at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337) at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:268) at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:223) at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1355) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1368) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:654) at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:75) at org.apache.catalina.connector.Connector.initInternal(Connector.java:1010) ... 13 more 25-Jul-2024 16:51:54.690 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[org.apache.coyote.http11.Http11Protocol-auto-null]] org.apache.catalina.LifecycleException: Protocol handler instantiation failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:980) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:525) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:990) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.startup.Catalina.load(Catalina.java:686) at org.apache.catalina.startup.Catalina.load(Catalina.java:709) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472) 25-Jul-2024 16:51:54.691 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [575] milliseconds 25-Jul-2024 16:51:54.708 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat-Standalone] 25-Jul-2024 16:51:54.709 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89] 25-Jul-2024 16:51:56.837 INFO [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars 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. 25-Jul-2024 16:51:57.291 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath 25-Jul-2024 16:51:57.700 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log Initializing Spring DispatcherServlet 'dispatcher' 25-Jul-2024 16:52:13.755 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [19062] milliseconds 25-Jul-2024 16:52:13.759 SEVERE [main] org.apache.catalina.core.StandardServer.await Failed to create server shutdown socket on address [localhost] and port [8000] (base port [8000] and offset [0]) java.net.BindException: Address already in use: bind at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:555) at java.base/sun.nio.ch.Net.bind(Net.java:544) at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:648) at java.base/java.net.ServerSocket.bind(ServerSocket.java:388) at java.base/java.net.ServerSocket.(ServerSocket.java:274) at org.apache.catalina.core.StandardServer.await(StandardServer.java:541) at org.apache.catalina.startup.Catalina.await(Catalina.java:825) at org.apache.catalina.startup.Catalina.start(Catalina.java:773) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) 25-Jul-2024 16:52:13.760 SEVERE [main] org.apache.catalina.startup.Catalina.stop Error stopping Catalina org.apache.catalina.LifecycleException: Failed to stop component [StandardService[Tomcat-Standalone]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:252) at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:923) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:242) at org.apache.catalina.startup.Catalina.stop(Catalina.java:810) at org.apache.catalina.startup.Catalina.start(Catalina.java:774) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.coyote.ProtocolHandler.closeServerSocketGraceful()" because the return value of "org.apache.catalina.connector.Connector.getProtocolHandler()" is null at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:448) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:242) ... 10 more

2 answers

0 votes
Sagar Patil July 26, 2024

Hi @Charlie Misonne ,

 

Now I am getting 404 error and it's window machine, Can you please provide solution ?
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

26.07.2024_16.00.56_REC.png

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2024

Hi @Sagar Patil 

When you look at that log entry closely you can see:  Caused by: java.net.BindException: Address already in use

It looks like the 8090 port is already in use (don't think it's about 8443 but I'm not 100% sure)

Is this a Linux server? In that case you can check if the ports is in use:

netstat -tulpn | grep 8090

Make sure Confluence is properly shut down before you start it again. And make sure other applications on the same server do not use the same ports.

Hope that helps! 

Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2024

Hi @Sagar Patil 

So you're getting a 404 now but did you change anything? Do you have other errors in the logs?

Did you make sure the port is not in use yet?

 

Sagar Patil July 26, 2024

Hiii @Charlie Misonne ,

Yes below latest logs

26-Jul-2024 16:34:31.016 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"]
26-Jul-2024 16:34:31.064 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio2-8443"]
26-Jul-2024 16:34:31.453 INFO [main] org.apache.tomcat.util.net.AbstractEndpoint.logCertificate Connector [https-jsse-nio2-8443], TLS virtual host [_default_], certificate type [UNDEFINED] configured from keystore [jira.jks] using alias [tomcat] with trust store [null]
26-Jul-2024 16:34:31.456 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [1233] milliseconds
26-Jul-2024 16:34:31.468 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat-Standalone]
26-Jul-2024 16:34:31.469 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89]
26-Jul-2024 16:34:35.664 INFO [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars 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.
26-Jul-2024 16:34:36.285 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath
26-Jul-2024 16:34:36.766 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log Initializing Spring DispatcherServlet 'dispatcher'
26-Jul-2024 16:35:46.374 SEVERE [Catalina-utility-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
26-Jul-2024 16:35:46.375 SEVERE [Catalina-utility-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
26-Jul-2024 16:36:15.222 WARNING [Catalina-utility-1] 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.
26-Jul-2024 16:36:15.222 WARNING [Catalina-utility-1] 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.
26-Jul-2024 16:36:15.222 WARNING [Catalina-utility-1] 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.
26-Jul-2024 16:36:15.222 WARNING [Catalina-utility-1] 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.
26-Jul-2024 16:36:15.223 WARNING [Catalina-utility-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [BC Entropy Daemon] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@17.0.10/java.lang.Thread.sleep(Native Method)
org.bouncycastle.crypto.EntropyDaemon.run(EntropyDaemon.java:51)
java.base@17.0.10/java.lang.Thread.run(Thread.java:842)
26-Jul-2024 16:36:15.239 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"]
26-Jul-2024 16:36:15.251 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio2-8443"]
26-Jul-2024 16:36:15.252 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [103795] milliseconds
26-Jul-2024 16:36:51.900 INFO [Thread-4] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8090"]
26-Jul-2024 16:36:51.913 INFO [Thread-4] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["https-jsse-nio2-8443"]
26-Jul-2024 16:36:51.928 INFO [Thread-4] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat-Standalone]
26-Jul-2024 16:36:51.930 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log Destroying Spring FrameworkServlet 'dispatcher'
26-Jul-2024 16:36:52.360 INFO [Thread-4] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8090"]
26-Jul-2024 16:36:52.372 INFO [Thread-4] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["https-jsse-nio2-8443"]
26-Jul-2024 16:36:52.376 INFO [Thread-4] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8090"]
26-Jul-2024 16:36:52.377 INFO [Thread-4] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["https-jsse-nio2-8443"]

Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2024

well from these logs I can not really pinpoint the issue. There are SEVERE errors but very generic ones.

What changed since the last successfule Confluence start?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events