Jira upgrade from 5.1.5 to 6.2.5 issue

Hi Team,

I am upgarding our Jira 5.1.5 instance to 6.2.5. I am following the following process to upgrade Jira:

1) Created a seperate home and instlallation directory for New Jira.

2) Downloaded the 32 bin linux installer from Atlassian.

3) Ran the installer, installing Jira as a service and specified the new home directory and installation directory.

4) Backed up the attachments to the HOME/data/attachments in the new home directory.

5) Downloaded the compatible versions for all the plugins and put those in the new plugin directtory.

6) The list of new plugins in the directory:

-rw-r--r-- 1 root root 165K Oct 25 2013 jira-suite-utilities-1.4.9.jar

-rw-r--r-- 1 root root 26K Nov 21 2013 latest-activity-1.2.jar

-rw-r--r-- 1 root root 600K Feb 9 21:41 jira-calendar-plugin-2.1.7.jar

-rw-r--r-- 1 root root 93K Feb 9 21:50 jira-toolkit-0.35.9.jar

-rw-r--r-- 1 root root 183K Feb 9 22:12 jira-charting-plugin-1.23.jar

-rw-r--r-- 1 root root 483K Feb 24 21:12 jira-bamboo-plugin-7.1.4.jar

-rw-r--r-- 1 root root 961K May 12 05:20 jira-barchart-gadget-plugin-2.5.2.jar

-rw-r--r-- 1 root root 8.3M May 19 11:16 gantt-3.1.4-JIRA6.jar

-rw-r--r-- 1 root root 36K May 21 22:44 jiracomponentwatcher-2.3.4.jar

-rw-r--r-- 1 root root 1.1M May 31 11:08 workflow-toolbox-2.1.19.jar

-rw-r--r-- 1 root root 3.1M Jun 17 06:55 customware-jira-utilities-2.2.4.jar

-rw-r--r-- 1 root root 616K Jul 8 05:54 bobswift-create-on-transition-4.4.0.obr

-rw-r--r-- 1 root root 21K Jul 11 16:54 projectroletab-2.0.1.jar

-rw-r--r-- 1 root root 7.1M Jul 19 11:02 jira-misc-workflow-extensions-3.5.1.jar

-rw-r--r-- 1 root root 1.3M Jul 21 20:17 jira-fisheye-plugin-6.3.2.jar

-rw-r--r-- 1 root root 1.4M Jul 21 23:47 jira-ical-feed-1.1.1.obr

-rw-r--r-- 1 root root 1.4M Jul 22 04:43 emailissue-5.4.1.1.jar

-rw-r--r-- 1 root root 17M Jul 22 19:21 jira-greenhopper-plugin-6.4.3.jar

-rw-r--r-- 1 root root 212K Jul 23 04:51 jira-watcher-field-2.5.14.jar

-rw-r--r-- 1 root root 803K Jul 25 09:49 stp-3.5.20.obr

-rw-r--r-- 1 root root 2.8M Jul 28 17:04 jira-timesheet-plugin-2.8.0.2.jar

-rw-r--r-- 1 root root 4.6M Jul 29 17:42 atlassian-universal-plugin-manager-plugin-2.17.8.jar

-rw-r--r-- 1 root root 6.0M Aug 6 05:51 jira-importers-plugin-6.2.3.jar

7) The list of plugins in Jira 5.1.5

-rw-rw-r-- 1 jira 132 576K Sep 26 2012 plugin.2070191147248656559.jira-calendar-plugin-1.19.jar

-rw-rw-r-- 1 jira 132 19K Sep 26 2012 plugin.2306422552164958257.projectroletab-1.5.2.jar

-rw-rw-r-- 1 jira 132 182K Sep 26 2012 plugin.1209865845386639964.jira-charting-plugin-1.10.jar

-rw-rw-r-- 1 jira 132 25K Sep 26 2012 plugin_8623055619572999739_jira-watcher-field-2.5.5.jar

-rw-rw-r-- 1 jira 132 26K Sep 26 2012 plugin_6321226637642712532_jiracomponentwatcher-2.3.0.jar

-rw-rw-r-- 1 jira 132 1.4M Dec 5 2012 plugin_5963834882752447909_suggestimate-2.1.3.jar

-rw-rw-r-- 1 jira 132 153K Feb 6 2013 plugin.2563330728983768464.jira-barchart-gadget-plugin-2.4.jar

-rw-rw-r-- 1 jira 132 321K Feb 11 2013 plugin-license-storage-plugin-2.3.jar

-rw-rw-r-- 1 jira 132 230K Feb 11 2013 plugin.8360804608114235678.customware-jira-utilities-2.1.2.jar

-rw-rw-r-- 1 jira 132 1.4M Feb 18 2013 plugin.1593926840063758563.jira-ical-feed-1.0.12.jar

-rw-rw-r-- 1 jira 132 868K Feb 18 2013 plugin.5572949030596187975.jira-timesheet-plugin-2.3.12.jar

-rw-rw-r-- 1 jira 132 134K Feb 18 2013 plugin.157414026866381307.jira-suite-utilities-1.3.5.jar

-rw-rw-r-- 1 jira 132 37K Mar 26 2013 plugin_1596474015417415554_C:\Users\delwood\Downloads\latest-activity-1.1.jar

-rw-rw-r-- 1 jira 132 1.2M Mar 29 2013 plugin.880929428360461740.emailissue-5.2.4.1.jar

-rw-rw-r-- 1 jira 132 942K Mar 29 2013 plugin.8660322214042121653.workflow-toolbox-2.0.23.jar

-rw-rw-r-- 1 jira 132 1.6M Mar 29 2013 plugin.9038872576584360706.jira-fisheye-plugin-5.0.14.jar

-rw-r--r-- 1 jira 132 89K Mar 29 2013 jira-toolkit-0.34.3.jar

-rw-rw-r-- 1 jira 132 263K Apr 11 2013 plugin.3182124271083715269.jira-bamboo-plugin-5.1.6.jar

-rw-rw-r-- 1 jira 132 8.7M Apr 11 2013 plugin.7707338478370955486.jira-importers-plugin-5.0.3.jar

-rw-r--r-- 1 jira 132 284K Sep 17 2013 create-on-transition-plugin-3.4.0.jar

-rw-r--r-- 1 jira 132 2.4M Sep 17 2013 stp-3.5.6.jar

-rw-r--r-- 1 jira 132 283K Sep 19 2013 plugin.6746936888108843492.jiraauditor-1.2.0.jar

-rw-r--r-- 1 root root 17M Oct 9 2013 jira-greenhopper-plugin-6.3.2.2.jar

-rw-r--r-- 1 jira 132 3.6M Oct 22 2013 plugin.4226635719844912646.atlassian-universal-plugin-manager-plugin-2.13.3.jar

-rw-r--r-- 1 root root 7.1M Dec 19 2013 plugin.1118339666414184294.jira-misc-workflow-extensions-3.2.0.jar

-rw-r--r-- 1 root root 8.3M Apr 10 10:28 gantt-3.1.1-JIRA5.jar

7) I made the necessary changes to the below files:

server.xml

seraph-config.xml

and I copied the crowd.properties and crowd-ehcache.xml to the INSTALL/atlassian-jira/WEB-INF/classes/

8) I started Jira and the new instace came up.

9) Through setup wizard I provide the DB details and then I proceed with the XML import to restore the Jira xml backup taken.

10) It ran upto 96% and then it stopped with the following error:

An error occurred performing JIRA upgrade task

Exception thrown during upgrade: com.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.burningcode.jira.issue.customfields.impl.WatcherFieldType': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.burningcode.jira.issue.customfields.impl.WatcherFieldType]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.atlassian.jira.issue.customfields.impl.MultiUserCFType.(Lcom/atlassian/jira/issue/customfields/persistence/CustomFieldValuePersister;Lcom/atlassian/jira/issue/customfields/manager/GenericConfigManager;Lcom/atlassian/jira/issue/customfields/converters/MultiUserConverter;Lcom/atlassian/jira/config/properties/ApplicationProperties;Lcom/atlassian/jira/security/JiraAuthenticationContext;Lcom/atlassian/jira/bc/user/search/UserPickerSearchService;Lcom/atlassian/jira/web/FieldVisibilityManager;Lcom/atlassian/jira/issue/fields/rest/json/beans/JiraBaseUrls;Lcom/atlassian/jira/util/EmailFormatter;)V

com.atlassian.cache.CacheException: com.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.burningcode.jira.issue.customfields.impl.WatcherFieldType': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.burningcode.jira.issue.customfields.impl.WatcherFieldType]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.atlassian.jira.issue.customfields.impl.MultiUserCFType.(Lcom/atlassian/jira/issue/customfields/persistence/CustomFieldValuePersister;Lcom/atlassian/jira/issue/customfields/manager/GenericConfigManager;Lcom/atlassian/jira/issue/customfields/converters/MultiUserConverter;Lcom/atlassian/jira/config/properties/ApplicationProperties;Lcom/atlassian/jira/security/JiraAuthenticationContext;Lcom/atlassian/jira/bc/user/search/UserPickerSearchService;Lcom/atlassian/jira/web/FieldVisibilityManager;Lcom/atlassian/jira/issue/fields/rest/json/beans/JiraBaseUrls;Lcom/atlassian/jira/util/EmailFormatter;)V

at com.atlassian.cache.memory.DelegatingCache.get(DelegatingCache.java:67)

at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.getCustomFieldsFromIds(DefaultCustomFieldManager.java:457)

at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.getCustomFieldObjects(DefaultCustomFieldManager.java:445)

at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6045.getCustomFields(UpgradeTask_Build6045.java:132)

at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6045.doUpgrade(UpgradeTask_Build6045.java:59)

at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSuccess(UpgradeManagerImpl.java:685)

at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:534)

at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:463)

at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:405)

at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:340)

at com.atlassian.jira.bc.dataimport.DefaultDataImportService.upgradeJira(DefaultDataImportService.java:847)

at com.atlassian.jira.bc.dataimport.DefaultDataImportService.performImport(DefaultDataImportService.java:735)

at com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport(DefaultDataImportService.java:304)

at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:66)

at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:29)

at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:179)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

Please suggest if I have gone wrong somewhere or should I change my approach.

Thanks and Regards,

Jenin Mohan

2 answers

1 accepted

Hi Jenin,

In my opinion, try to create backup of app via tar (with permissions), backup DB and then run upgrade in your JIRA. Create a backup of your XMLs with your options (modified files like setenv and xmls in confluence-app/jira/web-inf) you should be able to safety upgrade (if there will be problem, just decompress backups, but remember for permissions!!!). When you start a new JIRA, at first try to clean cache files in jira-data, then start jira service, update and enable all plugins what you need and then import. I Think that it will work.

0 vote

I'd start by skipping the plugin download bit - that's really not necessary and could be breaking all sorts of stuff. In other words, skip steps 5 and 6. Also, I'd do one other thing before starting - make sure all the plugins in the old system are on the latest valid version for your version of Jira.

You will get errors as you upgrade, but none of them should be fatal. Once you get to the end of the process, go into the UPM and you'll find some/most plugins are disabled, but you'll be able to upgrade and re-enable them there.

I excluded all the 3rd Party Plugins at first and it worked. I uploaded them later.

Thanks!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

706 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you