Warning |
---|
This page is still in progress |
See What's New in Avalon 5.0 for more details.
Preparing for the Upgrade
Before doing anything to prepare for the upgrade, backup your Avalon 4.0 installation.See
Instructions
The following instructions will work for any Avalon 4.0 installation that used Puppet as its source. This includes the portable VM Image Installation, the /wiki/spaces/AVALON/pages/1957954303, and the Manual Puppet Install.
Upgrading is fairly simple, and must be run as the root user from a bash prompt on the Avalon system. The process for this depends on which kind of installation you have.
Portable VM image:
- Open a terminal window from within the VM console, and type
su root
to become the root user. This will require the root password you provided the first time the system was booted. - Vagrant virtual machine:
From within the original installer directory (from step 4 of the /wiki/spaces/AVALON/pages
...
- /1957954303), type
vagrant ssh
to log in as the vagrant user, then typesudo -i
to become the root user. - Manual Puppet installed machine:
Log in and become root as you did in steps 1 and 2 of the Manual Puppet Install instructions.
Once you have a root prompt, proceed with the upgrade as follows:
Code Block | ||||
---|---|---|---|---|
| ||||
# 1. if starting from Portable VM image, download the installer package, unpack, and link it
$ wget http://www.avalonmediasystem.org/downloads/avalon-installer-flat.tar.gz -O flat.tar.gz
$ tar xzf flat.tar.gz
$ export INSTALL_DIR=`pwd`
$ ln -s $INSTALL_DIR/avalon-installer-flat/files /etc/puppet/avalon_files
# 2. navigate to the installer
$ cd avalon-installer-flat
# 3. remove the Avalon deploy tag
$ rm -f /var/www/avalon/bare-deploy
$ rm -rf /opt/staging/avalon/avalon-bare-deploy.tar.gz /opt/staging/avalon/avalon-bare-deploy
# 4. pin mysql to version in new Gemfile.local
$ cp modules/avalon/files/shared/Gemfile.local /var/www/avalon/shared/Gemfile.local
# 5. apply the puppet manifest
$ puppet apply --fileserverconfig=fileserver.conf --modulepath=modules \
--hiera_config=hiera/hiera.yaml --templatedir=templates manifests/init.pp
# 6. reindex
$ su - avalon -c "cd /var/www/avalon/current; RAILS_ENV='production' bundle exec rake avalon:reindex" |
Restart Delayed Job
See details here: /wiki/spaces/AVALON/pages/1957953633
Sample Content
If you didn't load the sample content before, /wiki/spaces/AVALON/pages/1957954522 to test your avalon 45.0 upgrade.