一時ディレクトリを変更する方法

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

 

要約

Jira は一時ディレクトリに java.io.tmpdir の値を使用します。また、Tomcat は既定で同じ変数を持ち、値を<JIRA_INSTALLATION_DIR>/temp で初期化します。これが権限または領域の問題につながる場合があります。 

<JIRA_INSTALLATION_DIR>/bin/catalina.sh のコード:

if [ -z "$CATALINA_TMPDIR" ] ; then
  # Define the java.io.tmpdir to use for Catalina
  CATALINA_TMPDIR="$CATALINA_BASE"/temp
fi
...
-Djava.io.tmpdir="$CATALINA_TMPDIR"


環境

Any version of Jira Software Data Center (or Server)

Any version Jira Service Management Data Center (or Server)


ソリューション

Example solution for Linux

1. Create the temp dir

Create the directory you want to move the tmpdir to and make sure the user running the Jira process has full access to it.

Our guide on Installing Jira applications advise on giving ownership and permissions:

$ chown -R jira <new-tmpdir-path>
$ chmod -R u=rwx,go-rwx <new-tmpdir-path>

It should be on the local disk (for best performance), have enough free space and allow all permissions to the user starting the Jira process. Each Jira node should have it's own tmpdir — don't map it to a shared location.

2. Customize the setenv.sh file

To customize the java.io.tmpdir path, you should edit the <JIRA_INSTALLATION_DIR>/bin/setenv.sh file and add this line below the JVM_SUPPORT_RECOMMENDED_ARGS (for ease of finding — it could be anywhere in the file, technically):

CATALINA_TMPDIR='/your/custom/path/here'

If you already have a CATALINA_TMPDIR line in that file, you should update it instead of adding a new line.

3. Jira を再起動する

Jira needs to be restarted to start using the new tmpdir.

If it's a Data Center cluster, you can perform a rolling restart one node at a time.



Last modified on Mar 10, 2023

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

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