Updates and Upgrades
Set aside time to test after upgrading. Do not run updates immediately before you need the software. A valid license is required to install updates.
Backup First
Backup your current data path (for example /var/lib/vidredi).
The upgrade process takes precautions to prevent data loss, but keep backups of the data partition (/var/lib/vidredi). This contains everything needed to run VidRedi.
During an upgrade, the new version is installed to /opt/vidredi/current. A backup is made of the previously running software (/opt/vidredi/current.backup). Data is not backed up during upgrades. A snapshot of the current database (db.sqlite) is made before the upgrade runs and can be restored if needed. Contact support if there are issues upgrading.
Minor Upgrades
Minor upgrades only update the core VidRedi software. Use Configuration → Updates.
- Confirm the update channel on Configuration → System (
stable,rc,beta, oralpha). Keep production machines on stable. - Check for updates.
- Download and install when a release is available.
- Wait for the server to restart. The page reloads when the service is back.
See Configuration.
Full Upgrades
Full upgrades can upgrade operating-system packages, core configurations (such as Nginx), and helper tools. Some software versions require a full upgrade. When that is the case, there is a notice when you try to update inside the software.
sudo /opt/vidredi/current/scripts/install.sh --full-upgrade
The installer never runs a blanket apt-get upgrade of the whole operating system. Keep Debian itself updated separately.
Useful flags:
--yes— accept defaults and skip prompts (safe for a re-run)--from STEP— resume at a named step after a failure--verbose— stream command output to the console as well as the log--offline— install from the local release tree instead of downloading--data-path PATH— store packages, the database, and config here instead of/var/lib/vidredi--clean-cache— delete cached downloads under/var/lib/vidredi/cache(or your data path'scache/folder). Used alone, this only clears the cache. Combined with--full-upgradeor--offline, it clears the cache and then continues.--reinstall-gst— force reinstall of the GStreamer support package--regenerate-ssl— replace the current HTTPS certificate with a new self-signed certificate. Omit this flag to keep the certificate already in use, including a custom one
Release archives and side packages are stored in the cache folder and reused when the file's hash still matches.
Keep the operating system and firmware up to date, especially if the machine is exposed to the Internet.
HTTPS Certificate
A full upgrade rewrites the Nginx site configuration and keeps the certificate that site already uses. VidRedi creates a self-signed certificate only when the site does not name one yet. The generated files are:
/opt/vidredi/etc/nginx/ssl/vidredi.crt/opt/vidredi/etc/nginx/ssl/vidredi.key
To install your own certificate, replace those two files, or set ssl_certificate and ssl_certificate_key in the VidRedi site to your files. Other edits to the site file are replaced on the next full upgrade; these two paths are kept. Both files must exist. If the site names a certificate that is missing, the upgrade stops instead of creating a new one.
The certificate file is PEM. Include any intermediate certificates in that same file. The private key is PEM and must not have a passphrase. Install the certificate as root with mode 644, and the key as root with mode 600:
sudo install -m 644 -o root -g root fullchain.pem /opt/vidredi/etc/nginx/ssl/vidredi.crt
sudo install -m 600 -o root -g root privkey.pem /opt/vidredi/etc/nginx/ssl/vidredi.key
sudo nginx -t && sudo systemctl restart nginx
To replace the current certificate with a new self-signed one:
sudo /opt/vidredi/current/scripts/install.sh --full-upgrade --regenerate-ssl
Offline Upgrades
Occasionally, you may need to complete an offline upgrade where the installation package is downloaded to the server. These are considered advanced upgrades and typically are only recommended if advised to do so by VidRedi support.
- Download the full upgrade package to the server under your local account that has sudoer permissions.
- Extract the package:
tar -xvzf ./dvr-1.7.0.tar.gz - Complete the offline upgrade:
sudo ./dvr-1.7.0/scripts/install.sh --full-upgrade --offline
Upgrade Considerations
- Review release notes for any changes that could affect usage.
- Test in a non-production environment first, when possible, and leave ample time for testing.
- Ensure adequate disk space (at least 10 GB on the OS disk) for the upgrade process.
VidRedi can be installed on unlicensed hardware for testing. On unlicensed hardware, video playback and recording are disabled and updates are not allowed. Licenses can be deregistered and moved to different hardware from your account page on VidRedi.com.
If an upgrade fails, see Troubleshooting.