How to upgrade Virtual Bugzilla Server from version 3.2.2 or earlier to version 3.4
Upgrade from VBS 3.2.2 to VBS 3.4 is not much different from other VBS upgrades. It boils down to:
- Installing a blank new VBS server;
- Extracting data and configuration from the old VBS server;
- Putting the data and configuration into the new VBS;
- Upgrading the data and checking the configuration.
Install VBS 3.4 into a separate folder
Do not overwrite old VBS!
Start old and new Bugzilla servers
Use VMWare Player or Workstation to open and start both old VBS and new VBS. When new VBS starts, write down its IP address, which is shown in Bugzilla URL. If needed, configure network on the new server.
Login to the VBS 3.2.2 using 'bugzilla' account
Use console, shown in the VMWare window, or a SSH client. The password is 'bugzilla', unless it has been changed.
Make sure old VBS is not accessible
If the old VBS is accessible while you are migrating data from it, someone may make changes which will be lost or will get in the way.
The easiest way is to stop Apache web server:
su - root -c "apache2 -k stop"
when asked for a password, type 'root'Back up MySQL database
Database dump contains all user data from Bugzilla. To create it, use mysqldump utility:
mysqldump -uroot --add-drop-table --disable-keys bugs >/tmp/bugs.sqlCreate backup of local Bugzilla configuration
Use the following commands:
cd /home/bugzilla
tar cf /tmp/bugzilla-data.tar --exclude=data/template localconfig dataCreate backup of your custom config files
If you have customized Virtual Bugzilla Server somehow, create a tar archive with your custom configuration files. You will then unpack and apply them on the new server.
Transfer backup files to the new VBS
Use command:
cd /tmp
scp *.sql *.tar bugzilla@ IP_address_of_the_new_VBS:/tmpWhen asked about authenticity, enter yes.
When asked for password, enter bugzilla — the default password for bugzilla account on the new VBS.Login to the new VBS
Use root account with default password being root as well. You can login on console or use SSH client.
Verify that backup files have been transferred
cd /tmp
ls -l *.sql *.tarDrop and create mysql database
mysql -e 'drop database bugs'
mysql -e 'create database bugs character set utf8'Import data into mysql database
Command: mysql bugs <bugs.sql
Unpack bugzilla configuration files
su - bugzilla
tar xf /tmp/bugzilla-data.tarIt's probable that you will see warnings about time stamps — ignore them.
(Optionally) Edit localconfig
You probably need to change database access parameters in localconfig file: db_name, db_user and db_pass.
Use joe localconfig to launch file editor and make arbitrary changes.
Run checksetup.pl
Run checksetup.pl, the Bugzilla's installation and upgrade uberscript.
./checksetup.plChange urlbase parameter
At last, you need to change the urlbase parameter in data/params file.
If your old VBS is still using numerical URL (with IP address), you can try this:
logout (going back from "bugzilla" to "root" account)
/vbs/update-bugzilla-urlbase.shOtherwise, edit data/params manually.
Move other configuration files that you have changed on the old VBS
Other configuration files, like Apache and MySQL setup may be moved in the same way.
Done!
This is it. If there were no errors during the upgrade, you should now be able to access new Bugzilla with your old data and settings.
A few things to do after the upgrade
- Check that e-mail sending works. If necessary, tweak Bugzilla configuration;
- Back up your new VBS;
- Do not delete your old VBS! That's your latest backup at this moment.
If something went wrong
- Try once more from scratch;
- Ask for help at our community forums;
- Consider commercial support options (by Everything Solved, Inc).

