Startup Fails Due to 'java.net.BindException Address already in use'

Still need help?

The Atlassian Community is here for you.

Ask the community

This article requires fixes

This article has been Flagged for fixing. Use caution when using it and fix it if you have Publisher rights.

Symptoms

Confluence fails to start up. The following appears in the catalina.out log:

SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080

Cause

The port Confluence is using to start up is in use. This can be caused either by another application running on the port, or failed shutdown of Confluence. 

Resolution

  1. If this is your first time running Confluence or you have recently added applications or made changes to the system, investigate what's running on port 8080.

  2. If Confluence was not shut down properly, you can restart the machine or kill the process:

On Windows

1. Hit Ctrl-alt-delete and look at open programs. Look for java.exe.
2. From a command window, run netstat -an. Check which ports are in use. You can identify which application is running this way, then close it from the Task Manager.

On Linux

Run: ps -aux | grep java. This will show the java processes running and their process ids. You can kill a process with the command: kill -9 <pid>


If you intend to run both JIRA and Confluence on the same machine for trial purposes, you will need to change either of the listening port number from the default (8080). Please refer to Change listen port for Confluence

Last modified on Sep 27, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.