Jira had problems starting up
Asked by Smart Sistem Elektonic Co:

##### An unexpected error has occured during startup.: We couldn't start JIRA {#toc-hId--1619069033}

An error occurred while trying to start JIRA. We can't give you any more detail right now, we suggest checking the logs for more detail and contacting our support team.  
See our documentation for more information on contacting our support team and creating a support zip.


Answers:
author: Rilwan Ahmed
body: Hi [@Smart Sistem Elektonic Co](/t5/user/viewprofilepage/user-id/1885762) ,

I see **Caused by: java.net.BindException: Address already in use: bind**

This means the port which jira is running already is use. Please recheck if the old jira process was stopped or not. Run a ps command to find the running process and check which process is using same port as jira.

High chances that, jira was not stopped correctly and you tried to start one more process.

comments: author: Smart Sistem Elektonic Co
body: java.lang.Object.wait(Native Method)  
java.lang.Object.wait(Object.java:502)  
org.objectweb.jonas_timer.TimerManager.batch(TimerManager.java:193)  
org.objectweb.jonas_timer.Batch.run(TimerManager.java:65)  
20-Oct-2022 14:49:20.246 WARNING \[localhost-startStop-2\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[JonasClock\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.lang.Thread.sleep(Native Method)  
org.objectweb.jonas_timer.TimerManager.clock(TimerManager.java:142)  
org.objectweb.jonas_timer.Clock.run(TimerManager.java:46)  
20-Oct-2022 14:49:20.272 INFO \[Thread-28\] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler \["http-nio-8080"\]  
20-Oct-2022 14:49:22.321 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.32  
20-Oct-2022 14:49:22.327 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 20 2018 19:50:35 UTC  
20-Oct-2022 14:49:22.328 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.32.0  
20-Oct-2022 14:49:22.328 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 2012 R2  
20-Oct-2022 14:49:22.328 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.3  
20-Oct-2022 14:49:22.328 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64  
20-Oct-2022 14:49:22.328 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\\PROGRA\~1\\ATLASS\~1\\JIRA\\jre  
20-Oct-2022 14:49:22.329 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_181-b13  
20-Oct-2022 14:49:22.329 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation  
20-Oct-2022 14:49:22.329 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\\Program Files\\Atlassian\\JIRA  
20-Oct-2022 14:49:22.329 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\\Program Files\\Atlassian\\JIRA  
20-Oct-2022 14:49:22.330 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true  
20-Oct-2022 14:49:22.330 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Datlassian.standalone=JIRA  
20-Oct-2022 14:49:22.330 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true  
20-Oct-2022 14:49:22.330 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dmail.mime.decodeparameters=true  
20-Oct-2022 14:49:22.331 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory  
20-Oct-2022 14:49:22.331 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:-OmitStackTraceInFastThrow  
20-Oct-2022 14:49:22.331 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCDetails  
20-Oct-2022 14:49:22.331 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCDateStamps  
20-Oct-2022 14:49:22.332 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCTimeStamps  
20-Oct-2022 14:49:22.332 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCCause  
20-Oct-2022 14:49:22.332 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseGCLogFileRotation  
20-Oct-2022 14:49:22.332 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:NumberOfGCLogFiles=5  
20-Oct-2022 14:49:22.332 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:GCLogFileSize=20M  
20-Oct-2022 14:49:22.333 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xloggc:C:\\Program Files\\Atlassian\\JIRA\\logs\\atlassian-jira-gc-%t.log  
20-Oct-2022 14:49:22.333 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\\Program Files\\Atlassian\\JIRA  
20-Oct-2022 14:49:22.333 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\\Program Files\\Atlassian\\JIRA  
20-Oct-2022 14:49:22.333 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=C:\\Program Files\\Atlassian\\JIRA\\endorsed  
20-Oct-2022 14:49:22.333 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\\Program Files\\Atlassian\\JIRA\\temp  
20-Oct-2022 14:49:22.334 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager  
20-Oct-2022 14:49:22.334 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\\Program Files\\Atlassian\\JIRA\\conf\\logging.properties  
20-Oct-2022 14:49:22.334 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit  
20-Oct-2022 14:49:22.334 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort  
20-Oct-2022 14:49:22.334 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms384m  
20-Oct-2022 14:49:22.335 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx768m  
20-Oct-2022 14:49:22.335 INFO \[main\] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: \[C:\\Program Files\\Atlassian\\JIRA\\bin;C:\\Windows\\Sun\\Java\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;.\]  
20-Oct-2022 14:49:22.740 INFO \[main\] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler \["http-nio-8080"\]  
20-Oct-2022 14:49:22.758 INFO \[main\] org.apache.catalina.startup.Catalina.load Initialization processed in 1304 ms  
20-Oct-2022 14:49:22.785 INFO \[main\] org.apache.catalina.core.StandardService.startInternal Starting service \[Catalina\]  
20-Oct-2022 14:49:22.785 INFO \[main\] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.32  
20-Oct-2022 14:50:09.056 INFO \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-8080"\]  
20-Oct-2022 14:50:09.120 INFO \[main\] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read  
20-Oct-2022 14:50:09.163 INFO \[main\] org.apache.catalina.startup.Catalina.start Server startup in 46403 ms


author: Smart Sistem Elektonic Co
body: I keep getting errors. I shared the error logs again.


author: Smart Sistem Elektonic Co
body: We already restarted this server. But it is not working


author: Rilwan Ahmed
body: Hi [@Smart Sistem Elektonic Co](/t5/user/viewprofilepage/user-id/1885762) ,

Logs are saying that a Java application is trying to connect on port 8080 but that port is already used by some other process and *JVM Bind* to that particular port,  

Now to fix this error you need to find out which process is listening of port 8080.  

**In Linux** (Run below command being a root user):  
1. **netstat -nap \| grep 8080**   
Sample output in the screenshot.  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/221862i08B8CB3E88811E9E/image-size/large?v=v2&px=999 "image.png")  

In screen shot, the process ID is 4175.  

2. Kill the process using port 8080  
kill command will be **kill -9 4175**   

**Windows** (run below command being a root user):

Run command **netstat -ano \| find "8080"**

Then open Task Manager, select Details, find the port showed in CMD and end task.


author: Smart Sistem Elektonic Co
body: 19-Oct-2022 15:36:43.813 INFO \[main\] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler \["http-nio-8080"\]  
19-Oct-2022 15:36:43.813 INFO \[main\] org.apache.catalina.core.StandardService.stopInternal Stopping service \[Catalina\]  
19-Oct-2022 15:36:45.037 INFO \[main\] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler \["http-nio-8080"\]  
19-Oct-2022 15:36:45.037 INFO \[main\] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler \["http-nio-8080"\]  
19-Oct-2022 16:50:50.812 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.32  
19-Oct-2022 16:50:50.820 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 20 2018 19:50:35 UTC  
19-Oct-2022 16:50:50.820 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.32.0  
19-Oct-2022 16:50:50.820 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 2012 R2  
19-Oct-2022 16:50:50.820 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.3  
19-Oct-2022 16:50:50.821 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64  
19-Oct-2022 16:50:50.821 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\\PROGRA\~1\\ATLASS\~1\\JIRA\\jre  
19-Oct-2022 16:50:50.821 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_181-b13  
19-Oct-2022 16:50:50.821 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation  
19-Oct-2022 16:50:50.821 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\\Program Files\\Atlassian\\JIRA  
19-Oct-2022 16:50:50.821 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\\Program Files\\Atlassian\\JIRA  
19-Oct-2022 16:50:50.822 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true  
19-Oct-2022 16:50:50.822 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Datlassian.standalone=JIRA  
19-Oct-2022 16:50:50.822 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true  
19-Oct-2022 16:50:50.823 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dmail.mime.decodeparameters=true  
19-Oct-2022 16:50:50.823 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory  
19-Oct-2022 16:50:50.823 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:-OmitStackTraceInFastThrow  
19-Oct-2022 16:50:50.824 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCDetails  
19-Oct-2022 16:50:50.824 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCDateStamps  
19-Oct-2022 16:50:50.824 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCTimeStamps  
19-Oct-2022 16:50:50.824 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCCause  
19-Oct-2022 16:50:50.825 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseGCLogFileRotation  
19-Oct-2022 16:50:50.825 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:NumberOfGCLogFiles=5  
19-Oct-2022 16:50:50.825 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:GCLogFileSize=20M  
19-Oct-2022 16:50:50.825 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xloggc:C:\\Program Files\\Atlassian\\JIRA\\logs\\atlassian-jira-gc-%t.log  
19-Oct-2022 16:50:50.826 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\\Program Files\\Atlassian\\JIRA  
19-Oct-2022 16:50:50.826 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\\Program Files\\Atlassian\\JIRA  
19-Oct-2022 16:50:50.826 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=C:\\Program Files\\Atlassian\\JIRA\\endorsed  
19-Oct-2022 16:50:50.826 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\\Program Files\\Atlassian\\JIRA\\temp  
19-Oct-2022 16:50:50.826 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager  
19-Oct-2022 16:50:50.827 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\\Program Files\\Atlassian\\JIRA\\conf\\logging.properties  
19-Oct-2022 16:50:50.827 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit  
19-Oct-2022 16:50:50.827 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort  
19-Oct-2022 16:50:50.828 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms256m  
19-Oct-2022 16:50:50.828 INFO \[main\] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx768m  
19-Oct-2022 16:50:50.828 INFO \[main\] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: \[C:\\Program Files\\Atlassian\\JIRA\\bin;C:\\Windows\\Sun\\Java\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;.\]  
19-Oct-2022 16:50:51.168 INFO \[main\] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler \["http-nio-8080"\]  
19-Oct-2022 16:50:51.187 INFO \[main\] org.apache.catalina.startup.Catalina.load Initialization processed in 1505 ms  
19-Oct-2022 16:50:51.216 INFO \[main\] org.apache.catalina.core.StandardService.startInternal Starting service \[Catalina\]  
19-Oct-2022 16:50:51.217 INFO \[main\] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.32  
19-Oct-2022 16:51:35.752 INFO \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-8080"\]  
19-Oct-2022 16:51:35.765 SEVERE \[main\] org.apache.catalina.core.StandardService.startInternal Failed to start connector \[Connector\[HTTP/1.1-8080\]\]  
org.apache.catalina.LifecycleException: Failed to start component \[Connector\[HTTP/1.1-8080\]\]  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)  
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:440)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
at org.apache.catalina.startup.Catalina.start(Catalina.java:681)  
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:353)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)  
Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed  
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1020)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
... 11 more  
Caused by: java.net.BindException: Address already in use: bind  
at sun.nio.ch.Net.bind0(Native Method)  
at sun.nio.ch.Net.bind(Net.java:433)  
at sun.nio.ch.Net.bind(Net.java:425)  
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)  
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)  
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210)  
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1150)  
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:591)  
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1018)  
... 12 more

19-Oct-2022 16:51:35.768 INFO \[main\] org.apache.catalina.startup.Catalina.start Server startup in 44579 ms  
19-Oct-2022 16:56:54.232 INFO \[http-nio-8080-exec-15\] org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received \[h:mm a; gantt_locale=en_US; jira.editor.user.mode=source\] that contained an invalid cookie. That cookie will be ignored.Note: further occurrences of this error will be logged at DEBUG level.  
19-Oct-2022 17:37:46.324 INFO \[http-nio-8080-exec-18\] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header  
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.  
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens  
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:428)  
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:684)  
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)  
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)  
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)  
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)  
at java.lang.Thread.run(Thread.java:748)