Collaborative editing does not work on Windows Service with modified server.xml

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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. When starting Confluence as a Windows Service, the Collaborative Editing feature does not work. Editing a page returns the error:

    This page is taking longer to load than usual. Give it a few moments, then try refreshing. Still having issues? Contact your Confluence admin.

診断


  1. The Tomcat <confluence_install>/conf/server.xml file has modified values for the defaultHost in the Engine tag and name for the Host tag:

    <Engine name="Standalone" defaultHost="www.myconfluence.com" debug="0">
                <Host name="www.myconfluence.com" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">

    The default values for both these fields are normally defaultHost="localhost" and name="localhost" for Engine and Host respectively.

  2. The Synchrony java Service appears to be running. Assuming Synchrony is configured on the default 8091 port:
    1. Loading http://<synchrony server IP>:8091/synchrony/heartbeat in a Browser returns OK
  3. Loading <Confluence Base URL>/synchrony-proxy/heartbeat in a Browser returns a HTTP 404 Not Found response
  4. When running the exact same Confluence instance using <confluence_install>/bin/start-confluence.bat instead of as a Windows Service, Collaborative Editing works fine!

原因

The Engine/defaultHost and Host/name entries are used for Virtual Hosting within Tomcat. Both these entries should be left as the default localhost and is not related to the Base URL that Confluence is being served on.

By changing these from the default localhost values, it appears that Tomcat has not deployed the /sychrony-proxy off the Base URL of Tomcat when running as a Windows service. Hence, <Confluence Base URL>/synchrony-proxy/heartbeat is returning the HTTP 404 Not Found


ソリューション

  1. Edit the Tomcat <confluence_install>/conf/server.xml file
    1. Revert the Engine/defaultHost to localhost and Host/name to localhost which are the defaults. These values should not be changed and has no relation to the Base URL that Confluence is being served on.

      <Engine name="Standalone" defaultHost="localhost" debug="0">
                  <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
  2. Restart the Confluence Windows Service
  3. Check that Collaborative Editing now works


その他のリソース

To configure Confluence behind a Reverse Proxy, refer to these articles:


最終更新日 2018 年 11 月 6 日

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

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