Although you can update to the latest version of SVN MultiSite Plus by completing a fresh installation (using the installation guide), you would need to recreate your configuration in terms of node, repository and replication group settings. This upgrade procedure offers a method for upgrading while keeping your established setup.
There are a number of different upgrade procedures, you need to make sure that you use the one that matches your current installed version of SVN MultiSite Plus.
If you are upgrading from
/opt/wandisco/svn-multisite-plus/VERSION
In the unlikely even that the upgrade leaves you in a state where you need to return to your orginal setup, see the Roll-back procedure at the end of this document
chmod a+x svn-multisite-plus.sh
Verifying archive integrity... All good. Uncompressing WANdisco SVN MultiSite Plus........................ Running in non-interactive mode, installing with user 'wandisco' and group 'wandisco'. Output will be logged to the daemon.info syslog facility SVN MultiSite Plus Pre-Upgrade Backup Script Please enter the username of an administrative user:As SVN MultiSite Plus is already installed and running, the installer has determined that you wish to perform an upgrade instead of an initial installation.
Please enter password for the 'admin' administrative user:
This process must be run on ALL nodes individually, in sequence. NOT AT THE SAME TIME If this is the first node we will use this node to co-ordinate the upgrade. Is this the first node? y/N: [N] > yAs this is the first upgrade, enter "y".
Initiating synchronised stop... Node has achieved synchronised stop Initiating database dump... Database dump complete Stopping ui:. [ OK ] Stopping replicator:. [ OK ] Performing backup... Backup has been stored in /opt/wandisco/svn-multisite-plus/var/backups Backup process logged at /opt/wandisco/svn-multisite-plus/logs/backup.log
When updating to a version of SVN MultiSite Plus that contains a serialisation change, you will need to perform an additional transform step to modify the backup data before it's reimported using the restore procedure.
cd /opt/wandisco/svn-multisite-plus/var/backups/ tar -xvf backup-NodeParis-20140123-154117.tar.gzOnce extracted (in situ) you will have the backup file available to transform. The file would be located here:
/opt/wandisco/svn-multisite-plus/var/backups/replicator/database/backup/
/opt/wandisco/svn-multisite-plus/replicator/transformer-tool.jarYou run it with the following command.
java -jar transformer-tool.jar <PATH TO BACKUP>Note that the path to the backup is the path to the extracted backup file, e.g.
/opt/wandisco/svn-multisite-plus/var/backups/replicator/database/backup/20140114.154112.933_DConE_Backup
svn-ms-replicator-fsfsrestore.jar -c AppPropertiesFile -r <PATH TO BACKUP>
Now repeat the process for each of your other nodes in turn.
"Unable to determine application version numbers, curl returned 60", Issue NV-2273.
alias curl='curl -f -u $USERNAME:$PASSWORD'to
alias curl='curl -f -k -u $USERNAME:$PASSWORD'This will work around the problem. The problem will be fixed in the next release.
chmod a+x svn-multisite-plus.sh
./svn-multisite-plus.sh Verifying archive integrity... All good. Uncompressing WANdisco SVN MultiSite Plus............. :: :: :: # # ## #### ###### # ##### ##### ##### :::: :::: ::: # # # # ## ## # # # # # # # # # ::::::::::: ::: # # # # # # # # # # # # # # ::::::::::::: ::: # # # # # # # # # # # ##### # # # ::::::::::: ::: # # # # # # # # # # # # # # # :::: :::: ::: ## ## # ## # # # # # # # # # # # :: :: :: # # ## # # # ###### # ##### ##### ##### Checking SVN SVN version 1.7.9-2 is already installed, will not install SVN Beginning WANdisco SVN MultiSite Plus Installation... Attempting to run backup on existing install of SVN MultiSite Plus...As SVN MultiSite Plus is already installed and running, the installer will determine that you wish to perform an upgrade instead of an initial installation:
SVN MultiSite Plus Pre-Upgrade Backup Script Please enter password for the 'admin' administrative user:Enter the SVN MultiSite Plus admin credentials:
Initiating synchronised stop... Node has achieved synchronised stop Initiating database dump... Database dump complete Stopping ui:. [ OK ] Stopping replicator:. [ OK ] Performing backup... Backup has been stored in /opt/wandisco/svn-multisite-plus/var/backups Starting ui:[ OK ] Starting replicator:[ OK ]So the installer brings your nodes to a stop, then backs up the application data (repository data is not touched).
Apply this section to all sites before you continue to the upgrade:
Same version must run on all sites
You should complete the upgrade on all your sites before restarting replication.
As with your initial deployment, ensure that all software is running at the same version on all sites. Running with different software versions may result in sites behaving slightly differently which could result in loss of sync between Subversion repository replicas.
curl --user <username>:<password> -X POST http://[node_ip_address]:8082/dcone/backupe.g.
curl --user admin:password -X POST http://172.16.2.41:8082/dcone/backup cd /opt/wandisco/svn-multisite-plus/replicator/database/
After running the backup, verify and make a note of the name of the backup file for later -you will need to reference it during the upgrade. Backups are stored here:
[Install-Directory]/svn-multisite-plus/replicator/database/backup
The backup subdirectory is created the first time you run a backup. Each time you run a backup a corresponding date-time stamped subdirectory is created in the backup directory. A typical backup will have the following file structure.
drwxr-xr-x 3 root root 4096 Jul 24 10:53 application drwxr-xr-x 3 root root 4096 Jul 25 10:33 backup <- backup folder created when backup is first run drwxr-xr-x 4 root root 4096 Jul 25 10:33 20130713.103306.674_DConE_Backup <- per-backup folder drwxr-xr-x 2 root root 4096 Jul 25 10:33 instance -rw-r--r-- 1 root root 9900 Jul 25 10:33 application_resettable.db-backup.xml -rw-r--r-- 1 root root 226838 Jul 25 10:33 DConE.application.db-backup.xml -rw-r--r-- 1 root root 84107 Jul 25 10:33 recovery_application.integration.db-backup.xml -rw-r--r-- 1 root root 222815 Jul 25 10:33 recovery_DConE.system.db-backup.xml -rw-r--r-- 1 root root 31341 Jul 25 10:33 recovery_DConE.topology.db-backup.xml drwxr-xr-x 7 root root 4096 Jul 25 10:33 subsystem drwxr-xr-x 2 root root 4096 Jul 25 10:33 application_resettable.db drwxr-xr-x 2 root root 4096 Jul 25 10:33 DConE.application.db drwxr-xr-x 2 root root 4096 Jul 25 10:33 recovery_application.integration.db drwxr-xr-x 2 root root 4096 Jul 25 10:33 recovery_DConE.system.db drwxr-xr-x 2 root root 4096 Jul 25 10:33 recovery_DConE.topology.db drwxr-xr-x 2 root root 4096 Jul 25 10:23 DConE.application.db drwxr-xr-x 5 root root 4096 Jul 24 10:57 recovery
Read-only
Shutting down MultiSite will make all of its replicated repositories read-only. Depending on how disruptive this will be, it may be wise to warn your local Subversion users and complete the process at a time when the outage will be least disruptive.
[Install-Directory]/svn-multisite-plus/bin/multisite_enterprise_shutdown.sh
Complete these steps on each node in turn:
./multisite-plus.shThis will kick off an installation which will first check to see if there is an existing installation, along with a database backup. Providing the above steps have been taken the process will look like this:
[root@localhost wandisco]# perl multisite-plus.sh Verifying archive integrity... All good. Uncompressing WANdisco MultiSite Plus........... , .. . . `''` . ..`'' ...` . :, ,;. :; ::, :: :: + +' '+ +++++++ ++++++, + ,' ; ; : ; + '` + ::::,:::: ::: +' ++ +;;+ ++ ++ '+ + : ; + ' . : ::::::::::: ::: ;+ '++ + +' `+ ++ + + + ; ' . + + ,:::::::::::: ::: + +.+;++ +, + ++ + + ; ; .++ : + ' ::::::::::: ::: +++ .++, +' `+ ++ + + + ; .`. + + ::::,:::: ::: .++ ++ '+ ++ ++ + + : ; ; ' , : ::, :: :: +. ++ +++++++ ++ + + .' ; + , `; ' + + , , `` .++` , ,, , ,,,. . `;: :', ;; Checking SVN SVN version 1.7.9-2 is already installed, will not install SVN Beginning WANdisco SVN MultiSite Plus Installation... Upgrade complete, you may now start up the Web UI and Replicator [root@localhost wandisco]#
When all nodes are upgraded, complete the following step on all sites:
[root@localhost init.d]# ./svn-multisite start
Follow this procedure if you nee to revert to your previous installation.
bash <installer> --noexec --target <target dir>the installer's payload lives in:
/opt/wandisco/svn-multisite-plus/resources/<installer-rpm>
rpm -e svn-multisite-plus
rpm -ivh <installer-rpm>
./svn-multisite-plus/bin/rollback
Copyright © 2010-2013 WANdisco plc.
All Rights Reserved
This product is protected by copyright and distributed under
licenses restricting copying, distribution and decompilation.
SVN MultiSite Plus
Last doc build: 17:59am - Tuesday 15th January 2014