This page is a work in progress and is not usable yet.
See the Avalon 6.5 Release Notes for more information.
Requirements
Avalon 6.5 and above requires Ruby 2.4 or newer. If you're using RVM, simply run
rvm list # Get current ruby version, eg 2.2.1 rvm upgrade 2.2.1 2.4.6 # Installs Ruby 2.4.6 and migrate gemsets, wrappers, aliases and environment files
Upgrade Steps
For Manual Installations
Download and deploy new code from the avalon repository.
Upgrade to bundler 2, update gems, and DB
gem install bundler bundle install RAILS_ENV=production bundle exec rake db:migrate
Install yarn and update JS dependencies
yum install yarn yarn install
Restart passenger (if using)
passenger-config restart-app
Restart Resque (background jobs processor)
pkill -f resque RAILS_ENV=production BACKGROUND=yes bundle exec rake resque:scheduler RAILS_ENV=production BACKGROUND=yes QUEUE=* bundle exec rake resque:work
Upgrade ffmpeg
Download a prebuild ffmpeg from https://johnvansickle.com/ffmpeg/ or use https://github.com/jrottenberg/ffmpeg to build ffmpeg and then copy it to your machine.
Remove HLS distribution step from Matterhorn and update encoding profiles
#TODO
Setup nginx streaming (if necessary)
See Manual Installation Instructions - Media Streaming Server to setup nginx streaming if you had been previously depending on the rails server to serve the HLS content.
Run waveform backfill script
This script will kick off many background jobs to generate waveform data for existing content for use with the new structural metadata editor. (New content will have waveforms generated as part of the ingest process.) If you have a lot of files ingested into Avalon the background jobs may take a very long time to run. See Waveform Backfill Script for more information.
bundle exec rails r script/waveform_backfill.rb
For Docker Installations
Update new code from avalon-docker
git checkout master git pull
Rebuild and replace Avalon container.
docker-compose build --no-cache avalon docker-compose stop avalon docker-compose up avalon