'Address already in use' when Starting up Bitbucket Server

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following exception is reported when starting up Bitbucket Server:

SEVERE: StandardServer.await: create[8006]:

java.net.BindException: Address already in use

        at java.net.PlainSocketImpl.socketBind(Native Method)

Cause

Another application is already running on the same port that Bitbucket Server is trying to use.

Resolution

  1. If this is your first time running Bitbucket Server or you have recently added applications or made changes to the system, investigate what's running on port 7990 (Default port for Bitbucket Server) .
  2. If Bitbucket Server 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>}}.

3. If there is another application running on that port and you wish to continue running it on port 7990, you will need to change the default listening port for Bitbucket Server. Follow the steps on Changing the port that Bitbucket Server listens on to change the port for Bitbucket Server.

Last modified on May 2, 2017

Was this helpful?

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