Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-60120

Synchrony not starting with datasource after upgrade to Confluence 7.5.2 , 7.6.0 , 7.6.1 & 7.6.2

      Issue Summary

      After upgrading the Confluence to version 6.13.13. 7.4.3, 7.5.2, 7.6.0, 7.6.1 or 7.6.2, the Synchrony process doesn't start anymore and it gives below error while starting the Synchrony.

      2020-07-27 09:41:01,167 INFO [lifecycle:thread-31] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] startup Starting Synchrony and enabling Collaborative Editing
      
      2020-07-27 09:41:01,824 WARN [synchrony-interop-executor:thread-2] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] lambda$startProcess$1 Failed to setup Synchrony, turn on debug for stack trace: class org.apache.commons.lang3.tuple.ImmutablePair cannot be cast to class org.apache.commons.lang3.tuple.Pair (org.apache.commons.lang3.tuple.ImmutablePair is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5996a9e9; org.apache.commons.lang3.tuple.Pair is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @1f3a9953)
      

      Also, observed that this issue comes only when Confluence using Datasource for connecting the database, default JDBC connection works properly without any issue.

      Steps to Reproduce

      1. Install Confluence version before 7.5.2 and use Datasource for connecting the Database.
      2. Check the Confluence and Synchrony both gets start properly and it works.
      3. Now, upgrade the Confluence to any version after 7.5.2 or 7.5.2.
      4. Once Confluence upgrade is done, Synchrony doesn't start and gives below error in atlassian-confluence.log and no logs in Synchrony logs.
        2020-07-27 09:41:01,167 INFO [lifecycle:thread-31] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] startup Starting Synchrony and enabling Collaborative Editing
        
        2020-07-27 09:41:01,824 WARN [synchrony-interop-executor:thread-2] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] lambda$startProcess$1 Failed to setup Synchrony, turn on debug for stack trace: class org.apache.commons.lang3.tuple.ImmutablePair cannot be cast to class org.apache.commons.lang3.tuple.Pair (org.apache.commons.lang3.tuple.ImmutablePair is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5996a9e9; org.apache.commons.lang3.tuple.Pair is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @1f3a9953)
        

        Below is the Collaborative editing page screenshot and one banner also visible saying "There's a problem with collaborative editing. People may be unable to save or publish. Troubleshoot this problem."

      Expected Results

      The synchrony process gets started with the default JDBC connection as well as using Datasource Connection.

      Actual Results

      Currently, the Synchrony process doesn't start with Datasource connection. It works with the default JDBC connection.

      The below exception is thrown in the atlassian-confluence.log file:

      2020-07-27 09:41:01,167 INFO [lifecycle:thread-31] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] startup Starting Synchrony and enabling Collaborative Editing
      
      2020-07-27 09:41:01,824 WARN [synchrony-interop-executor:thread-2] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] lambda$startProcess$1 Failed to setup Synchrony, turn on debug for stack trace: class org.apache.commons.lang3.tuple.ImmutablePair cannot be cast to class org.apache.commons.lang3.tuple.Pair (org.apache.commons.lang3.tuple.ImmutablePair is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5996a9e9; org.apache.commons.lang3.tuple.Pair is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @1f3a9953)
      

      This will also be followed by a message like the following:

      ... INFO [http-nio-8090-exec-6] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] retrievePublicKey [Collab editing plugin] Could not retrieve public key for real-time collaboration service at http://localhost:8091/synchrony/jwt-key with exception: Connect to localhost:8091 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
      

      Workaround

      Connect Confluence to database using a JDBC connection by specifying DB properties in confluence.cfg.xml file

      For Confluence Enterprise Release customers as of 31/07/2020, upgrading to a later unaffected version will also fix the issue. This option is currently not available for customers running 7.5.2+

            [CONFSERVER-60120] Synchrony not starting with datasource after upgrade to Confluence 7.5.2 , 7.6.0 , 7.6.1 & 7.6.2

            A fix for this issue is available to Server and Data Center customers in Confluence 7.6.3
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Hasnae (Inactive) added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.6.3 Upgrade now or check out the Release Notes to see what other issues are resolved.

            John Hayes added a comment -

            I can confirm this is resolved in 7.4.4

            John Hayes added a comment - I can confirm this is resolved in 7.4.4

            Tam Tran added a comment -

            If you're running the Confluence 7.4 Enterprise release, a fix for this issue is now available in Confluence 7.4.4, which you can find in the Download Archives

            Tam Tran added a comment - If you're running the Confluence 7.4 Enterprise release, a fix for this issue is now available in Confluence 7.4.4, which you can find in the Download Archives

            Is there any date when LTS 7.4.4 with this fix will be available?

            Domagoj Zecevic added a comment - Is there any date when LTS 7.4.4 with this fix will be available?

            rikard.warneryd - the team is working on getting 7.4.4 released. Hang in there!

            Dee (Inactive) added a comment - rikard.warneryd - the team is working on getting 7.4.4 released. Hang in there!

            Netset added a comment -

            Netset added a comment - I couldn't find 7.4.4 to download??? https://confluence.atlassian.com/conf74/confluence-release-notes-1003129799.html

            A fix for this issue is available to Server and Data Center customers in Confluence 6.13.15
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            If you're running the Confluence 6.13 Enterprise release, a fix for this issue is now available in Confluence 6.13.15, which you can find in the Download Archives.

            Xinyi Xu (Inactive) added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 6.13.15 Upgrade now or check out the Release Notes  to see what other issues are resolved. If you're running the Confluence 6.13 Enterprise release, a fix for this issue is now available in Confluence 6.13.15, which you can find in the Download Archives .

            A fix for this issue is available to Server and Data Center customers in Confluence 7.7.2
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Xinyi Xu (Inactive) added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.7.2 Upgrade now or check out the Release Notes  to see what other issues are resolved.

            James Ponting added a comment - - edited

            Hi All,

            Just to provide a more human readable list of affected versions as of the time of writing

            • Confluence 6.13.13 (Enterprise Release)
            • Confluence 7.4.3 (Enterprise Release)
            • Confluence 7.5.2
            • Confluence 7.6.0 - 7.6.2

            I understand this list to be comprehensive currently, but will update it should we become aware of any additional versions.

            Correction: The documentation team beat me to the punch, the documentation has been updated to link to this bug.

            Thanks,
            James Ponting
            Premier Support Engineer

            James Ponting added a comment - - edited Hi All, Just to provide a more human readable list of affected versions as of the time of writing Confluence 6.13.13 (Enterprise Release) Confluence 7.4.3 (Enterprise Release) Confluence 7.5.2 Confluence 7.6.0 - 7.6.2 I understand this list to be comprehensive currently, but will update it should we become aware of any additional versions. Correction: The documentation team beat me to the punch, the documentation has been updated to link to this bug. Thanks, James Ponting Premier Support Engineer

            The rather popular monitoring app JavaMelody needs a JDNI datasource to be able to monitor the database connections, this is what rendered our environment unusable for three days.

            Michael Bachmann added a comment - The rather popular monitoring app  JavaMelody  needs a JDNI datasource to be able to monitor the database connections, this is what rendered our environment unusable for three days.

              richatkins Richard Atkins
              hgupta@atlassian.com Hemant Gupta
              Affected customers:
              11 This affects my team
              Watchers:
              47 Start watching this issue

                Created:
                Updated:
                Resolved: