Skip to content

How to Update your AVideo Platform

Daniel Neto edited this page Oct 10, 2024 · 13 revisions

Updating AVideo: Streamer and Encoder

To maintain optimal performance and security, it is crucial to keep the Streamer and Encoder components of AVideo up-to-date. Here are detailed instructions for updating your AVideo installation using the most reliable methods.

1. Using Git Pull (Recommended)

Why Git Pull is the Best Method

  • Safety and Consistency: Git pull ensures that your local files are synchronized with the latest version from the repository, avoiding conflicts that often arise with manual file transfers.
  • Efficiency: Updates through Git are handled automatically, reducing the likelihood of errors and saving time.
  • Transparency: Git provides clear records of changes, allowing easy tracking and management of updates.

How to Update Using Git

Update the Streamer

To update the Streamer, navigate to its directory and execute the following commands:

cd /var/www/html/AVideo/
sudo git pull

Update the Encoder

For the Encoder, use the same approach:

cd /var/www/html/AVideo/Encoder
sudo git pull

Resolving Update Conflicts

If you encounter errors during the git pull, you can reset your local copy to match the repository exactly:

sudo git fetch --all
sudo git reset --hard origin/master

Important: Update the Database

Don’t forget to update the database after updating the software. Go to AVideo menu -> Update version and run the script update for each version sequentially.

2. Manual Download and Upload (Not Recommended)

While it is possible to manually download and upload files to update AVideo, this method is not recommended due to several potential issues:

  • Risk of Errors: Manual updates are prone to mistakes such as incorrectly copying files, which can disrupt your system.
  • Time Consuming: This process requires more time and effort compared to automated methods.
  • Potential Conflicts: Manually replacing files can lead to conflicts and inconsistencies, especially if some files are missed or improperly overwritten.

If you must update manually, ensure you handle files carefully and backup your current installation before proceeding:

  1. Download: Obtain the latest version from GitHub: Download AVideo
  2. Upload: Use an FTP or SSH method to upload and replace files on your server.

3. Update Plugins

Regularly check and update any plugins you are using with AVideo.

Check for Plugin Updates

Access the plugin management section within AVideo to see if updates are necessary:

  • Download the latest versions from the AVideo Marketplace.
  • Follow the instructions to install or update the plugins.

Run Plugin Tables

Always execute the install tables for plugins, even for those not currently active, to ensure compatibility and readiness.

Rollback Options

If an update causes issues, consider these rollback options:

Option 1: Adjust the Database Version

Directly modify the version in your database to allow re-running update scripts:

mysql -u root -p youPHPTube
UPDATE configurations SET version = '6.5' WHERE id = 1;

Option 2: Manually Run Update Scripts

Navigate to the update directory and execute the required SQL script:

cd /var/www/html/AVideo/updatedb/
mysql -u root -p youPHPTube < updateDb.v6.5.sql

Conclusion

For maintaining your AVideo installation, using Git for updates is highly recommended over manual methods to ensure a stable, secure, and efficient update process. Always keep your database updated following software updates and manage plugins carefully to maintain system integrity and functionality.

Clone this wiki locally