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.
Open Command Prompt as Administrator and run the following command to identify the process using port 80. Replace
80with the corresponding port number if you configured a different one.netstat -ano | findstr :80Note: the PID (Process ID) in the last column of the output.
If the process is unnecessary, terminate it. Replace
with the PID returned by the previous command. taskkill /PID <process_id> /FAfter running this command, you will need to restart the CubeBackup service and verify that the web console is now running correctly:
"C:\Program Files\CubeBackup365\bin\cbsrv.exe" restart "C:\Program Files\CubeBackup365\bin\cbsrv.exe" status
Run the following command to identify the process using port 80. Replace
80with the corresponding port number if you configured a different one.sudo lsof -i :80If the process is unnecessary, terminate it. Replace
<process_id>with the process ID returned by the previous command:sudo kill <process_id>Restart the CubeBackup service and check its status:
sudo /opt/cubebackup365/bin/cbsrv restart sudo /opt/cubebackup365/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.
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\CubeBackup365.
On Linux, the default installation directory is located at /opt/cubebackup365.In the
[Web]section, locate theBindsetting and change its value. Keep the colon (:) before the port number.For example, to use port 8080:
[Web] Bind = ":8080"Save the changes and restart the CubeBackup service to apply the new settings.
Please run this command.
sudo /opt/cubebackup365/bin/cbsrv restartOpen a Command Prompt as Administrator, and run this command.
"C:\Program Files\CubeBackup365\bin\cbsrv.exe" restartOpen the Windows PowerShell as Administrator, and run this command.
& "C:\Program Files\CubeBackup365\bin\cbsrv.exe" restartPlease run this command to restart the container.
sudo docker restart <container-name>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.