Jira installation Fails in Windows OS, "The Control port you have chosen appears to be in use"

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

During a Jira installation in a Windows Environment, when attempting to define the ports used by the application, there's an error message:

2021-06-09 08_45_58-VSAUATJIRA01.png

Environment

Windows OS

Cause

Other application is already listening on the TCP port

Solution

We have to identify which process is using the desired port. Run the following steps on a CMD prompt:

netstat -ano

The netstat command shows the ports currently available on the system, the additional parameters will make it easier to identify the process (PID) currently listening to it, adding the | findstr <portNumber> will filter out the results, showing only the desired port:

TCP 0.0.0.0:8005 0.0.0.0:0 LISTENING 4

In this example, we see that the port 8005 (default value for Control port) is used by process with PID 4

tasklist

One way to identify the process with the above PID is to use the tasklist command, which will show all currently running processes in the system, you may filter results same as before, using | findstr <PID>

System 4 Services 0 140 K

For this example, we see that PID 4 belong to SYSTEM process, the use of port 8005 in Windows OS by this process can be linked to the service SMS Agent Host and it's related to process CcmExec, these are part of System Center Configuration Manager, this application is commonly used to manage Windows Environments.

To avoid the modifying SCCM configuration, our recommendation would be to choose another available port to use for Control/Shutdown, or reach out to your local Windows support team and ask for further assistance.

Last modified on Jun 11, 2021

Was this helpful?

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