Upgrade OpenVidu Single Node#
OpenVidu offers an updater that allows you to upgrade your OpenVidu deployment in an easy and automated way. The updater will take care of the whole process, from stopping the services to updating the configuration files.
Upgrading OpenVidu Single Node#
Upgrade OpenVidu Single Node is very simple. These are the steps you need to follow:
- SSH into your OpenVidu Single Node server.
-
Execute the following command:
-
This will execute an update script which will guide you from the version you have installed to the latest one. The first thing you will see in the output is the following:
Stopping OpenVidu service... Backing up files... - Backing up file '/opt/openvidu/config' to '/opt/openvidu/backups/<DATE>_<VERSION>/config' ... More files ... -------------------- 📦 Backup directory: /opt/openvidu/backups/<DATE>_<VERSION>/ -------------------- -------------------- 🚀 Updating OpenVidu from 3.x.x to 3.y.y -------------------- ? Do you want to update from 3.x.x to 3.y.y? › • Yes No
-
Answer
Yes
to the question and your OpenVidu Single Node will be upgraded to asked version. For each version the system will ask you to confirm the upgrade. - Once the upgrade is finished, it will ask you to pull the images of the services. Answer
Yes
if you want to do it. - Start OpenVidu with the following command:
The journalctl
command will show you the logs of the OpenVidu services. You can stop the logs by pressing Ctrl + C
.
Backups and Rollback#
When you finish the upgrade process, you will have a backup of the previous version in the /opt/openvidu/backups
directory. To backup to an specific date and version, you can execute the following command:
Where <DATE>
and <VERSION>
are the date and version of the backup you want to restore. For example:
In the previous command, you have to replace the date and version with the one you want to restore.
Recommendations#
- On any upgrade problem, a redeployment is always recommended for a clean installation.
- Keep your Docker and Docker Compose versions updated.
-
Remove non-used images and containers to free up disk space. For example, after the upgrade, when OpenVidu is running, you can remove the old images with the following command:
This command will remove all the images that are not being used by any container.