User unexpectedly logged out of Jira server

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

問題

  1. Jira ユーザーが各ページで定期的にログアウトされるが、ほかのアプリケーション (例: Confluence) では問題は発生していない。
  2. 1 つのアプリケーション (例: Confluence) にログインしてから別のアプリケーション (例: Jira) にログインすると、ユーザーは元のアプリケーションから自動的にログアウトされる。

これはクライアント側の問題であるため、多くの場合、問題の特定に役立つ情報をログ ファイルで確認することはできません。

(info) If neither of these problems describe your situation, such as you are not using or logging into any other Atlassian applications, it may be that your session cookie (JSESSIONID) is being modified or removed automatically by a browser extension. This can be confirmed by using Jira in your browser's incognito mode, or by reviewing your browser extensions for any with this behavior and disabling them.

原因

この問題のもっとも一般的な原因として、次の構成のような同じドメインまたは IP アドレスでの web ログインを提供する、Jira、Confluence、または別のアプリケーションへのアクセス時に cookie が上書きされていることが考えられます。

  • Jira: http://atlasserver:8080/
  • Confluence: http://atlasserver:8090/

cookie はポート番号で区別されないため、ブラウザが既存の cookie を上書きし、ユーザーには自身が元のアプリケーションからログアウトされたように見えます。これはブラウザ固有の問題であるため、アプリケーション ログでは確認できません。

製品でのこの処理を改善するための機能リクエストを JRA-36960 - Getting issue details... STATUS で追跡しています。

Another possible cause for Jira 8.20+ is JRASERVER-73281 - Getting issue details... STATUS , which causes the /status endpoint to take a long time to respond and cause the load balancer to understand that the node is not responsive. If that is the case, check the workaround in the bug.

回避策

各アプリケーションへのアクセス時に別のブラウザを使用するか (IE、Firefox、Chrome など)、Jira へのアクセス時にプライベート ブラウジング モードのタブを使用して Confluence へのアクセスでは通常のブラウジング モードを使用します。これは推奨される回避策ではありませんが、テスト環境では活用できる方法です。

ソリューション

DNS やリバース プロキシの設定は Jira のサポート対象ですが、アトラシアン サポートの提供範囲には含まれません。このため、アトラシアンではこの操作に対するサポートの提供を保証することはできません。この資料は情報提供のみを目的としており、内容の実行はお客様自身の責任で実行していただくものとします。

Jira と Confluence はリソースを消費する場合があるため、また、標準的なベストプラクティスの一環として、アトラシアンでは、Confluence と Jira を Apache Web Server または IIS などのリバース プロキシの背後で、別の物理マシンで実行することを推奨しています。

同じマシンを使用するのが必須要件である場合、次の方法を使用してこの問題を解決できます。

  • 同じ IP に対して個別の DNS エントリを用意し、ブラウザで区別できるようにします。例:
    • Jira: http://jira:8080
    • Confluence: http://confluence:8090

  • Modify the Context path in server.xml for both JIRA and Confluence, as per our How to change the JIRA context path KB. For example, a recommended setup would be:
    • Jira: http://atlasserver:8080/jira
    • Confluence: http://atlasserver:8090/confluence

      製品間で Crowd 認証を使用している場合、Crowd 認証のため、すべての製品 (Confluence、Fisheye) を新しい Jira URL に再接続する必要があります。

  • Jira を Apache と連携する」および「Confluence を Apache の背後で実行する」にあるように、両方のアプリケーションをリバース プロキシの背後でホストします。
  • Set up Single-Sign-On with Atlassian Crowd, as in our Overview of SSO docs.
  • Tomcat 6 を使用している場合、「起動時のプロパティとオプションの設定」にあるように、次の引数を使用することで、セッション cookie 名を一意のものに変更できます (2 つのアプリケーションは異なる セッション cookie 名を持つ必要があります)。

     -Dorg.apache.catalina.SESSION_COOKIE_NAME=JIRASESSIONID
  • Tomcat 7 または 8 を使用している場合、次のように $JIRA_INSTALL/conf/context.xml を変更することで、セッション cookie 名を一意のものに変更できます (2 つのアプリケーションは異なるセッション cookie 名を持つ必要があります)。

    変更前:

    <!-- The contents of this file will be loaded for each web application -->
    <Context>
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>

    変更後:

    <!-- The contents of this file will be loaded for each web application -->
    <Context sessionCookieName ="JIRASESSIONID">
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
  • 上述の変更の実施後は、アプリケーション リンクを再作成する必要があります。これは、アプリケーション リンクの設定も同様のシナリオでユーザーをログアウトさせる可能性があるためです。
説明 JIRA users are consistently logged out on each page or whilst using other applications such as Confluence or after logging into one application (e.g.: Confluence) then into another (e.g.: JIRA), users are automatically logged out of the other application.
製品Jira、Confluence
プラットフォームServer
最終更新日 2022 年 7 月 4 日

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

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