Reverse Proxy intercepting errors can cause the Confluence Page Creation action to freeze

お困りですか?

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

コミュニティに質問

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

    

要約

When attempting to create a new Confluence page, the page editor freezes:

  • if there is a Reverse Proxy configured to intercept errors 
  • and when Collaborative Editing is switched ON

Such an error message can be seen from page editor:

"Something went wrong after loading the editor. Copy your unsaved changes and refresh the page to keep editing."

 

環境

  • Confluence version 7.9.0 with Collaborative Editing turned ON
  • NGINX is used as a Reverse Proxy and it is intercepting errors for Confluence and Synchrony, with such directives:
Nginx Configuration
# Server Section in nginx.conf for the Confluence and Synchrony sites
server {
	[...]
	error_page 404 /404.html;
	proxy_intercept_errors     on;
	[...]
}


診断

  • Check the Reverse Proxy configuration details for Confluence and Synchrony to confirm the directives used.

原因

After hitting the Create button in Confluence, such a trace can be seen in the logs:

atlassian-synchrony.log
INFO [async-dispatch-5] [synchrony.middleware.logging]  {:request {:remote-addr "127.0.0.1", :uri "/synchrony/v1/data/Synchrony-92cb3632-7851-314b-9957-47c5a6223ec9/confluence-851970", :request-method :post, :query-string "state-at=@head&state-format=type-tagged&rewrite-request=true&cached=true", "x-forwarded-for" "127.0.0.1"}, :response {:status 404}}

(info) Intercepting this 404 can cause the Confluence application to detect that its Synchrony component is unresponsive and freeze. 

ソリューション

  • Remove the lines below from the Reverse Proxy Configuration for Confluence and Synchrony sections.
	error_page 404 /404.html;
	proxy_intercept_errors     on;


(info) We do have an existing improvement request for Confluence to handle such situation gracefully under  CONFSERVER-55946 - Getting issue details... STATUS



最終更新日: 2020 年 12 月 15 日

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

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