Simplest Enterprise Continuous Integration Solutions

Sunday, June 3, 2012

JIRA upgrade: JIRA 4.4.4 to JIRA 5.0.6

Upgrade JIRA 4.4.4 (32bit) to 5.0.6 steps:


1. Backup JIRA 4.4.4 installation

Administration -> System -> Import & Export -> Backup System -> Backup JIRA data
[jira@linux64-jira-server ~]$  id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
# Backup /opt/atlassian for JIRA 4.4.4 32bit installation
[jira@linux64-jira-server ~]$ cp -rfp /opt/atlassian /opt/backup_atlassian_4.4.4


2. Upgrade to JIRA 5.0.6

[jira@linux64-jira-server ~]$ chmod a+x /tmp/atlassian-jira-5.0.6-x32.bin
[jira@linux64-jira-server ~]$ /tmp/atlassian-jira-5.0.6-x32.bin
Unpacking JRE ...
Starting Installer ...
This will install JIRA 5.0.6 on your computer.
OK [o, Enter], Cancel [c]
o
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2], Upgrade an existing JIRA installation [3, Enter]
3
Existing installation directory:
[/opt/atlassian/jira]
Back Up JIRA Home Directory
The upgrade process will automatically back up your JIRA Installation
Directory. You can also choose to back up your existing JIRA Home Directory.
Both directories are backed up as zip archive files in their respective
parent directory locations.
We strongly recommend choosing this option in the unlikely event that you
experience problems with the upgrade and may require these backups to
restore your existing JIRA installation.
If you have many attachments in your JIRA Home Directory, the zip archive of
this directory may consume a significant amount of disk space.
Back up JIRA home directory?
Yes [y, Enter], No [n]
y
Checking for local modifications.
List of modifications made within JIRA directories.
The following provides a list of file modifications within the
atlassian-jira directory.
Modified files:
        atlassian-jira/WEB-INF/classes/templates/email/subject/issuecommentedited.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issuecommented.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueresolved.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issuedeleted.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issuereopened.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueclosed.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueworklogdeleted.vm
        atlassian-jira/WEB-INF/classes/templates/jira/issue/field/description-edit.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueworkstopped.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueupdated.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issuecreated.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueworklogupdated.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueworkstarted.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueworklogged.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issuegenericevent.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issueassigned.vm
        atlassian-jira/WEB-INF/classes/templates/email/subject/issuemoved.vm
Removed files:
        (none)
[Enter]
Added files:
        atlassian-jira/images/hello.html
        atlassian-jira/WEB-INF/classes/subversion-jira-plugin.properties
        atlassian-jira/WEB-INF/lib/atlassian-jira-subversion-plugin-0.10.7.jar
[Enter]
        atlassian-jira/WEB-INF/lib/trilead-ssh2-build213-svnkit-1.3-patch.jar
        atlassian-jira/WEB-INF/lib/svnkit-1.3.3.jar
[Enter]
Checking if your instance of JIRA is running
Upgrade Check List
Back up your external database
We strongly recommend you back up your JIRA database if you have not already
done so.
Please refer to the following URL for back up guidelines:
http://docs.atlassian.com/jira/docs-050/Backing-Up-Data
Check plugin compatibility
Check that your non-bundled plugins are compatible with JIRA 5.0.6.
Access the plugin manager through the following URL:
http://localhost:8080/plugins/servlet/upm#compatibility
For more information see our documentation at the following URL:
http://docs.atlassian.com/jira/docs-050/Upgrading+JIRA#UpgradingJIRA-upgradechecklist
Please ensure you have read the above checklist before upgrading.
Your existing JIRA installation is about to be upgraded!
The upgrade process will shut down your existing JIRA installation to complete the upgrade.
Do you want to proceed?
Upgrade [u, Enter], Exit [e]
u
Your instance of JIRA is currently being upgraded.
Shutting down JIRA...
Checking if JIRA has been shutdown...
Backing up the JIRA installation directory
Backing up the JIRA home directory
Deleting the previous JIRA installation directory...
Extracting files ...
Please wait a few moments while JIRA starts up.
Launching JIRA ...
Installation of JIRA 5.0.6 is complete
Your installation of JIRA 5.0.6 is now ready and can be accessed via your
browser.
Custom modifications
Your previous JIRA installation contains customisations that must be
manually transferred. Refer to our documentation more information:
http://docs.atlassian.com/jira/docs-050/Upgrading+JIRA#UpgradingJIRA-custommodifications
JIRA 5.0.6 can be accessed at http://localhost:8080
JIRA 5.0.6 may take several minutes to load on first start up.
Finishing installation ...


3. Sync with previous modified files

[jira@linux64-jira-server ~]$ cd /opt/atlassian/jira
[jira@linux64-jira-server ~]$ cd atlassian-jira/WEB-INF/classes/templates/jira/issue/field/
[jira@linux64-jira-server ~]$ mv description-edit.vm org_bk_description-edit.vm
[jira@linux64-jira-server ~]$ cp /opt/backup_atlassian_4.4.4/jira/atlassian-jira/WEB-INF/classes/templates/jira/issue/field/description-edit.vm .
[jira@linux64-jira-server ~]$ cd /opt/atlassian/jira
[jira@linux64-jira-server ~]$ cd atlassian-jira/WEB-INF/classes/templates/email
[jira@linux64-jira-server ~]$ mv subject org_bk_subject
[jira@linux64-jira-server ~]$ cp -rp /opt/backup_atlassian_4.4.4/jira/atlassian-jira/WEB-INF/classes/templates/email/subject .


4. Start JIRA 5.0.6

[jira@linux64-jira-server ~]$ service jira stop
[jira@linux64-jira-server ~]$ service jira start


5. Update JIRA plugins through JIRA web

update JIRA suite utilities
enable behaviour
re install subversion

No comments:

Post a Comment