Jira server fails to start with BindException error
Symptoms
Unable to start or shut down a Jira application.
The following appears in the atlassian-jira.log
:
Dec 20, 2011 12:25:27 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[5060]:
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
at java.net.ServerSocket.bind(ServerSocket.java:336)
at java.net.ServerSocket.<init>(ServerSocket.java:202)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
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:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Exhibiting the same behavior, a user may also see this error in the catalina.out
:
Sep 18, 2013 11:59:57 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[localhost:80]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
Cause
If the instance is throwing the Address already in use: JVM_Bind
error:
- When a Jira application starts up, it listens on a port specified in the Tomcat
server.xml
. - External traffic communicates through that port so it can talk to the Jira application.
- Only one process can listen to a port at a time. If you attempt to listen with another application, the Operating System will not let you - in this case, we can see that with the exception above.
- If another application (such as IIS or Apache or MS SQL Reporting Services) is running on that Tomcat port, the Jira application will not be able to start.
- The
server.xml
may have multipleConnector
elements set up with the same port number. To check on how many instances of the application are currently running, run this command:
For Linux
ps aux | grep catalina.
If the instance is throwing the Cannot assign requested address
error:
- This is due to to the Operating System being unable to resolve the
localhost
, which is required to start and shutdown Tomcat. This is most commonly caused by a misconfiguredhosts
file.
Resolution
Last modified on Dec 6, 2020
Powered by Confluence and Scroll Viewport.