How to change the bind port and resolve a port conflict for the CubeBackup web console


The CubeBackup web console may fail to start if its configured port (e.g. port 80 by default), is occupied by another service. You can resolve this issue by either stopping the process that is using port 80 or assigning a different port to the CubeBackup web console.

Option 1. Free the configured port

Before stopping a process or service, verify that it is no longer needed.

  1. Open Command Prompt as Administrator and run the following command to identify the process using port 80. Replace 80 with the corresponding port number if you configured a different one.

    netstat -ano | findstr :80

    Note: the PID (Process ID) in the last column of the output.

  2. If the process is unnecessary, terminate it. Replace with the PID returned by the previous command.

    taskkill /PID <process_id> /F
  3. After running this command, you will need to restart the CubeBackup service and verify that the web console is now running correctly:

    "C:\Program Files\CubeBackup4\bin\cbsrv.exe" restart
    "C:\Program Files\CubeBackup4\bin\cbsrv.exe" status
  1. Run the following command to identify the process using port 80. Replace 80 with the corresponding port number if you configured a different one.

    sudo lsof -i :80
  2. If the process is unnecessary, terminate it. Replace <process_id> with the process ID returned by the previous command:

    sudo kill <process_id>
  3. Restart the CubeBackup service and check its status:

    sudo /opt/cubebackup/bin/cbsrv restart
    sudo /opt/cubebackup/bin/cbsrv status

Option 2. Change the CubeBackup web console port

If you need to keep the other service running on port 80, assign a different port, such as 8080, to the CubeBackup web console.

  1. Open the configuration file <installation directory>\etc\config.toml on the backup server using a text editor.

    On Windows, the default installation directory is located at C:\Program Files\CubeBackup4.
    On Linux, the default installation directory is located at /opt/cubebackup.

  2. In the [Web] section, locate the Bind setting and change its value. Keep the colon (:) before the port number.

    For example, to use port 8080:

    [Web]
    Bind = ":8080"
  3. Save the changes and restart the CubeBackup service to apply the new settings.

    Please run this command.

    sudo /opt/cubebackup/bin/cbsrv restart

    Open a Command Prompt as Administrator, and run this command.

    "C:\Program Files\CubeBackup4\bin\cbsrv.exe" restart

    Open the Windows PowerShell as Administrator, and run this command.

    & "C:\Program Files\CubeBackup4\bin\cbsrv.exe" restart

    Please run this command to restart the container.

    sudo docker restart <container-name>

  4. Open the CubeBackup web console using the new port (e.g. http://<server_ip>:8080). If the web console still does not start, contact [email protected] for assistance.