It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issues configuring synchrony for confluence data center

Andrey Popov Oct 25, 2017

Hello,

Testing out Confluence Data Center setup on a local VM. It's an upgrade from Confluence Server to Data Center to be exact. The upgrade was fairly straight-forward, just followed the instructions and it just worked. However, running into issues with synchrony - no big surprise there.  ;)

I followed the instructions and created a script to launch synchrony as a process, I've also changed the default port for synchrony - on the surface everything is great, in the collaborative editing admin panel it's all "green", heartbeat returns OK, however, the moment I try to create/edit a page things turn sour - spinner on the edit button for a minute, then it times out and goes into the edit with the following message:

synchrony.png

Here's the log messages related to this from atlassian-confluence.log:

2017-10-25 13:57:09,070 WARN [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9ccc4499-c9b8-3ead-bd3c-500cd3f3d9a4: Internal Server Error
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:57:39,126 INFO [http-nio-8090-exec-29] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://192.168.101.128:8092/synchrony/v1/apps/secret
2017-10-25 13:57:39,126 INFO [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://192.168.101.128:8092/synchrony/v1/apps/secret
2017-10-25 13:57:39,128 WARN [http-nio-8090-exec-29] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9ccc4499-c9b8-3ead-bd3c-500cd3f3d9a4-debug: Internal Server Error
 -- referer: http://192.168.101.128:8090/display/TESTONESD | url: /pages/editpage.action | traceId: ba31672db5a868c3 | userName: apopov
2017-10-25 13:57:39,129 WARN [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9ccc4499-c9b8-3ead-bd3c-500cd3f3d9a4-debug: Internal Server Error
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:57:39,130 WARN [http-nio-8090-exec-29] [plugins.synchrony.service.SynchronyContentService] runRecoveryInTransaction Could not reconcile content for restored. ID: 3112993 Caused by: com.atlassian.confluence.plugins.synchrony.model.SynchronyException: ERROR_CREATING_REQUEST
 -- referer: http://192.168.101.128:8090/display/TESTONESD | url: /pages/editpage.action | traceId: ba31672db5a868c3 | userName: apopov
2017-10-25 13:57:39,131 WARN [http-nio-8090-exec-7] [plugins.synchrony.service.SynchronyContentService] runRecoveryInTransaction Could not reconcile content for restored. ID: 3112993 Caused by: com.atlassian.confluence.plugins.synchrony.model.SynchronyException: ERROR_CREATING_REQUEST
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:57:39,132 WARN [http-nio-8090-exec-7] [confluence.util.profiling.DurationThresholdWarningTimingHelperFactory] logMessage Execution time for publishing event com.atlassian.confluence.event.events.content.page.synchrony.SynchronyRecoveryEvent@683095c took 60130 ms (warning threshold is 5000 ms)
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:57:39,131 WARN [http-nio-8090-exec-29] [confluence.util.profiling.DurationThresholdWarningTimingHelperFactory] logMessage Execution time for publishing event com.atlassian.confluence.event.events.content.page.synchrony.SynchronyRecoveryEvent@3c92af7a took 47467 ms (warning threshold is 5000 ms)
 -- referer: http://192.168.101.128:8090/display/TESTONESD | url: /pages/editpage.action | traceId: ba31672db5a868c3 | userName: apopov
2017-10-25 13:57:39,133 WARN [http-nio-8090-exec-7] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
  ->[null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #308429328)
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:57:39,138 WARN [http-nio-8090-exec-29] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
  ->[null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1026069423)
 -- url: /pages/editpage.action | page: 3112992 | traceId: ba31672db5a868c3 | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editpage
2017-10-25 13:58:09,398 INFO [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://192.168.101.128:8092/synchrony/v1/apps/secret
2017-10-25 13:58:09,400 WARN [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9ccc4499-c9b8-3ead-bd3c-500cd3f3d9a4: Internal Server Error
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:58:09,405 INFO [http-nio-8090-exec-29] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://192.168.101.128:8092/synchrony/v1/apps/secret
2017-10-25 13:58:09,406 WARN [http-nio-8090-exec-29] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9ccc4499-c9b8-3ead-bd3c-500cd3f3d9a4: Internal Server Error
 -- url: /pages/editpage.action | page: 3112992 | traceId: ba31672db5a868c3 | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editpage
2017-10-25 13:58:39,462 INFO [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://192.168.101.128:8092/synchrony/v1/apps/secret
2017-10-25 13:58:39,464 WARN [http-nio-8090-exec-7] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9ccc4499-c9b8-3ead-bd3c-500cd3f3d9a4-debug: Internal Server Error
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:58:39,465 ERROR [http-nio-8090-exec-7] [confluence.plugins.synchrony.SynchronyContextProvider] getContextMap This instance could not be registered with Synchrony.
 -- space: 3145730 | url: /plugins/editor-loader/editor.action | page: 3112992 | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editor
2017-10-25 13:58:39,468 INFO [http-nio-8090-exec-29] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://192.168.101.128:8092/synchrony/v1/apps/secret
2017-10-25 13:58:39,470 WARN [http-nio-8090-exec-29] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9ccc4499-c9b8-3ead-bd3c-500cd3f3d9a4-debug: Internal Server Error
 -- url: /pages/editpage.action | page: 3112992 | traceId: ba31672db5a868c3 | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editpage
2017-10-25 13:58:39,472 ERROR [http-nio-8090-exec-29] [confluence.plugins.synchrony.SynchronyContextProvider] getContextMap This instance could not be registered with Synchrony.
 -- url: /pages/editpage.action | page: 3112992 | traceId: ba31672db5a868c3 | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD | action: editpage
2017-10-25 13:58:39,485 WARN [http-nio-8090-exec-7] [confluence.util.profiling.DefaultActivityMonitor] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1508957798858, threadId=209, threadName='http-nio-8090-exec-7', userId='apopov', type='web-request', summary='/plugins/editor-loader/editor.action?parentPageId=&pageId=3112992&spaceKey=TESTONESD&atl_after_login_redirect=%2Fdisplay%2FTESTONESD&timeout=12000&_=1508957800471'}
 -- url: /plugins/editor-loader/editor.action | traceId: 8a8a28837775896b | userName: apopov | referer: http://192.168.101.128:8090/display/TESTONESD
2017-10-25 13:58:39,615 WARN [http-nio-8090-exec-29] [confluence.util.profiling.DefaultActivityMonitor] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1508957811551, threadId=237, threadName='http-nio-8090-exec-29', userId='apopov', type='web-request', summary='/pages/editpage.action?pageId=3112992'}

Specifically if would be awesome to know what these two mean:

  • Could not verify  AppID/Secret for real-time collaboration service
  • This instance could not be registered with Synchrony

Not sure what I'm doing wrong here. If you have some insight to share, please do.

Thanks in advance!

 

3 answers

0 votes
Jeremy Mooiman Community Leader Nov 17, 2017

Dear Andrey Popov,

What version of Confluence do you have?

Friendly Regards,

Jeremy

0 votes
Kiran Panduga Dec 01, 2017

Team,

 

Can someone help by providing a fix or workaround ? we are also seeing the same error after migrating from Confluence Cloud to Confluence Server (6.4.2).

 

2017-12-01 12:06:27,684 INFO [http-nio-8090-exec-4] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] postConfigToSynchrony [Collab editing plugin] Synchrony response (500): Could not verify  AppID/Secret for real-time collaboration service at endpoint: http://127.0.0.1:8091/synchrony/v1/apps/secret

2017-12-01 12:06:27,686 WARN [http-nio-8090-exec-4] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] logJSONResponseField [Collab editing plugin] Response message for Synchrony-9598aef1-9d96-33f9-86d7-d6836232955a: Internal Server Error

2017-12-01 12:06:58,276 ERROR [http-nio-8090-exec-4] [confluence.plugins.synchrony.SynchronyContextProvider] getContextMap This instance could not be registered with Synchrony.

 

Thanks,

Kiran.

Kiran Panduga Dec 12, 2018

Team, 

I was able to fix this issue with re-creating the JWT Private and Public keys and configure the same within confluence.cfg.xml file.

Collaborative editing is working.

For additional information on generating JWT keys, please refer to the below link:

https://confluence.atlassian.com/confkb/confluence-cannot-connect-to-synchrony-due-to-error-validating-jwt-935899880.html

 

Thanks,

Kiran.

0 votes
Torsten Kalix Dec 07, 2017

Hello,

I had the same problem. For me Step #5 from the atlassian docs helped (had the nonproxyhosts configured wrong)

 

https://confluence.atlassian.com/confkb/unable-to-edit-any-pages-in-confluence-6-x-due-to-collaborative-editing-867362716.html

Kind regards,

Torsten.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

950 views 0 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you