Share your upgrade process tips/tricks

Jh July 25, 2020

So I am a bit new to upgrading our Jira Service Desk instance and I struggle immensely with getting Jira to boot back up successfully. Below are the steps I follow, please let me know it can be improved and please share your tips/tricks in where to look/what to look for when troubleshooting Jira not starting back up after the upgrade.

 

  1. Take snapshot of VM
  2. Run update check
  3. Update all apps
  4. Clean up Temp/Log folder
  5. Run upgrade installer
  6. Delete hidden plugin cache folders(.bundled-plugin and .osgi-plugin) folders
  7. I normally make a copy of the original file and and add an underscore at the end of the name, then copy over the modified file so I know which files were modified easily. I use FarManager to browse the backup archive/main Jira folders. Normally the files that are modified (FOR ME) are:
    1. Server.xml
    2. Web.xml
    3. Robots.txt
    4. email-template-id-mappings.xml

    5. Outlook-email.translations
    6. crm-plugin.properties
    7. Jirawebactionsupport.properties

 

3 answers

2 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 25, 2020

Looks like a good process to me.

One trick on item 7 though - before stopping Jira to run the installer over it, visit the system information page, there is a section in there for "modified files" which will list all the files the installer is going to overwrite.

For troubleshooting after upgrade, your cleaning of the log directory is great because you know the logs in there are being generated by the upgrade and restart.  As with any troubleshooting in Jira, the application log in there is the immediate starting point! 

Remember that the installer upgrade replaces files, but the upgrade process will need to do the data when the new version starts.  You'll find it throws lots of "upgrading X" messages into the log as it runs, but worryingly appears to pause in some places (usually database changes to large tables), while the disk, cpu and memory don't seem to be being used much and some people get concerned and stop and restart it.  Avoid doing that - if it's going to fail the upgrade, it will chuck a message into the log when it goes wrong.

You can also improve the speed of the upgrade by disabling the automatic re-index - this is most useful if you are upgrading apps because you are going to want to re-index after updating (or possibly reconfiguring) apps, so there's no point doing it part way through the upgrade as well.   Add "upgrade.reindex.allowed=false" to the file <jira home>jira-config.properties (you may have to create that file, a default install of Jira doesn't have it)

1 vote
Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2020

One trick I've done on occasion. After you run the upgrade start jira up the first time in "safe mode" with Addons disabled. Let jira do its own work and come up without having to deal with the addons. Particularly with the ones that you will need to upgrade after you do the jira upgrade. You can do so in a more controlled manner, and avoid some scary looking errors.

0 votes
Jh July 25, 2020

Yea, I saw the section for modified files there. It also showed right before you click Next to proceed with upgrading when it scans for modified files so I just take a screenshot of it. I just upgraded from 8.7.1 to 8.9.1 last night and Jira eventually booted up but it just take a VERY long time and eventually it kept timing out. Tomcat shows the error: java.lang.OutOfMemoryError: GC overhead limit exceeded, some Googling just referred to not having enough memory or need to set the Xm parameters higher but I never had a problem not enough memory.. I feel like every time I do an upgrade, I have issues getting it to start successfully when I follow the same exact process...

Suggest an answer

Log in or Sign up to answer