I've upgrade to 6.0 using the installer on linux x64. After I've restarted I'm getting the following error and cannot access jira.
2013-05-22 10:25:08,308 localhost-startStop-1 INFO [atlassian.jira.upgrade.UpgradeManagerImpl] Performing Upgrade Task: Converting default Custom field values for User and MultiUser types to store the key of the user rather than the
username.
2013-05-22 10:25:08,308 localhost-startStop-1 ERROR [atlassian.jira.upgrade.UpgradeManagerImpl] Exception thrown during upgrade: java.lang.NullPointerException
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
at
Community moderators have prevented the ability to post new answers.
Hey there, Jouni.
Seems like the NullPointerException is causing the trouble here. I believe that you are using the Script Runner (https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner) in your JIRA?
Warm regards,
Danial
You were right. I disabled Script Runner and the upgrade went through. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there, Jouni.
Perfect! Good to hear that. You are welcome!
Warm regards,
Danial
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So is the solution to disable or uninstall? the script runner plugin prior to the export XML in Jira 5.1.4 (as we are not upgrading in place) then import in to Jira 6.1.6 and install/enable scriptrunner for the upgrade to go. . . we have fighting this lazyreference problem for weeks now when attempting this upgrade.
Any advice is appreciated. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add it back after upgrading.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do I need to uninstall or disable the plugin prior to taking the export XML from jira v5.1.4? We took the export from Jira v5.1.4 with the script runner plugin enabled and ran into this error. . . is the trick to uninstalled the plugin first from Jira v5.1.4 before taking the export xml.
Thanks for the quick response Jamie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, in doing the export with the plugin unistalled or disabled, would we the export miss any script runner definitions and when imported into Jira Upgraded v6*, and scriptrunner added pst upgrade, whould all the script runner script fields, etc... be present.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> do I need to uninstall or disable the plugin prior to taking the export XML from jira v5.1.4?
Makes no difference.
would we the export miss any script runner definitions and when imported into Jira Upgraded v6
Yeah everything will be present.
Having never had this problem myself I can't offer a better solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need to check this out, but you should be fine to re-enable after the upgrade has finished.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We just ran into this bug. We tried to upgrade a 5.2.11 instance to 6.0.8 that had Script runner 2.1.7 installed. I rolled back, uninstalled script runner, and was able to successfully upgrade.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jamie, any word on this?
I ran into this doing a 5.2 to 6.2EAP in our testbed. We have one script runner-backed custom field which doesn't inclue any user values (exposes a project's category as an exportable entity). But the advice above has - so far - allowed us to proceed further with with the upgrade.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
Bumped into the same issue, workaround is ok.
Logging - if helpful - http://pastebin.com/EYKgwTKK
Francis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.