Jira Server を 9.4 にアップグレードする

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

After you’ve completed the pre-upgrade steps and planned the downtime, proceed with the upgrade from your Jira 8.x or 9.x version to Jira 9.4.

When upgrading from Jira 8.x to Jira 9.x, you can’t use the Zero Downtime method. Instead, use one of the regular methods.

If you're upgrading from 9.x, you can use the Zero Downtime method.

Running Jira as a service? Learn more about your upgrade options

When you upgrade Jira and want to keep running it as a service, we recommend using the installer. Learn more

To upgrade from an older Jira Enterprise release to a newer one, we recommend a manual upgrade because it's faster. But upgrading with an installer will also work. 

If you still want to upgrade Jira manually and use it as a service, make sure the new and the old install paths are the same.

Since you already have the service configured, it'll keep working as long as the install path stays the same because the manual upgrade via the tar.gz archive doesn’t affect service configurations. 

Learn how to upgrade Jira as a service on Linux and Windows.

Linux

If you unpack or have Jira running in a separate directory, tweak the install paths in the service configuration to Jira.

In the following example, your path to Jira in service configuration is /opt/atlassian.

[Unit] 
Description=Atlassian Jira
After=network.target

[Service] 
Type=forking
User=jira
PIDFile=/opt/atlassian/jira/work/catalina.pid
ExecStart=/opt/atlassian/jira/bin/start-jira.sh
ExecStop=/opt/atlassian/jira/bin/stop-jira.sh

[Install] 
WantedBy=multi-user.target

Windows

If you unpack or have Jira running in a separate directory, follow this guide:

  1. Remove the Jira service on an old Jira instance.
  2. Manually set up Jira to run as a service on a new instance.

Checking the custom configuration file list

If you've made custom changes to other files, you should transfer them manually. Such customization may include connection details, settings related to memory allocation, or other JVM arguments. Most often, the following files are modified:

  • server.xml
  • dbconfig.xml
  • jira-config.properties
  • web.xml
  • setenv.sh / setenv.bat (メモリ割り当ておよびその他の JVM 引数)

Learn more in Important files in Jira

In addition to these files, if your Jira is running over SSL, you should reimport certificates to the trust store. For details on how to do this, see How to import a public SSL certificate into a JVM.

If you're on the latest version of the ASTS plugin, you can see the list of files with custom changes. To do this, go to Administration Applications > Plan your upgrade.

Click to see where to find the list of files with custom changes

To see the list of files, go to 4. Upgrade Jira in production. You’ll see it under Step 6.

Files with custom configurations

Downloading Jira 9.4

Download Jira applications from the Atlassian website.

Learn more about upgrade methods

If want to upgrade both Jira Software and Jira Service Management, upgrade Jira Software only. You'll later upgrade the Service Management app directly in Jira.

Extracting the files

Extract the downloaded archive.

  1. Extract the files to a new installation directory. It must be different from the existing directory. 
  2. Point Jira to the existing Jira home directory.

We recommend setting the JIRA_HOME environment variable. For more information on how to do this, see Setting Jira home directory.

Installing the database driver

If you're using the Oracle or MySQL database, download a new JDBC driver (Java Database Connectivity driver). For other databases, skip this step. For more information on supported drivers, see Supported platforms.

If the driver is up to date, you can also copy it from the previous version.

  1. 次のドライバのいずれかをダウンロードします。
    1. Oracle: JDBC driver 19.3 (ojdbc8)
    2. MySQL: MySQL Connector/J 8.0 driver
  2. Locate the drivers in <installation-directory>/lib.

Re-applying custom changes and increasing pool-max-size and the maximum number of open files

While using Jira, you’ve probably customized some Jira files. Such customization may include connection details, settings related to memory allocation, or other JVM arguments. Most often, the following files are modified:

  • server.xml
  • dbconfig.xml
  • web.xml
  • jira-config.properties
  • setenv.sh / setenv.bat (メモリ割り当ておよびその他の JVM 引数)

Make sure you’re copying the changes but not the entire files. Learn more in Important files in Jira

In addition to these files, if your Jira is running over SSL, you should reimport certificates to the trust store. For details on how to do this, see How to import a public SSL certificate into a JVM.

tip/resting Created with Sketch.

In version 8.5.48, Tomcat started using quotation marks as a result of the bug documented in Expansion of JAVA_OPTS in catalina.sh containing '*' stops startup on linux. That's why when you upgrade to Jira 9.4 and set parameters in the setenv.sh or setenv.bat files, make sure that you:

  • Don't remove quotation marks in the catalina.sh file
  • Set all your parameters in one line without any new line in the setenv.sh or setenv.bat file

Otherwise, you might experience issues when starting Jira. 

pool-max-size

Before upgrading from Jira 8.x to Jira 9.x, we recommend checking if the pool-max-size parameter in the dbconfig.xml file is at least 40.

(Linux Server only) Increasing the maximum number of open files

For Linux installations, we recommend that you increase the maximum number of open files. To do this, add the following line to the <jira-install>/bin/setenv.sh file:

ulimit -n 16384

自動再インデックスの無効化

After upgrading from Jira 8.x to Jira 9.4, Jira will trigger an automatic reindex during startup. At this point, your apps from Jira 8.x may not be compatible with version 9.4 yet. So, you should upgrade the apps and make them compatible with Jira 9.4 before you can use Jira.

After finishing the apps upgrade, you’ll need to trigger a manual full reindex to create a new index based on compatible apps' data. This will be the second reindex.

To minimize downtime, you can disable the automatic reindex so that it doesn’t occur twice. You can run the reindex later manually.

To disable the automatic reindex:

  1. Edit or create the file <jira-home-directory>/jira-config.properties.
  2. Add the following line: upgrade.reindex.allowed=false.
  3. ファイルを保存します。

Adding the JVM flags to bypass the automatic full reindex for the upgrade from Jira 9.x

Jira 8.x allowed startup without an index with the jira-config.properties entry of upgrade.reindex.allowed=false.

In Jira 9.x, this configuration only works for the first-ever startup — the one that's running or had run the database update tasks. If the node's restarted for any reason, Jira 9.x will understand that it's no longer an upgrade startup and will enforce a full reindex upon startup.

To guarantee that Jira 9.x won't kick off a full reindex in subsequent restarts during the upgrade maintenance window, the following two flags must be added to the JVM startup parameters before you start Jira 9.4 for the first time:

-Dcom.atlassian.jira.startup.allow.full.reindex=false 
-Dcom.atlassian.jira.startup.rebuild.local.index=false

You can add them to JVM_SUPPORT_RECOMMENDED_ARGS in the setenv.sh/setenv.bat file (appended to other parameters you may have there, separated by space characters):

JVM_SUPPORT_RECOMMENDED_ARGS="-Dcom.atlassian.jira.startup.allow.full.reindex=false -Dcom.atlassian.jira.startup.rebuild.local.index=false"

(info) Read Setting properties and options on startup for an overview on setting JVM flags.

The two flags will trigger this dismissible startup screen:

Jira startup screen

Once the upgrade is over, you should remove the flags so that Jira 9.4 behaves as expected on all subsequent restarts, optimizing index acquisition and delta catch-up with multiple threads. Nodes will rely on their local indexes and fallback to the shared-home snapshots when needed.

For more details on the index startup strategy in Jira 9.0 and 9.4, check Index startup procedure in Jira 9.4 and later.

Starting Jira for the first time

To start the new Jira version:

  1. Go to <installation-directory>/bin and run one of the following files:
    1. Windows:  start-jira.bat
    2. Linux: start-jira.sh 
  2. ブラウザで Jira を開きます。
  3. 画面の指示に従い、セットアップを完了します。

アップグレード後のランディング ページ

After the successful upgrade, you should see the post-upgrade landing page. It provides information about the new version.

PULP for 8.20.13

  1. Need to know: The list of new features that might affect your work as an admin.
  2. User apps: The status of your apps after the upgrade.
  3. Application links: The status of your application links.
  4. Release notes: The link to the release notes where you can see more detailed information about the version you've upgraded to.

アプリのアップグレード

Now, it's time to work with third-party apps in Jira. If you've decided to disable the apps or if you’ve successfully upgraded the apps in the status Compatible once both are updated in your test environment, you can do this in production. 

  1. Go to Administration > Manage apps.
  2. Select Manage apps.
  3. Upgrade the apps to supported versions.
  4. Once the apps are upgraded, enable them. 

For more information about statuses and apps, see Preparing Jira for the 9.4 upgrade.

すべてのアプリを削除した場合、このタイミングでアプリの互換バージョンをインストールできます。

(Optional) Updating Jira Service Management

Your Jira instance has been upgraded. If you're using Jira Service Management, you can update it directly in Jira, without downloading a separate installer:

  1. Go to Administration > Applications.
  2. In Versions and licenses, upgrade Jira Service Management. The app will be automatically updated to a compatible version.

Rebuilding index

Since the old Jira index is incompatible, reindex Jira to rebuild it. Reindexing might take some time, depending on how many issues and apps you have.

  1. [管理] > [システム] の順に移動します。
  2. In the left panel, select Indexing.
  3. In the Options, select Full re-index.
  4. Select the Re-index button.

Re-enabling automatic reindex

If you disabled the automatic reindex earlier, you can re-enable it now.

To do this, in the file <jirahome>/jira-config.properties, remove the added property upgrade.reindex.allowed=false.

If you experience any issues with full reindex while upgrading from Jira 9.x to version 9.4, check this troubleshooting practical guide to the upgrade.

最終更新日 2023 年 11 月 27 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.