Failed to Create Page, Upload Documents - Synchrony Error in atlassian-confluence.log
Asked by Lance Gaines:

Details: Confluence Data Center on Linux, 7.13.0 version, Synchrony managed by Confluence, Reverse proxy, local synchrony-proxy.

Hello, any help is greatly appreciated!

\[Issue\]: Unable to create a new page (wheel keeps spinning and never loads). Also uploading files produces errors. My guess based on literature and context of errors is potentially synchrony or ... possibly needing to reindex my site( as it was an upgrade - not finding much on this though).

When running wget <https://127.0.0.1:8091/confluence/synchrony/jwt-key> on the server I get success and a good key (synchrony is managed by confluence in this small data-center setup) however I notice in the atlassian-confluence.log that the path is /synchrony and not /confluence/synchrony below when ERROR occurs:

```
2021-11-08 12:04:37,749 INFO [http-nio-8090-exec-8] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] retrievePublicKey [Collab editing plugin] Could not retrieve public key for real-time collaboration service at http://127.0.0.1:8091/synchrony/jwt-key. Status code: 404
2021-11-08 12:04:37,751 ERROR \[http-nio-8090-exec-8\] \[confluence.plugins.synchrony.SynchronyContextProvider\] getContextMap Could not retrieve Synchrony public key.
-- referer: https://\[server.address\]/confluence/display/TES/Test_Space+Home \| url: /confluence/pages/createpage.action \| traceId: a0608b5bd33226e1 \| userName: batman \| action: createpage
2021-11-08 12:04:59,840 WARN [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.DefaultSynchronyMonitor] lambda$pollHeartbeat$1 Rescheduled heartbeat check failed.
io.atlassian.util.concurrent.TimedOutException: Timed out after: 30061384479 NANOSECONDS
at com.atlassian.confluence.plugins.synchrony.bootstrap.DefaultSynchronyMonitor.lambda$pollHeartbeat$0(DefaultSynchronyMonitor.java:140)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2021-11-08 12:04:59,843 WARN [synchrony-interop-executor:thread-1] [plugins.synchrony.config.DefaultSynchronyConfigurationManager] enableSharedDrafts [Collab editing plugin] Enabling Shared Drafts
2021-11-08 12:04:59,855 INFO [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] startupSynchrony Starting Synchrony and enabling Collaborative Editing
2021-11-08 12:05:00,063 INFO [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.SynchronyEnvironmentBuilder] isSynchronyProxyEnabled proxy port present: true
2021-11-08 12:05:00,578 INFO [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.SynchronyProcessBuilder] debugPrintEnvironment Synchrony working dir: /var/atlassian/application-data/confluence
2021-11-08 12:05:00,579 INFO [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.SynchronyProcessBuilder] debugPrintEnvironment Synchrony command line: /opt/atlassian/confluence/jre/bin/java -classpath /opt/atlassian/confluence/temp/4.0.0-master-f680ea21.jar:/opt/atlassian/confluence/confluence/WEB-INF/lib/postgresql-42.2.18.jar -Xss2048k -Xmx2g synchrony.core sql
2021-11-08 12:05:00,665 INFO [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] updateSynchronyConfiguration Synchrony External Base URL: https://[server.address]/synchrony,https://[server.address]/confluence/synchrony-proxy
2021-11-08 12:05:00,666 INFO [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] updateSynchronyConfiguration Synchrony External Service URL: https://[server.address]/synchrony/v1
2021-11-08 12:05:00,666 INFO [synchrony-interop-executor:thread-1] [plugins.synchrony.bootstrap.DefaultSynchronyProcessManager] updateSynchronyConfiguration Synchrony Internal Service URL: http://127.0.0.1:8091/synchrony/v1
2021-11-08 12:05:30,741 WARN [synchrony-interop-executor:thread-3] [plugins.synchrony.bootstrap.DefaultSynchronyMonitor] lambda$pollHeartbeat$1 Rescheduled heartbeat check failed.
```

Is this something I could adjust with 'system properties' (if so how? I don't see in setenv.sh).


Answers:
author: Brant Schroeder
body: [@Lance Gaines](/t5/user/viewprofilepage/user-id/2839697) Take a look at this and see if it will resolve your issue <https://confluence.atlassian.com/confkb/confluence-could-not-retrieve-public-key-for-real-time-collaboration-service-from-synchrony-937177834.html>

comments: author: Lance Gaines
body: Brant,  
Thank you for the help, I had actually looked at this article before. We are not using Amazon ELB though and the port is open. Unless I may be missing something more nuanced in that thread I don't believe this is a fix.


Tags: confluence-server

server