How Do I Troubleshoot The Error "Could not start server: Address already in use: bind"
The following KB describes on how the error "Could not start server: Address already in use: bind" can be troubleshoot and fixed. The mentioned error normally occurs when starting up the Fisheye/Crucible instance. The Fisheye/Crucible will fail to start and the following error message will be captured and recorded in the log files:-
2014-09-04 18:54:48,532 ERROR - Could not start server: Address already in use: bind
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
...
The error above suggests that there might another service running on the port dedicated to Fisheye/Crucible instance and this prevent the service from being started. Here is what you can do to troubleshoot and find out what is the service running on the port dedicated for Fisheye/Crucible.
In Windows: | In Linux: |
---|---|
You can run the netstat command with -o parameters in command line Alternatively, you can use the third party tool TCPView to check the | Run the command "netstat -lnptu" to determine the program/service running on the port. |
Upon determining the program/service occupying the affected port. Do free up the affected port and try to start the Fisheye/Crucible instance again. If it fails, then submit a Support Ticket with the log files for further investigation.