Server could not be started: port already in use

You can translate the document:

Content

This kind of error message means that an application is using a port where the Denodo Platform needs to launch some of its components. (e.g the Virtual DataPort Server needs ports 9995, 9997, 9998 and 9999 available at startup).

For instance, if VDP is configured as a service to start automatically it will be running when the machine boots. By opening the Denodo Platform Control Center and clicking the “Start” button for the VDP Server, the Denodo Platform Control Center will try to startup VDP Server but all the ports will be busy (due to VDP already being started as a service), and the error message “Server could not be started: port already in use” will be logged to the following log file: <DENODO_HOME>/logs/vdp/vdp.log.

When getting this error the following steps can be followed to solve the problem (try to start Denodo services after each step, if the error persists, go to the next step):

  1. Stop all Denodo Servers using the Denodo Platform Control Center. It is possible to have installed more than one version of the Denodo Platform on one host and all of them need to be stopped.
  2. Check if any Denodo process is running as a service and stop them.
  3. Check that no java processes are running associated with a path where the Denodo Platform is installed.
  4. Check if any other application on the computer is using a Denodo reserved port. (e.g 9995, 9997, 9998 and 9999 for VDP). To identify if there are processes blocking the Virtual DataPort Server, you could execute the below commands from a command prompt:

  1. Windows systems:

With this command, all connections and ports are displayed, along with the process identifiers (PID) associated with each connection filtering by the specific port number and the lines indicating that the port is in LISTENING mode.

netstat -ano | findstr <port> | findstr LISTENING

With this command we will get the information about the process filtering by the process id that we obtained with the previous command.

tasklist /V /FI "PID eq <Process>"

  1. Linux systems:

This command is used to list all open files and the processes that have opened them, focusing specifically on network connections (-i), displaying port numbers numerically (-P), and preventing conversion of network numbers to host names (-n). The output is then filtered to show only the lines containing the specified port number. Note that the user executing the command should have the necessary permissions to view the processes.

lsof -i -P -n | grep <port>

For the full list of ports that need to be available you can check the linked references.

References

Default Ports Used by the Denodo Platform Modules

Server Connectivity

Default Ports Used by the Solution Manager Modules

Disclaimer

The information provided in the Denodo Knowledge Base is intended to assist our users in advanced uses of Denodo. Please note that the results from the application of processes and configurations detailed in these documents may vary depending on your specific environment. Use them at your own discretion.

For an official guide of supported features, please refer to the User Manuals. For questions on critical systems or complex environments we recommend you to contact your Denodo Customer Success Manager.
Recommendation

Recommended resources Recommendations generated by AI

Address already in use: JVM_Bind

Ports needed by the VDP Server

How to start the Denodo Windows Services without Administrator privileges

How to monitor the number of times a VDP server is restarted

Start the Denodo Platform servers

Questions

Ask a question

You must sign in to ask a question. If you do not have an account, you can register here