Upgrading OpenVidu Pro
Migrating from 2.12.0 to 2.13.0 🔗
Unfortunately upgrading OpenVidu Pro to 2.13.0 from any past version will require you to completely wipe out your past version, as the installation procedure has completely changed to a Docker deployment. Good news is that from this point in time, upgrading or downgrading versions will be extremely quick and easy!
The only thing to take into account is the data you may want to keep when upgrading to 2.13.0: recordings and Elasticsearch data.
Backup recordings 🔗
Only if you have used the recording feature you may want to keep your old recorded files available in your new deployment. This is as straightforward as copying the entire recording folder before wiping out your old server (2.12.0 config property
openvidu.recording.path, by default
/opt/openvidu/recordings). After successfully installing 2.13.0, simply paste this same folder at the recording path of your new installation. All of your recordings will be immediately available in the new version.
Backup Elasticsearch data 🔗
If you want to keep your Elasticsearch data, then you have to copy the Elasticsearch database from your old deployment to your new 2.13.0 deployment. Of course you have to do so before wiping out your old OpenVidu Server Pro instance. The following steps indicate how to automate all of this process with some simple commands:
1) Copy existing Elasticsearch data from your old 2.12.0 Openvidu Server Pro Node to your new 2.13.0 OpenVidu Server Pro Node 🔗
First compress the Elasticsearch database in your old OpenVidu Server Pro Node and then download the file. You can do it like this (a standard ubuntu installation of Elasticsearch is presumed at
/var/lib/elasticsearch. This path is the default one for 2.12.0 OpenVidu deployments on AWS and is also the default path where Elasticsearch stores its data in Linux systems).
ssh -i SSH_KEY ubuntu@OLD_OPENVIDU_PRO_IP "sudo tar zcvfP /tmp/elasticsearch.tar.gz -C /var/lib/elasticsearch nodes" scp -i SSH_KEY ubuntu@OLD_OPENVIDU_PRO_IP:/tmp/elasticsearch.tar.gz elasticsearch.tar.gz
We have zipped the old Elasticsearch data and downloaded to our computer. Now we will upload it to the new Openvidu Pro Instance:
scp -i SSH_KEY elasticsearch.tar.gz ubuntu@NEW_OPENVIDU_PRO_IP:/tmp/elasticsearch.tar.gz
2) Unzip Elasticsearch data in your new 2.13.0 OpenVidu Server Pro Node and restart services 🔗
Connect to your 2.13.0 Openvidu Server Pro instance through SSH:
ssh -i SSH_KEY ubuntu@NEW_OPENVIDU_PRO_IP
Stop OpenVidu Pro services (this assumes OpenVidu Pro is installed at the default recommended path
cd /opt/openvidu ./openvidu stop
Unzip the data from the old database into the appropriate path:
rm -rf elasticsearch/* tar -zxvf /tmp/elasticsearch.tar.gz -C elasticsearch chown -R 1000:1000 elasticsearch rm /tmp/elasticsearch.tar.gz
Restart all services and you will have your Elasticsearch data available in your brand new OpenVidu Pro 2.13.0!
NOTE: Remember to update openvidu-browser library in your clients. Comply version compatibility according to Releases