共同編集が有効化された状態でページを作成または編集できない
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
この問題は Server インスタンスでも発生する可能性があります。
問題
共同編集により、新しいページを作成または編集できない。Synchrony は正常に起動しているように見受けられる。システムでは、無効な JWT キーについてのエラーと、ユーザーが編集しようとしているコンテンツが見つからなかった旨が記録されている。
atlassian-confluence.log ファイルに次の内容が記録されている。
2019-02-14 22:16:43,860 WARN [http-nio-8090-exec-5] [synchrony.service.http.SynchronyResponseHandler] failed Synchrony external changes API call returned 401: {"type":"jwt/invalid-aud","message":"Error validating JWT"} content-id: 8540519 rev: null ancestor: null merges: {"confVersion":"53","trigger":null,"type":"external"} generate-rev: true generate-reset: trueatlassian-synchrony.log ファイルに次の内容が記録されている。
2019-02-14 22:16:43,860 WARN [http-nio-8090-exec-5] [synchrony.service.http.SynchronyResponseHandler] failed Synchrony external changes API call returned 401: {"type":"jwt\/invalid-aud","message":"Error validating JWT"} content-id: 8540519 rev: null ancestor: null merges: {"confVersion":"53","trigger":null,"type":"external"} generate-rev: true generate-reset: true
-- space: 9306114 | url: /plugins/editor-loader/editor.action | page: 8540519 | traceId: 81e2b1c97ab9d93d | userName: User123 | referer: https://confluence-base-url/display/TEST/Redacted+page+title | action: editor原因
There is a mismatched appsecret between Confluence and Synchrony. The appsecret is a secret that is shared between Synchrony and Confluence upon initial registration, when Confluence starts for the first time. Somehow, due to an as-of-yet unknown reason, this entry becomes corrupted or mismatched.
Even though the Synchrony logs mention the JWT key, that does not actually come into play. The JWT key is only used when Synchrony encryption is enabled, and so any calls to retrieve it will return "dummy-key-value". As long as Synchrony encryption is not enabled (which is the default state), the JWT key is not used in Synchrony/Confluence communication.
ソリューション
appsecret をリセットします。これを行うには、Confluence インスタンスをシャットダウンして次の SQL コマンドを実行します。
DELETE FROM bandana WHERE bandanakey = 'synchrony_collaborative_editor_app_registered'
OR bandanakey = 'synchrony_collaborative_editor_app_secret'
OR bandanakey = 'synchrony_collaborative_editor_app_id';TRUNCATE TABLE "EVENTS";
TRUNCATE TABLE "SECRETS";
TRUNCATE TABLE "SNAPSHOTS";The TRUNCATE commands will remove all the Synchrony data (including the draft information). This step is required. Removing the registration will mean that the existing Synchrony edit history is lost anyway, so truncating the Synchrony tables will clean up the irretrievable data. The actual pages and drafts are stored permanently in Confluence and are not affected.
Warning: Backup your database before proceeding.
Before running any SQL in this article, create a full backup of your Confluence database. Test the queries in a staging environment first if possible.
この内容はお役に立ちましたか?